fix(crowdin): update config and exclude files

This commit is contained in:
Mrugesh Mohapatra 2020-10-01 06:57:52 +05:30
parent b1420e2de1
commit 5a42caffb1
2 changed files with 13 additions and 8 deletions

View File

@ -7,9 +7,8 @@ on:
push:
branches:
- i18n-dev
jobs:
jobs:
i18n-sync-docs:
name: Docs
runs-on: ubuntu-latest
@ -23,9 +22,9 @@ jobs:
# options: https://github.com/crowdin/github-action/blob/master/action.yml
with:
# uploads
upload_translations: true
auto_approve_imported: true
import_eq_suggestions: true
upload_translations: false
auto_approve_imported: false
import_eq_suggestions: false
# downloads
download_translations: true

View File

@ -1,9 +1,9 @@
# Used with the Crowdin CLI or GitHub Actions
# CLI Usage (use --dryrun for preview):
# crowdin download --config ./docs/crowdin.yml --identity ~/.crowdin.yaml
# crowdin upload sources --config ./docs/crowdin.yml --identity ~/.crowdin.yaml
# crowdin upload translations --config ./docs/crowdin.yml --identity ~/.crowdin.yaml
# crowdin download --identity ~/.crowdin.yaml
# crowdin upload sources --identity ~/.crowdin.yaml
# crowdin upload translations --identity ~/.crowdin.yaml
# These tokens are overriden when using cli with project_id and api_token
project_id_env: CROWDIN_PROJECT_ID
@ -16,5 +16,11 @@ base_path: docs
files:
- source: /*.md
translation: /i18n/%language%/%original_file_name%
ignore:
- _coverpage.md
- _navbar.md
- README.md
- source: /flight-manuals/*.md
translation: /i18n/%language%/flight-manuals/%original_file_name%
ignore:
- working-on-virtual-machines.md