Crowdin download #320
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 download | |
on: | |
schedule: | |
- cron: '0 0 * * 0' # every Sunday at 00:00 we download translations from Crowdin and make PR to main | |
# manual trigger from Github UI - Action tab | |
workflow_dispatch: | |
jobs: | |
download-translations: | |
name: Download translations from Crowdin | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Download from Crowdin | |
uses: crowdin/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_translations: false | |
download_translations: true | |
create_pull_request: true | |
pull_request_title: 'New Crowdin Translations [skip ci]' | |
project_id: '492549' | |
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} | |
source: 'src/locales/messages.pot' | |
translation: 'src/locales/%two_letters_code%/messages.po' |