1.1.0 • Published 1 year ago

i18next-key-inspector v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

i18next-key-inspector

i18next-key-inspector is a tool that reads JSON-format translation files written for multilingual support to inspect if each locale has the same keys.

Getting started

Installation

$ npm install --save-dev i18next-key-inspector

i18next-key-inspector.config.json

To compare the keys in translated JSON files using i18next-key-inspector, you must have the i18next-key-inspector.config.json file. You can create a config file at the top level of your project and write it like the example file below.

{
  "basePath": "./public/locales",
  "source": "en",
  "locales": ["ko", "fr", "de"]
}
  • basePath: This is the default path where the translation files for each locale are located. In the example above, JSON-format translation files are located under the path "./public/locales/en".
  • source: This is the source locale. The translation files of other locales are inspect against the source locale.
  • locales: This is the list of locales to compare with the source locale's translation files.

Execution

  • package.json
"scripts": {
    "inspect": "inspect-locale-key"
  },

License

MIT License

1.1.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.3.5

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago