1 |
|
2 | FILE=$1
|
3 | if [[ ! -e static/l10n/$FILE.json ]]
|
4 | then
|
5 | echo "static/l10n/$FILE.json does not exist. Exiting."
|
6 | exit 1
|
7 | else
|
8 | LOCALE=$(echo $FILE | sed -e "s@_@-@g")
|
9 | json2po -i static/l10n/$FILE.json -t static/l10n/en.json -o po/$FILE.po
|
10 | zanata-cli -q -B push --push-type trans -l $LOCALE
|
11 | fi
|
12 |
|