Skip to content

Modern Docker Management, Designed for Everyone

ci/cd: use crowdin github action

Kyle Mendell0a85fef5fdf5
diff --git a/.github/workflows/crowdin.yml b/.github/workflows/crowdin.yml
new file mode 100644
index 000000000..73cb42bc1
--- /dev/null
+++ b/.github/workflows/crowdin.yml
@@ -0,0 +1,31 @@
+name: Sync Translations with Crowdin
+
+on:
+ push:
+ branches: [main]
+
+jobs:
+ synchronize-with-crowdin:
+ runs-on: depot-ubuntu-latest
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v6
+
+ - name: crowdin action
+ uses: crowdin/github-action@v2
+ with:
+ upload_sources: true
+ upload_translations: true
+ download_translations: true
+ localization_branch_name: l10n_crowdin
+ crowdin_branch_name: main
+ create_pull_request: true
+ pull_request_title: "chore(translations): update translations via Crowdin"
+ pull_request_body: "New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)"
+ pull_request_base_branch_name: "main"
+ pull_request_reviewers: kmendell
+ env:
+ GITHUB_TOKEN: ${{ secrets.ARCANE_BOT_TOKEN }}
+ CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
+ CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
diff --git a/crowdin.yml b/crowdin.yml
index 5d0f9c519..f7178444b 100644
--- a/crowdin.yml
+++ b/crowdin.yml
@@ -1,4 +1,9 @@
+project_id_env: CROWDIN_PROJECT_ID
+api_token_env: CROWDIN_PERSONAL_TOKEN
+
files:
- source: /frontend/messages/en.json
translation: /%original_path%/%two_letters_code%.json
-pull_request_title: 'chore(translations): update translations via Crowdin'
+preserve_hierarchy: true
+localization_branch_name: l10n_crowdin
+crowdin_branch_name: main