See #161: initial setup to collect/compile messages with vue-gettext

This commit is contained in:
Eliot Berriot 2018-06-30 11:11:45 +02:00
parent a1b8555c17
commit a0a75c9919
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
7 changed files with 381 additions and 10 deletions

3
front/scripts/i18n-compile.sh Executable file
View file

@ -0,0 +1,3 @@
#!/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-extract)/gettext-compile --output src/translations.json