ci/updatemessages: switch to new Crowdin client

This commit is contained in:
Quantum 2024-01-23 00:32:04 -05:00 committed by Guanzhong Chen
parent 435839e6b3
commit 92f68a17e6

View File

@ -21,7 +21,7 @@ jobs:
- name: Install requirements
run: |
sudo apt-get install gettext
curl -O https://artifacts.crowdin.com/repo/deb/crowdin.deb
wget https://artifacts.crowdin.com/repo/deb/crowdin3.deb -O crowdin.deb
sudo dpkg -i crowdin.deb
pip install -r requirements.txt
pip install pymysql
@ -32,10 +32,10 @@ jobs:
python manage.py makemessages -l en -d djangojs
- name: Download strings from Crowdin
env:
CROWDIN_API_TOKEN: ${{ secrets.CROWDIN_API_TOKEN }}
CROWDIN_API_TOKEN: ${{ secrets.CROWDIN_API_V2_TOKEN }}
run: |
cat > crowdin.yaml <<EOF
project_identifier: dmoj
project_id: 142963
files:
- source: /locale/en/LC_MESSAGES/django.po
@ -53,7 +53,7 @@ jobs:
zh-TW: zh_Hant
sr-CS: sr_Latn
EOF
echo "api_key: ${CROWDIN_API_TOKEN}" >> crowdin.yaml
echo "api_token: ${CROWDIN_API_TOKEN}" >> crowdin.yaml
crowdin download
rm crowdin.yaml
- name: Cleanup