Lint your locale files
npm install @narando/lint-i18n@narando/lint-i18nA script to parse language locales and find not matching translation keys.
This can be used to test your locale files at your cli tool
You need to have nodejs and npm installed.
``bash`
$ npm -g i @narando/lint-i18n
``
-V, --version output the version number
-d, --dir [directory] specify locales folder [./app/locales] (default: "./app/locales")
-h, --help output usage information
This example is made with the fixtures which are used at the tests.
`bash`
$ lint-i18n --dir ./tests/fixtures/locales/notEqualLocales
``
Found 3 missing translation keys for language en_US:
ns2:text5
ns2:text6
ns2:text7
`bash`
$ lint-i18n --dir ./tests/fixtures/locales/equalLocales
```
Yeahy! No keys are missing!