Skip to content

Commit

Permalink
update tool to update localized strings from crowdin
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilb committed Aug 4, 2021
1 parent ce847db commit 5310c16
Showing 1 changed file with 10 additions and 22 deletions.
32 changes: 10 additions & 22 deletions tools/afterCrowdInFetch.sh
Original file line number Diff line number Diff line change
@@ -1,26 +1,14 @@
#!/bin/sh

const filesToRename = [
{ from: 'es-419', to: 'es_419' },
{ from: 'es-ES', to: 'es' },
{ from: 'nn-NO', to: 'no' },
{ from: 'pa-IN', to: 'pa' },
{ from: 'pt-BR', to: 'pt_NR' },
{ from: 'pt-PT', to: 'pt_PT' },
{ from: 'sv-SE', to: 'sv' },
{ from: 'sr-CS', to: 'sr' },
{ from: 'zh-CN', to: 'zh_CN' },
{ from: 'zh-TW', to: 'zh_TW' },
];

mv $PWD/_locales/es-419/messages.json $PWD/_locales/es_419/messages.json
mv $PWD/_locales/es-ES/messages.json $PWD/_locales/es/messages.json
mv $PWD/_locales/nn-NO/messages.json $PWD/_locales/no/messages.json
mv $PWD/_locales/pa-IN/messages.json $PWD/_locales/pa/messages.json
mv $PWD/_locales/pt-BR/messages.json $PWD/_locales/pt_BR/messages.json
mv $PWD/_locales/pt-PT/messages.json $PWD/_locales/pt_PT/messages.json
mv $PWD/_locales/sv-SE/messages.json $PWD/_locales/sv/messages.json
mv $PWD/_locales/sr-CS/messages.json $PWD/_locales/sr/messages.json
mv $PWD/_locales/zh-CN/messages.json $PWD/_locales/zh_CN/messages.json
mv $PWD/_locales/zh-TW/messages.json $PWD/_locales/zh_TW/messages.json
mv $PWD/_locales/es-419 $PWD/_locales/es_419
mv $PWD/_locales/es-ES $PWD/_locales/es
mv $PWD/_locales/nn-NO $PWD/_locales/no
mv $PWD/_locales/pa-IN $PWD/_locales/pa
mv $PWD/_locales/pt-BR $PWD/_locales/pt_BR
mv $PWD/_locales/pt-PT $PWD/_locales/pt_PT
mv $PWD/_locales/sv-SE $PWD/_locales/sv
mv $PWD/_locales/sr-CS $PWD/_locales/sr
mv $PWD/_locales/zh-CN $PWD/_locales/zh_CN
mv $PWD/_locales/zh-TW $PWD/_locales/zh_TW

0 comments on commit 5310c16

Please sign in to comment.