forked from freeCodeCamp/freeCodeCamp
-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (41 loc) · 1.64 KB
/
crowdin-i18n-download.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
47
48
49
50
51
name: Crowdin Download
on:
workflow_dispatch:
jobs:
i18n-download-curriculum-translations:
name: Learn
runs-on: ubuntu-18.04
steps:
- name: Checkout Source Files
uses: actions/checkout@v2
##### Chinese Download #####
- name: Crowdin Download for Chinese Translations
uses: crowdin/github-action@master
# options: https://github.com/crowdin/github-action/blob/master/action.yml
with:
# uploads
upload_sources: false
upload_translations: false
auto_approve_imported: false
import_eq_suggestions: false
# downloads
download_language: zh-CN
download_translations: true
skip_untranslated_files: true
export_only_approved: true
commit_message: 'chore(i8n,learn): processed chinese translations'
# pull-request
localization_branch_name: i18n-sync-learn-processed-chinese-translations
create_pull_request: true
pull_request_title: 'chore(i18n,learn): Processed chinese translations from crowdin'
pull_request_body: ''
pull_request_labels: 'scope: i18n, scope: learn, crowdin-sync, language: Chinese'
# global options
config: './curriculum/crowdin.yml'
base_url: ${{ secrets.CROWDIN_BASE_URL_FCC }}
# Uncomment below to debug
# dryrun_action: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID_CURRICULUM }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_CAMPERBOT_SERVICE_TOKEN }}