A small lint tool for react-i18next phrases and usage
Project description
react-i18next-lint
A small lint tool for react-i18next.
Install
poetry install
Execution
Extract phrase keys from i18n directory
poetry run react_i18next_lint extract-keys [i18n resources dir] > resources.tsv
Group phrase key and aggregate locales
poetry run react_i18next_lint group-key-locales resources.tsv by-locales.tsv
Validate against source code files
poetry run react_i18next_lint validate-keys by-locales.tsv [source code files]
Development
Running pytest
poetry run pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file react_i18next_lint-0.1.0.tar.gz
.
File metadata
- Download URL: react_i18next_lint-0.1.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.14 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5b63de802d664b50a24bfd99bab7e0bb5d5fae02afde64e7cfd1f12ca6efb51 |
|
MD5 | 8f9e6c5956d935d8b11df798c897ce1b |
|
BLAKE2b-256 | 77f4592a68be4dbee4edbf6f1ab699caaaa890f2f2dbdeccbf33be1cd361b5c5 |
File details
Details for the file react_i18next_lint-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: react_i18next_lint-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.14 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 297dd4ecf5dbcc1e2acdcfd26e0bdfceb81bcdfa9f33b7631c65a90bcb751c12 |
|
MD5 | cb8809b4661907d2d4420d27bb5ea0fe |
|
BLAKE2b-256 | 0bc75b162e8b7b7d41123e344ca8e9144b37a4da7f45687bbca5ac1229311d87 |