-
-
Notifications
You must be signed in to change notification settings - Fork 911
46 lines (35 loc) · 1.63 KB
/
translations-pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Translations download and PR
on:
workflow_dispatch:
schedule:
- cron: '00 3 * * 1'
jobs:
crowdin-translations-to-pr:
name: Create a PR with the latest translations from Crowdin
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download Crowdin translations and create PR
uses: crowdin/github-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
project_id: ${{ secrets.CROWDIN_PROJECT_ID }}
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
config: 'crowdin.yml'
crowdin_branch_name: ${{ github.ref_name }}
upload_sources: false
upload_translations: false
download_translations: true
download_translations_args: '-l ca -l da -l de -l es-ES -l eu -l fr -l gl -l it -l ja -l ko -l nl -l pt-PT -l pt-BR -l pl -l ru -l uk -l zh-CN -l zh-TW'
localization_branch_name: update_translations_crowdin
push_translations: true
commit_message: 'Update translations'
create_pull_request: true
pull_request_title: 'Update translations'
pull_request_body: |
**This is an automated PR.**
This PR updates the translations using the content from Crowdin. Thanks to all the translators for the really hard work!!!
If you want to help to make the localization better, or add a new language, go to [Crowdin](https://crowdin.com/project/betaflight-configurator) and start helping!.
[![Crowdin](https://d322cqt584bo4o.cloudfront.net/betaflight-configurator/localized.svg)](https://crowdin.com/project/betaflight-configurator)