Skip to content

Commit

Permalink
ci/updatemessages: switch to new Crowdin client
Browse files Browse the repository at this point in the history
  • Loading branch information
quantum5 committed Jan 23, 2024
1 parent 435839e commit 92f68a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/updatemessages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 92f68a1

Please sign in to comment.