# react-i18next-lint
A small lint tool for [react-i18next][18n].
[18n]: https://react.i18next.com/
## Install
```bash
poetry install
```
## Execution
### Extract phrase keys from i18n directory
```bash
poetry run react_i18next_lint extract-keys [i18n resources dir] > resources.tsv
```
### Group phrase key and aggregate locales
```bash
poetry run react_i18next_lint group-key-locales resources.tsv by-locales.tsv
```
### Validate against source code files
```bash
poetry run react_i18next_lint validate-keys by-locales.tsv [source code files]
```
## Development
### Running pytest
```bash
poetry run pytest
```
Raw data
{
"_id": null,
"home_page": "https://github.com/jimexist/react-i18next-lint",
"name": "react-i18next-lint",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.10",
"maintainer_email": null,
"keywords": "react, i18next, lint, i18n",
"author": "Jiayu Liu",
"author_email": "jiayu@hey.com",
"download_url": "https://files.pythonhosted.org/packages/77/f4/592a68be4dbee4edbf6f1ab699caaaa890f2f2dbdeccbf33be1cd361b5c5/react_i18next_lint-0.1.0.tar.gz",
"platform": null,
"description": "# react-i18next-lint\n\nA small lint tool for [react-i18next][18n].\n\n[18n]: https://react.i18next.com/\n\n## Install\n\n```bash\npoetry install\n```\n\n## Execution\n\n### Extract phrase keys from i18n directory\n\n```bash\npoetry run react_i18next_lint extract-keys [i18n resources dir] > resources.tsv\n```\n\n### Group phrase key and aggregate locales\n\n```bash\npoetry run react_i18next_lint group-key-locales resources.tsv by-locales.tsv\n```\n\n### Validate against source code files\n\n```bash\npoetry run react_i18next_lint validate-keys by-locales.tsv [source code files]\n```\n\n## Development\n\n### Running pytest\n\n```bash\npoetry run pytest\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A small lint tool for react-i18next phrases and usage",
"version": "0.1.0",
"project_urls": {
"Homepage": "https://github.com/jimexist/react-i18next-lint",
"Repository": "https://github.com/jimexist/react-i18next-lint"
},
"split_keywords": [
"react",
" i18next",
" lint",
" i18n"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0bc75b162e8b7b7d41123e344ca8e9144b37a4da7f45687bbca5ac1229311d87",
"md5": "cb8809b4661907d2d4420d27bb5ea0fe",
"sha256": "297dd4ecf5dbcc1e2acdcfd26e0bdfceb81bcdfa9f33b7631c65a90bcb751c12"
},
"downloads": -1,
"filename": "react_i18next_lint-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "cb8809b4661907d2d4420d27bb5ea0fe",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.10",
"size": 6523,
"upload_time": "2024-05-28T05:49:11",
"upload_time_iso_8601": "2024-05-28T05:49:11.068038Z",
"url": "https://files.pythonhosted.org/packages/0b/c7/5b162e8b7b7d41123e344ca8e9144b37a4da7f45687bbca5ac1229311d87/react_i18next_lint-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "77f4592a68be4dbee4edbf6f1ab699caaaa890f2f2dbdeccbf33be1cd361b5c5",
"md5": "8f9e6c5956d935d8b11df798c897ce1b",
"sha256": "d5b63de802d664b50a24bfd99bab7e0bb5d5fae02afde64e7cfd1f12ca6efb51"
},
"downloads": -1,
"filename": "react_i18next_lint-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "8f9e6c5956d935d8b11df798c897ce1b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.10",
"size": 4677,
"upload_time": "2024-05-28T05:49:13",
"upload_time_iso_8601": "2024-05-28T05:49:13.707803Z",
"url": "https://files.pythonhosted.org/packages/77/f4/592a68be4dbee4edbf6f1ab699caaaa890f2f2dbdeccbf33be1cd361b5c5/react_i18next_lint-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-28 05:49:13",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "jimexist",
"github_project": "react-i18next-lint",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "react-i18next-lint"
}