fix: only download chinese and spanish docs (#41114)
This commit is contained in:
@@ -11,8 +11,8 @@ jobs:
|
|||||||
- name: Checkout Source Files
|
- name: Checkout Source Files
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
##### Download #####
|
##### Download Chinese #####
|
||||||
- name: Crowdin Download for Translations
|
- name: Crowdin Download Chinese Translations
|
||||||
uses: crowdin/github-action@master
|
uses: crowdin/github-action@master
|
||||||
# options: https://github.com/crowdin/github-action/blob/master/action.yml
|
# options: https://github.com/crowdin/github-action/blob/master/action.yml
|
||||||
with:
|
with:
|
||||||
@@ -24,17 +24,14 @@ jobs:
|
|||||||
|
|
||||||
# downloads
|
# downloads
|
||||||
download_translations: true
|
download_translations: true
|
||||||
|
download_language: zh-CN
|
||||||
skip_untranslated_files: false
|
skip_untranslated_files: false
|
||||||
export_only_approved: true
|
export_only_approved: true
|
||||||
|
|
||||||
commit_message: 'chore(i8n,docs): processed translations'
|
push_translations: false
|
||||||
|
|
||||||
# pull-request
|
# pull-request
|
||||||
localization_branch_name: i18n-sync-docs
|
|
||||||
create_pull_request: false
|
create_pull_request: false
|
||||||
pull_request_title: 'chore(i18n,docs): Processed translations from crowdin'
|
|
||||||
pull_request_body: ''
|
|
||||||
pull_request_labels: 'scope: i18n, scope: docs, crowdin-sync'
|
|
||||||
|
|
||||||
# global options
|
# global options
|
||||||
config: './config/crowdin/docs/crowdin.yml'
|
config: './config/crowdin/docs/crowdin.yml'
|
||||||
@@ -47,3 +44,39 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID_DOCS }}
|
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID_DOCS }}
|
||||||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_CAMPERBOT_SERVICE_TOKEN }}
|
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_CAMPERBOT_SERVICE_TOKEN }}
|
||||||
|
|
||||||
|
##### Download Espanol #####
|
||||||
|
- name: Crowdin Espanol Download 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_translations: true
|
||||||
|
download_language: es-EM
|
||||||
|
skip_untranslated_files: false
|
||||||
|
export_only_approved: true
|
||||||
|
|
||||||
|
commit_message: 'chore(i8n,docs): processed translations'
|
||||||
|
localization_branch_name: i18n-sync-docs
|
||||||
|
push_translations: true
|
||||||
|
|
||||||
|
# pull-request
|
||||||
|
create_pull_request: false
|
||||||
|
|
||||||
|
# global options
|
||||||
|
config: './config/crowdin/docs/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_DOCS }}
|
||||||
|
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_CAMPERBOT_SERVICE_TOKEN }}
|
@@ -9,7 +9,6 @@ files: [
|
|||||||
{
|
{
|
||||||
"source" : "/docs/*.md",
|
"source" : "/docs/*.md",
|
||||||
"translation" : "/docs/i18n/%language%/%original_file_name%",
|
"translation" : "/docs/i18n/%language%/%original_file_name%",
|
||||||
|
|
||||||
"ignore" : [
|
"ignore" : [
|
||||||
"/docs/_coverpage.md",
|
"/docs/_coverpage.md",
|
||||||
"/docs/_navbar.md",
|
"/docs/_navbar.md",
|
||||||
|
Reference in New Issue
Block a user