Update Crowdin settings
So that it works with the Crowdin CLI. Also remove now broken update script. Use instead: crowdin pull -b master
This commit is contained in:
parent
427561e5ae
commit
9a46640d3b
2 changed files with 2 additions and 24 deletions
|
@ -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
|
||||
|
|
|
@ -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}"
|
Loading…
Reference in a new issue