Browse Source

add a helper scripts to export translations to XLIFFs

gre-patch-1
Gaëtan Renaudeau 6 years ago
parent
commit
09ea89f19a
No known key found for this signature in database GPG Key ID: 7B66B85F042E5451
  1. 1
      .gitignore
  2. 17
      scripts/download-xliffs.sh

1
.gitignore

@ -1,3 +1,4 @@
xliffs/
/.env
/dist/
/flow-typed/

17
scripts/download-xliffs.sh

@ -0,0 +1,17 @@
#!/bin/sh
if [ -z "$CROWDIN_TOKEN" ]; then
echo "CROWDIN_TOKEN env required" >&2
exit 1
fi
rm -rf xliffs
mkdir xliffs
cd xliffs
for lang in fr es-ES zh-CN ja ko ru; do
curl "https://api.crowdin.com/api/project/ledger-wallet/export-file?file=develop/static/i18n/en/app.json&language=$lang&format=xliff&key=$CROWDIN_TOKEN" > en-$lang.xliff
done
zip -r ledger-live-langs.zip *.xliff
Loading…
Cancel
Save