compare-locales-9.0.1
9.0.1
9.0.0
8.2.1
8.2.0
8.1.0
8.0.0
7.6.0
7.5.1
7.5.0
7.4.1
7.4.0
7.3.0
7.2.5
7.2.4
7.2.3
7.2.2
7.2.1
7.1.1
7.1.0
7.0.0
6.0.0
5.1.1
5.1.0
5.0.3
5.0.2
5.0.1
5.0.0
4.0.3
4.0.2
4.0.1
4.0.0
3.3.0
3.2.3
3.2.2
3.2.1
3.2.0
3.1.1
3.1.0
3.0.0
2.8.1
2.8.0
2.7.0
2.6.4
2.6.3
2.6.1
2.6
2.5.1
2.5
2.1
2.0
1.2.3
1.2.2
1.2.1
1.2
1.1
1.0
9.0.1
9.0.0
8.2.1
8.2.0
8.1.0
8.0.0
7.6.0
7.5.1
7.5.0
7.4.1
7.4.0
7.3.0
7.2.5
7.2.4
7.2.3
7.2.2
7.2.1
7.1.1
7.1.0
7.0.0
6.0.0
5.1.1
5.1.0
5.0.3
5.0.2
5.0.1
5.0.0
4.0.3
4.0.2
4.0.1
4.0.0
3.3.0
3.2.3
3.2.2
3.2.1
3.2.0
3.1.1
3.1.0
3.0.0
2.8.1
2.8.0
2.7.0
2.6.4
2.6.3
2.6.1
2.6
2.5.1
2.5
2.1
2.0
1.2.3
1.2.2
1.2.1
1.2
1.0
0.9.7
0.9.6
0.9.5
0.9.4
0.9.3
0.9.2
0.9.1
0.9
توضیحات
Lint Mozilla localizations
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | compare-locales-9.0.1 |
| نام | compare-locales |
| نسخه کتابخانه | 9.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Axel Hecht |
| ایمیل نویسنده | axel@mozilla.com |
| آدرس صفحه اصلی | https://github.com/mozilla/compare-locales |
| آدرس اینترنتی | https://pypi.org/project/compare-locales/ |
| مجوز | MPL 2.0 |

# 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](https://moz-l10n-config.readthedocs.io/en/latest/fileformat.html)
file, `l10n.toml`.
# Examples
To check all locales in a project use
```bash
compare-locales l10n.toml .
```
To check Firefox against a local check-out of l10n-central, use
```bash
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
```bash
moz-l10n-lint l10n.toml
```
To check for conflicts against already existing strings:
```bash
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.
نیازمندی
| مقدار | نام |
|---|---|
| <0.20,>=0.18.0 | fluent.syntax |
| - | six |
| - | toml |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7, <4 | Python |
نحوه نصب
نصب پکیج whl compare-locales-9.0.1:
pip install compare-locales-9.0.1.whl
نصب پکیج tar.gz compare-locales-9.0.1:
pip install compare-locales-9.0.1.tar.gz