Crowdin #55
This file contains 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 | |
on: | |
workflow_run: | |
workflows: | |
- Continuous Integration | |
branches: | |
- master | |
types: | |
- completed | |
jobs: | |
synchronize: | |
name: Synchronize sources and translations | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 14 | |
- name: Restore Node.js modules | |
uses: actions/[email protected] | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }} | |
- name: Extract messages | |
run: yarn intl:extract | |
- name: Synchronize | |
uses: crowdin/[email protected] | |
with: | |
upload_translations: true | |
download_translations: true | |
localization_branch_name: l10n_crowdin_action | |
create_pull_request: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_ID }} | |
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_TOKEN }} |