Skip to content

Commit

Permalink
Merge pull request #403 from opengisch/dynlangs
Browse files Browse the repository at this point in the history
Make langs dynamic based on mkdocs.yaml
  • Loading branch information
m-kuhn authored Dec 15, 2023
2 parents 0587307 + ea07455 commit 370f18b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,15 @@ jobs:
env:
TX_TOKEN: ${{ secrets.TX_TOKEN }}

- name: Get all languages
id: get_langs
uses: mikefarah/[email protected]
with:
cmd: yq '.plugins[] | .i18n.languages | select( . != null ) | map(.locale) | join(",")' mkdocs.yml

- name: Pull translations from Transifex
run: |
./tx pull -t -l en,de,fr,it,es,zh,pt,ja
./tx pull -t -l ${{ steps.get_langs.outputs.result }}
./tx status
env:
TX_TOKEN: ${{ secrets.TX_TOKEN }}
Expand Down

0 comments on commit 370f18b

Please sign in to comment.