Skip to content

Commit 98e204b

Browse files
committed
refactor: migrate to new Transifex client
The old Python-based Transifex Client implements Transifex APIv2, which is deprecated and will sunset on 30 november in 2023. So this commit implements the use of the new golang-based Transifex Client. See deprecation msg in https://docs.transifex.com/client/introduction
1 parent 56bc5a9 commit 98e204b

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.github/workflows/update.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ jobs:
3737
uses: actions/setup-python@v2
3838
with:
3939
python-version: '3.9'
40+
- name: Install Transifex CLI
41+
run: |
42+
curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
43+
mv tx /usr/local/bin/tx
4044
- name: Install dependencies
4145
run: |
4246
sudo apt update -y && sudo apt install gettext -y

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
transifex-client
21
sphinx-intl
32
powrap
43
pomerge

scripts/update.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ sed cpython/Doc/locales/.tx/config \
3131
-e "s|^file_filter|trans.${LANGUAGE}|" \
3232
> .tx/config
3333

34-
tx pull -l ${LANGUAGE} --use-git-timestamps --parallel
34+
tx pull --languages ${LANGUAGE} --translations --use-git-timestamps --parallel

0 commit comments

Comments
 (0)