aboutsummaryrefslogtreecommitdiff
path: root/scripts/upload_strings_to_crowdin_api.sh
blob: 841930ea8c562e0397eb28b7f3b1b8e308aad66c (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

if [ -z "${CROWDIN_API}" ]; then
    echo "Could not find crowdin API environment variable at CROWDIN_API."
    exit 1
fi

curl \
  -F "files[strings.xml]=@app/src/main/res/values/strings.xml" \
  https://api.crowdin.com/api/project/anysoftkeyboard/update-file?key=${CROWDIN_API}&update_option=update_as_unapproved