Pull translations from Crowdin #325
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: Pull translations from Crowdin | |
| on: | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| concurrency: | |
| group: crowdin-pull-main | |
| cancel-in-progress: true | |
| jobs: | |
| pull_from_crowdin: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| with: | |
| persist-credentials: false | |
| ref: main | |
| fetch-depth: 0 | |
| - name: Download translations and create PR | |
| uses: crowdin/github-action@7ca9c452bfe9197d3bb7fa83a4d7e2b0c9ae835d | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.OTTO_THE_BOT_GH_TOKEN }} | |
| CROWDIN_PROJECT_ID: 342359 | |
| INPUT_DEBUG_MODE: false | |
| with: | |
| upload_sources: false | |
| upload_translations: false | |
| download_translations: true | |
| push_translations: true | |
| create_pull_request: true | |
| localization_branch_name: 'translations' | |
| pull_request_base_branch_name: 'main' | |
| pull_request_title: 'Update translations' | |
| commit_message: 'Update translations' | |
| github_user_name: otto-the-bot | |
| github_user_email: webapp+otto@wire.com | |
| token: ${{ secrets.WEBTEAM_CROWDIN_TOKEN }} | |
| source: '/apps/webapp/src/i18n/en-US.json' | |
| translation: '/apps/webapp/src/i18n/%locale%.json' | |
| base_path: '.' |