diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index b757eeaf8..13a6ca2b2 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -51,9 +51,15 @@ jobs: env: TX_TOKEN: ${{ secrets.TX_TOKEN }} + - name: Get all languages + id: get_langs + uses: mikefarah/yq@v4.40.5 + 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 }}