0.0.1 • Published 6 years ago

sort-phraseapp-locales v0.0.1

Weekly downloads
375
License
MIT
Repository
github
Last release
6 years ago

Sort PhraseApp locales

Say you're using PhraseApp for your localization workflow, with JSON as your localization file format. Your fellow developers add and remove translation keys which get synced to PhraseApp, and PhraseApp creates pull requests against your repository whenever new translations come in. For this workflow to work flawlessly, you need to ensure that your locales are always sorted the way PhraseApp will sort them.

# test for correct sorting (exit code > 0 upon wrong sorting)
npx sort-phraseapp-locales path/to/file1.json path/to/file2.json

# sort everything in place
npx sort-phraseapp-locales path/to/file1.json path/to/file2.json --fix