sort-phraseapp-locales

0.0.1 • Public • Published

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) 
sort-locales path/to/file1.json path/to/file2.json
 
# sort everything in place 
sort-locales path/to/file1.json path/to/file2.json --fix

Package Sidebar

Install

npm i sort-phraseapp-locales

Weekly Downloads

377

Version

0.0.1

License

MIT

Unpacked Size

4.98 kB

Total Files

4

Last publish

Collaborators

  • gersanco
  • depoulo
  • unabris
  • epagesgmbh