ci: add crowdin i18n sync (#2642)

This commit is contained in:
James Ward
2026-09-15 12:58:55 -04:00
committed by GitHub
parent ba47aaad27
commit 8f19bbb07c
+48
View File
@@ -0,0 +1,48 @@
name: Sync i18n Translations
on:
workflow_dispatch:
# push:
# branches:
# - develop
# paths:
# - frontend/src/i18n/*.json
# schedule:
# - cron: 0 17 * * 5 # Fridays around 5pm
permissions:
contents: write
pull-requests: write
concurrency:
group: i18n
cancel-in-progress: false
jobs:
crowdin:
name: Synchronize with Crowdin
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Synchronize with Crowdin
uses: crowdin/github-action@0d5670f539973aea2f01abce61a8989934df0025 # v3.0.2
with:
upload_sources: true
upload_translations: true
download_translations: true
localization_branch_name: chore/-/sync-translations
create_pull_request: true
commit_message: 'chore(i18n): sync translations from crowdin'
pull_request_title: 'chore(i18n): sync translations from crowdin'
pull_request_body: >
## Description
updates the i18n files from crowdin automatically
pull_request_base_branch_name: develop
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ vars.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}