Variabilize USE_I18N
and LANGUAGE_CODE
in .env file
#4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🌎 Pull translations | |
# TODO: uncomment this since when workflow is finalized | |
# on: | |
# schedule: | |
# - cron: "5 1 * * *" | |
# workflow_dispatch: | |
# TODO: remove following `on` config when workflow is finalized | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- '.github/workflows/translations_pull.yml' | |
jobs: | |
build: | |
name: Pull translations | |
runs-on: ubuntu-latest | |
env: | |
TX_TOKEN: ${{ secrets.TX_TOKEN }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Transifex CLI | |
run: | | |
curl -OL https://github.com/transifex/cli/releases/download/v1.6.17/tx-linux-amd64.tar.gz | |
tar -xvzf tx-linux-amd64.tar.gz | |
- name: Pull from Transifex | |
run: ./tx pull -a --force | |
- name: Compile translation messages | |
run: docker compose run --user root app python manage.py compilemessages | |
# TODO: uncomment this block when workflow is finalized | |
# - name: Add and commit new translations | |
# uses: EndBug/add-and-commit@v9 | |
# with: | |
# message: Synchronize translations | |
# author_name: Translation update 💬 | |
# author_email: info@opengis.ch | |
# add: '["docker-app/qfieldcloud/locale"]' |