funkwhale/front/scripts/i18n-compile.sh
2018-09-05 21:06:53 +02:00

3 lines
214 B
Bash
Executable file

#!/bin/bash -eux
locales=$(tail -n +2 src/locales.js | sed -e 's/export default //' | jq '.locales[].code' | xargs echo)
find locales -name '*.po' | xargs $(yarn bin)/gettext-compile --output src/translations.json