2022-12-05 21:44:09 +00:00
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@v3
- name : Download Crowdin translations and create PR
uses : crowdin/github-action@1.5.1
env :
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
with :
project_id : ${{ secrets.CROWDIN_PROJECT_ID }}
token : ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
config : 'crowdin.yml'
2022-12-08 13:32:36 +00:00
crowdin_branch_name : ${{ github.ref_name }}
2022-12-05 21:44:09 +00:00
upload_sources : false
upload_translations : false
download_translations : true
2022-12-08 21:03:16 +00:00
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 zh-CN -l zh-TW'
2022-12-05 21:44:09 +00:00
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)