cygnal/.po2json.sh

8 lines
219 B
Bash
Raw Normal View History

2018-07-20 15:12:28 +02:00
#!/bin/bash
for i in po/*.po
do
j=$(echo $i | cut -d '.' -f 1 | cut -d '/' -f 2)
po2json -i $i -t src/i18n/en.json --progress none | ./scripts/renest_json.py > po/$j.json
mv po/$j.json src/i18n/$j.json
done