Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Merge branch 'translators' into master_translations #1333

Merge branch 'translators' into master_translations

Merge branch 'translators' into master_translations #1333

name: Sync Master Translation
permissions:
actions: write
checks: write
contents: write
deployments: write
pull-requests: write
statuses: write
on:
push:
branches:
- 'master*'
jobs:
sync-translation:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
- name: Setup Node
uses: actions/[email protected]
with:
node-version: '18.x'
- run: npm i -g @crowdin/[email protected]
- name: Fetch Crowdin Master Translation ⬇️
run:
crowdin download -b master -T ${{ secrets.CROWDIN_API_KEY }} && crowdin download -b master -l zh-CN -T ${{ secrets.CROWDIN_API_KEY }}
- name: Push New Strings & Translations ⬆️
run:
crowdin upload sources -b master -T ${{ secrets.CROWDIN_API_KEY }}; crowdin upload translations -b master -T ${{ secrets.CROWDIN_API_KEY }}