Skip to content

feat: v1.0.5 - Implement extensive internationalization, add Chromec… #1

feat: v1.0.5 - Implement extensive internationalization, add Chromec…

feat: v1.0.5 - Implement extensive internationalization, add Chromec… #1

Workflow file for this run

name: Crowdin Translations Sync
on:
# Run on push to master to upload new source strings
push:
branches:
- master
paths:
- 'lib/l10n/app_en.arb'
# Run daily to download latest translations
schedule:
- cron: '0 0 * * *' # Daily at midnight UTC
# Allow manual trigger
workflow_dispatch:
jobs:
sync-crowdin:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Crowdin push (upload source)
uses: crowdin/github-action@v2
with:
upload_sources: true
upload_translations: false
download_translations: false
env:
CROWDIN_API_TOKEN: ${{ secrets.CROWDIN_API_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
- name: Crowdin pull (download translations)
uses: crowdin/github-action@v2
with:
upload_sources: false
upload_translations: false
download_translations: true
skip_untranslated_strings: true
export_only_approved: false
commit_message: 'chore: update translations from Crowdin'
create_pull_request: true
pull_request_title: 'New Crowdin translations'
pull_request_body: 'New translations from Crowdin'
pull_request_base_branch_name: 'master'
env:
CROWDIN_API_TOKEN: ${{ secrets.CROWDIN_API_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}