[Translation] 新增阿拉伯语和波兰语,并同步上游翻译 (#1070) #861
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 Action | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
paths: | |
- app/src/main/res/values/strings.xml | |
schedule: | |
- cron: '0 0 * * *' | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
synchronize-with-crowdin: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Crowdin Action | |
uses: crowdin/github-action@master | |
with: | |
# Upload and download translation settings | |
upload_sources: true | |
upload_translations: true | |
download_translations: true | |
skip_untranslated_files: true | |
# Pull request settings | |
create_pull_request: true | |
localization_branch_name: crowdin_branch | |
pull_request_labels: 'enhancement, documentation' | |
pull_request_title: '[Translation] Update translation from Crowdin' | |
# Global settings | |
config: 'crowdin.yml' | |
crowdin_branch_name: main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} | |
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} | |
CROWDIN_API_TOKEN: ${{ secrets.CROWDIN_API_TOKEN }} |