Package Exports
- i18next-yaml-check
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (i18next-yaml-check) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
i18next-yaml-sync
Keep i18next YAML translation files in sync, including namespace support.
Usage
Install using npm
$ npm i -g i18next-yaml-check
$ check-i18n --help
Options:
--version Show version number [boolean]
-p, --primary Primary localization language. Other language files will be
checked against its key structure [required]
-d, --basedir Initial directory to start looking for translation files
[required]
-h, --help Show help [boolean]
Example
Given a primary translation language, try to find differences in other files.
$ check-i18n src/assets/i18n --primary en-US --languages de-DE es-ES fr-FR
Checking against en-US
Found languages: de-DE, en-US
Using namespace files: common.yml, forms.yml, widgets.yml
### Found differences for de-DE
New in forms.yml: LABELS.ADDRESS.NUMBER
Missing in forms.yml: LABELS.TEAM_NAME
Process finished with exit code 1