@shaman-apprentice/i18n-parrot
v1.0.1
Published
Sync i18n files from one source language to all existing languages
Downloads
174
Maintainers
Readme
i18n-parrot 🦜
Sync and sort i18n JSON translation files from a source language.
Usage
npx i18n-parrot --folder ./i18n --source en.jsonOptions:
-h, --help— Show help-f, --folder— Folder containing i18n files (required)-s, --source— Source language file name (required)
How It Works
- Reads source file as template structure
- Syncs all other
.jsonfiles to match source keys - Sorts all object keys recursively
- Preserves order of arrays
- Missing keys from source are added with source values. Keys in targets but not in source are removed.
