Merge branch 'fix-broken-build' into 'develop'

Fixed broken translations build

See merge request funkwhale/funkwhale!500
This commit is contained in:
Eliot Berriot 2018-12-20 14:23:00 +01:00
commit d6573e5d37
1 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,9 @@
#!/bin/bash -eux
locales=$(tail -n +2 src/locales.js | sed -e 's/export default //' | jq '.locales[].code' | grep -v 'en_US' | xargs echo)
mkdir -p src/translations
for locale in $locales; do
find "locales/$locale" -name '*.po' | $(yarn bin)/gettext-compile locales/$locale/LC_MESSAGES/app.po --output src/translations/$locale.json
$(yarn bin)/gettext-compile locales/$locale/LC_MESSAGES/app.po --output src/translations/$locale.json
done
# find locales -name '*.po' | xargs $(yarn bin)/gettext-compile --output src/translations.json