From bc59cc60afbd5463c842a16f86a5523a6b137a1a Mon Sep 17 00:00:00 2001 From: HyperAtill <150699834+HyperAtill@users.noreply.github.com> Date: Wed, 12 Aug 2026 17:44:15 +0300 Subject: [PATCH] Merge pull request #671 * 2 --- .github/workflows/crowdin.yml | 34 ++++++++++++++++++++++++++++++++++ crowdin.yml | 1 + 2 files changed, 35 insertions(+) create mode 100644 .github/workflows/crowdin.yml diff --git a/.github/workflows/crowdin.yml b/.github/workflows/crowdin.yml new file mode 100644 index 000000000..094590f16 --- /dev/null +++ b/.github/workflows/crowdin.yml @@ -0,0 +1,34 @@ +name: Crowdin Action + +on: + push: + branches: [ main ] + paths: ['Resources/Lang/en_US.json'] + schedule: + - cron: '20 3 * * *' # 3:20 UTC - launches automatically in mornings (few hours before Gurge wakes up) + - cron: '20 15 * * *' # 15:30 UTC - launches automatically in evenings + workflow_dispatch: + +jobs: + synchronize-with-crowdin: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: crowdin action + uses: crowdin/github-action@v2 + with: + upload_sources: true + upload_translations: false + download_translations: true + localization_branch_name: translation + create_pull_request: true + pull_request_title: 'New Crowdin Translations' + pull_request_body: 'New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)' + pull_request_base_branch_name: 'main' + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} + CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} \ No newline at end of file diff --git a/crowdin.yml b/crowdin.yml index c33b4cd7b..1dcbc2768 100644 --- a/crowdin.yml +++ b/crowdin.yml @@ -1,6 +1,7 @@ project_id_env: CROWDIN_PROJECT_ID api_token_env: CROWDIN_PERSONAL_TOKEN base_path: . +preserve_hierarchy: true bundles: - 2 files: