Update Crowdin settings

So that it works with the Crowdin CLI.
Also remove now broken update script.
Use instead: crowdin pull -b master
56_add_update_of_article_category_to_file_import
wvengen 2022-11-14 21:38:33 +01:00
parent 427561e5ae
commit 9a46640d3b
2 changed files with 2 additions and 24 deletions

View File

@ -1,5 +1,5 @@
project_identifier: foodsoft
api_key_env: CROWDIN_API_KEY
project_id: 357447
api_token_env: CROWDIN_API_KEY
files:
- source: /config/locales/en.yml
translation: /config/locales/%two_letters_code%.yml

View File

@ -1,22 +0,0 @@
#!/bin/sh
PROJECT=foodsoft
if [ ! "${CROWDIN_API_KEY}" ]; then
echo "Please set CROWDIN_API_KEY to download all translations." 1>&2
exit 1
fi
# build archive
wget -q -O/dev/null "https://api.crowdin.com/api/project/${PROJECT}/export?key=${CROWDIN_API_KEY}"
# download all translations
TMPDIR=$(mktemp -d -t "crowdin-${PROJECT}-XXXXXXXXXX")
wget -q -O "${TMPDIR}/all.zip" "https://api.crowdin.com/api/project/${PROJECT}/download/all.zip?key=${CROWDIN_API_KEY}"
# extract, but strip 'master' component
ln -s $(pwd) "${TMPDIR}/master"
unzip -o -d "${TMPDIR}" "${TMPDIR}/all.zip"
rm -f "${TMPDIR}/all.zip" "${TMPDIR}/master"
rmdir "${TMPDIR}"