mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
20 lines
338 B
Bash
Executable file
20 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
|