Skip to content

ePages-de/sort-phraseapp-locales

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published