diff --git a/.github/workflows/transifex.yml b/.github/workflows/transifex.yml index 31a35c529..4de902c72 100644 --- a/.github/workflows/transifex.yml +++ b/.github/workflows/transifex.yml @@ -20,14 +20,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v3 - with: - python-version: '3.x' - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install transifex-client + curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash + source ~/.bashrc - name: Create .transifexrc uses: DamianReeves/write-file-action@e19fd875ed54f16fc583a3486e62547ce4a5dde8 with: @@ -35,9 +31,6 @@ jobs: write-mode: overwrite contents: | [https://www.transifex.com] - api_hostname = https://api.transifex.com - hostname = https://www.transifex.com - password = ${{secrets.TX_TOKEN}} - username = api + token = ${{secrets.TX_TOKEN}} - name: Push source strings to Transifex run: tx push --source --no-interactive diff --git a/.tx/config b/.tx/config index 6fad31b2f..71272d8df 100644 --- a/.tx/config +++ b/.tx/config @@ -1,24 +1,27 @@ [main] host = https://www.transifex.com -minimum_perc = 1 -[id-editor.community] +[o:openstreetmap:p:id-editor:r:community] file_filter = .tx/tmp/community/.yaml +source_file = .tx/tmp/community/en.yaml source_lang = en -type = YAML +type = YAML -[id-editor.core] +[o:openstreetmap:p:id-editor:r:core] file_filter = .tx/tmp/core/.yaml source_file = data/core.yaml source_lang = en -type = YAML +type = YAML -[id-editor.presets] -file_filter = .tx/tmp/presets/.yaml -source_lang = en -type = YAML - -[id-editor.imagery] +[o:openstreetmap:p:id-editor:r:imagery] file_filter = .tx/tmp/imagery/.yaml +source_file = .tx/tmp/imagery/en.yaml source_lang = en -type = YAML +type = YAML + +[o:openstreetmap:p:id-editor:r:presets] +file_filter = .tx/tmp/presets/.yaml +source_file = .tx/tmp/presets/en.yaml +source_lang = en +type = YAML +