Skip to content
Snippets Groups Projects
Commit d6573e5d authored by Eliot Berriot's avatar Eliot Berriot
Browse files

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

Fixed broken translations build

See merge request funkwhale/funkwhale!500
parents e1450d28 9ddfae54
No related branches found
No related tags found
No related merge requests found
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment