Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

react_i18next_lint-0.1.0.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

react_i18next_lint-0.1.0-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page