diff --git a/.crowdin.yaml b/.crowdin.yaml new file mode 100644 index 00000000..40c774e3 --- /dev/null +++ b/.crowdin.yaml @@ -0,0 +1,6 @@ +preserve_hierarchy: 1 +files: + - source: /Resources/Private/Language/*.xlf + translation: /%original_path%/%two_letters_code%.%original_file_name% + ignore: + - /**/%two_letters_code%.%original_file_name% \ No newline at end of file diff --git a/.github/workflows/crowdin.yml b/.github/workflows/crowdin.yml new file mode 100644 index 00000000..3924599d --- /dev/null +++ b/.github/workflows/crowdin.yml @@ -0,0 +1,29 @@ +name: Crowdin + +on: + push: + branches: + - master + paths: + - '**.xlf' + +jobs: + sync: + name: Synchronize with Crowdin + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd + + - name: Upload sources + uses: crowdin/github-action@v2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + config: '.crowdin.yml' + project_id: ${{ secrets.CROWDIN_PROJECT_ID }} + token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} + crowdin_branch_name: 'main' + upload_sources: true + upload_translations: false + download_sources: false + download_translations: false