anki/qt/i18n/update-crowdin
2020-01-03 08:24:59 +10:00

21 lines
338 B
Bash
Executable File

#!/bin/bash
#
# Sends the latest strings from the source code to crowdin.
# To use this, key must be set to a crowdin API key.
#
set -e
proj=anki
if [ "$key" = "" ]; then
echo "key not defined"
exit 1
fi
./update-pot
curl \
-F "files[/anki.pot]=@anki.pot" \
https://api.crowdin.com/api/project/$proj/update-file?key=$key