diff options
| -rwxr-xr-x | scripts/upload_strings_to_crowdin_api.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/upload_strings_to_crowdin_api.sh b/scripts/upload_strings_to_crowdin_api.sh new file mode 100755 index 000000000..841930ea8 --- /dev/null +++ b/scripts/upload_strings_to_crowdin_api.sh @@ -0,0 +1,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 |
