Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add l10n-compare command-line tool #18

Merged
merged 3 commits into from
Aug 7, 2024
Merged

Add l10n-compare command-line tool #18

merged 3 commits into from
Aug 7, 2024

Conversation

eemeli
Copy link
Member

@eemeli eemeli commented Aug 2, 2024

Provides a simple measure of the completeness of a localization.

The source may be given in three different forms:

  • a directory (using L10nDiscoverPaths),
  • a TOML config file (using L10nConfigPaths)
  • a JSON file containing a mapping of file paths to arrays of messages (as in firefox-l10n-source)

@eemeli eemeli requested a review from flodolo August 2, 2024 19:57
Compare localizations to their `source`, which may be
- a directory (using L10nDiscoverPaths),
- a TOML config file (using L10nConfigPaths), or
- a JSON file containing a mapping of file paths to arrays of messages.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this format defined anywhere?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No; the only place where it's being generated is in the firefox-l10n-source update script.

I added mozilla-l10n/firefox-l10n-source#72 to track this.

moz/l10n/bin/compare.py Outdated Show resolved Hide resolved
@eemeli eemeli merged commit ea094f0 into main Aug 7, 2024
11 checks passed
@eemeli eemeli deleted the l10n-compare branch August 7, 2024 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants