compare-locales
Lint Mozilla localizations
Finds
- missing strings
- obsolete strings
- errors on runtime errors without false positives
- warns on possible runtime errors
It also includes l10n-merge functionality, which pads localizations with
missing English strings, and replaces entities with errors with English.
If you want to check your original code for errors like duplicated messages,
use moz-l10n-lint, which is also part of this package. You can also use
this to check for conflicts between your strings and those already exposed
to l10n.
Configuration
You configure compare-locales (and moz-l10n-lint) through a
project configuration
file, l10n.toml.
Examples
To check all locales in a project use
compare-locales l10n.toml .
To check Firefox against a local check-out of l10n-central, use
compare-locales browser/locales/l10n.toml ../l10n-central
If you just want to check particular locales, specify them as additional commandline parameters.
To lint your local work, use
moz-l10n-lint l10n.toml
To check for conflicts against already existing strings:
moz-l10n-lint --reference-project ../android-l10n/mozilla-mobile/fenix l10n.toml
moz-l10n-lint --l10n-reference ../gecko-strings browser/locales/l10n.toml
to check for a monolithic project like Fenix or a gecko project like Firefox, resp.
Metadata
Release files for compare-locales 9.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| compare_locales-9.0.5.tar.gz | 59.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| compare_locales-9.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 135.4 kB
Release files / compare_locales-9.0.5.tar.gz
| Download URL | compare_locales-9.0.5.tar.gz |
|---|---|
| Size | 59.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
82f2177552666d0f7af1ccc2940a8d562f345ce3a2e64f1b67853d457ea8ae33
|
|
BLAKE2b-256 checksum How to use checksums |
99d61437ec990438908eb8766cc4cb68a4e8e0a0fa3cec9a73861e7b383de706
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / compare_locales-9.0.5-py3-none-any.whl
| Download URL | compare_locales-9.0.5-py3-none-any.whl |
|---|---|
| Size | 76.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
40eaa40fe9290996f5972fa83bc4f9f1e580a6e2ea06087e636e77378d8ed168
|
|
BLAKE2b-256 checksum How to use checksums |
ce22299da0a35e0acca9164db72cb811a7dd8827b86e9cb890cbee8807799268
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|