From df05ac14eb4b57f88e85c8e5c037897dd90e3629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Fri, 22 Aug 2025 17:05:09 +0800 Subject: [PATCH] feat: add Crowdin action --- .github/workflows/l10n.yml | 4 +++- crowdin.yml | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/l10n.yml b/.github/workflows/l10n.yml index 49a9ade0..76754a81 100644 --- a/.github/workflows/l10n.yml +++ b/.github/workflows/l10n.yml @@ -43,12 +43,14 @@ jobs: - name: Sync with Crowdin uses: crowdin/github-action@v2 with: + config: crowdin.yml upload_sources: true upload_translations: false download_translations: true export_only_approved: true create_pull_request: true - config: crowdin.yml + pull_request_title: 'l10n: sync translations with Crowdin' + pull_request_labels: '🚀 Review Ready' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} diff --git a/crowdin.yml b/crowdin.yml index 94f46249..ca51cd32 100644 --- a/crowdin.yml +++ b/crowdin.yml @@ -1,7 +1,5 @@ project_id_env: CROWDIN_PROJECT_ID api_token_env: CROWDIN_PERSONAL_TOKEN -commit_message: 'Update translations (%language%) %original_file_name%' -pull_request_title: 'l10n: update translations' files: - source: /pkg/embed/locales/*.pot translation: /pkg/embed/locales/%locale_with_underscore%/%file_name%.po