i18next-yaml-check
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i i18next-yaml-check

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

13.5 kB

Total Files

12

Last publish

Collaborators

  • pat_szala