BustByte / coronastatus

Anonymous crowd sourcing of COVID-19 symptoms all over the world (with public data sets)!
MIT License
173 stars 89 forks source link

Sort translation files by keys #493

Closed sbocinec closed 4 years ago

sbocinec commented 4 years ago

There is a huge mess in the translations and it's hard to keep it in sync. This complements the effort started in #481 and simply just sort translation files by the keys.

Then checking for the missing translations is just doing diff between the file that we consider as a base/authoritative (i guess it's en.json or no.json) what massively speeds up translations.

Command used for the sort: for file in *.json; do jq -S '.' $file > $file.sorted; mv $file.sorted $file; done