Retrieve i18n from Transifex #5838
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: Retrieve i18n from Transifex | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 */6 * * *' | |
jobs: | |
retrieve-18n: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Configure git | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Action" | |
- name: Retrieve i18n from Transifex and create PR if applies | |
uses: c2corg/transifex-pull-request-action@v5 | |
with: | |
transifex_token: ${{ secrets.TRANSIFEX_TOKEN }} | |
transifex_organisation: camptocamp-association | |
transifex_project: c2corg_ui | |
transifex_resource: main | |
output: src/translations | |
locales: ca, de, en, es, eu, fr, hu, it, ru, sl, zh_CN | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: transifex/i18n | |
transform: po-to-json | |
labels: i18n |