From 86774204623c253b71845146294cb6514342580a Mon Sep 17 00:00:00 2001 From: James Rich <2199651+jamesarich@users.noreply.github.com> Date: Wed, 14 May 2025 12:14:25 -0500 Subject: [PATCH] chore(i18n): Upload translations workflow (#1845) --- ...-upload.yml => crowdin-upload-sources.yml} | 0 .../workflows/crowdin-upload-translations.yml | 25 +++++++++++++++++++ 2 files changed, 25 insertions(+) rename .github/workflows/{crowdin-upload.yml => crowdin-upload-sources.yml} (100%) create mode 100644 .github/workflows/crowdin-upload-translations.yml diff --git a/.github/workflows/crowdin-upload.yml b/.github/workflows/crowdin-upload-sources.yml similarity index 100% rename from .github/workflows/crowdin-upload.yml rename to .github/workflows/crowdin-upload-sources.yml diff --git a/.github/workflows/crowdin-upload-translations.yml b/.github/workflows/crowdin-upload-translations.yml new file mode 100644 index 000000000..a1d649cc6 --- /dev/null +++ b/.github/workflows/crowdin-upload-translations.yml @@ -0,0 +1,25 @@ +name: Crowdin Upload Translations Action + +on: + workflow_dispatch: # Allow manual triggering + +jobs: + synchronize-with-crowdin: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Upload translations with Crowdin + uses: crowdin/github-action@v2 + with: + base_url: 'https://meshtastic.crowdin.com/api/v2' + config: 'config/crowdin/crowdin.yml' + upload_sources: fals + upload_translations: true + download_translations: false + crowdin_branch_name: 'master' + env: + CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} + CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}