mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-03 18:09:17 +02:00
9 lines
400 B
Bash
Executable file
9 lines
400 B
Bash
Executable file
#!/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
|
|
$(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
|