You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
391 B
17 lines
391 B
#!/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
|
|
|