Add command to update translations
This commit is contained in:
parent
9840803a9f
commit
e6a1bfcb45
1 changed files with 16 additions and 0 deletions
16
bin/crowdin-pull
Executable file
16
bin/crowdin-pull
Executable 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
|
Loading…
Reference in a new issue