Update Translations #26
This file contains hidden or 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: Update Translations | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| translation: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: transifex/cli-action@v2 | |
| with: | |
| token: ${{ secrets.TRANSIFEX_TOKEN }} | |
| args: pull -a --force | |
| - run: | | |
| git config --global user.name "Traccar Bot" | |
| git config --global user.email "[email protected]" | |
| for f in lib/l10n/*.arb; do | |
| [[ $f == */app_en.arb ]] && continue | |
| diff -q "$f" lib/l10n/app_en.arb && continue | |
| git diff --quiet -- "$f" || git add "$f" | |
| done | |
| git diff --cached --quiet || git commit -m "Update translations" | |
| git push | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |