Add command to update translations

This commit is contained in:
wvengen 2019-10-26 21:30:51 +02:00
parent 9840803a9f
commit e6a1bfcb45
1 changed files with 16 additions and 0 deletions

16
bin/crowdin-pull Executable file
View File

@ -0,0 +1,16 @@
#!/bin/sh
if [ ! "$CROWDIN_API_KEY" ]; then
echo "Please set CROWDIN_API_KEY" 1>&2
exit 1
fi
if ! which crowdin >/dev/null; then
echo "Please install the Crowdin CLI, see https://support.crowdin.com/cli-tool/" 1>&2
exit 1
fi
# add supported locales here (Crowdin language codes)
for locale in de nl fr es-ES; do
crowdin pull -b master --tree -l $locale
done