Crowdin Translation Sync #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Crowdin Translation Sync | |
| on: workflow_dispatch | |
| jobs: | |
| crowdin_sync: | |
| runs-on: ubuntu-24.04 | |
| if: github.ref_name == github.event.repository.default_branch | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Crowdin Sync | |
| uses: crowdin/github-action@v2 | |
| with: | |
| upload_sources: false | |
| upload_translations: false | |
| download_translations: true | |
| skip_untranslated_strings: true | |
| localization_branch_name: 'feat/lang/service' | |
| create_pull_request: true | |
| pull_request_title: 'feat: updated translations from crowdin' | |
| pull_request_labels: 'priority: low, status: ready for review, type: translation' | |
| pull_request_base_branch_name: '${{ github.event.repository.default_branch }}' | |
| source: 'machinelib.json' | |
| translation: 'src/main/resources/assets/machinelib/lang/%locale_with_underscore%.json' | |
| project_id: ${{ secrets.CROWDIN_PROJECT_ID }} | |
| token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} | |
| base_url: ${{ secrets.CROWDIN_BASE_URL }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |