I18N-978: Add configuration file for Crowdin CLI (#1071)

Per https://support.crowdin.com/cli-tool/

Fixes https://perzoinc.atlassian.net/browse/I18N-978

Co-authored-by: Vishwas Shashidhar <VishwasShashidhar@users.noreply.github.com>
This commit is contained in:
Roger Sheen 2020-09-22 17:49:54 +02:00 committed by GitHub
parent b72b67cba9
commit 0466d4bc1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

29
crowdin.yml Normal file
View File

@ -0,0 +1,29 @@
#
# Your Crowdin credentials
#
"project_id": "420172" # Crowdin project Settings > API & Webhooks > API > Project Id
"api_token_env": "CROWDIN_PERSONAL_TOKEN" # Low priority: superseded by user-specific credentials file ~/.crowdin.yaml
"base_path": "."
"base_url": "https://api.crowdin.com"
#
# Choose file structure in Crowdin
# e.g. true or false
#
"preserve_hierarchy": true
#
# Files configuration
#
files:
[
{
"source": "/src/locale/en-US.json",
"translation": "/src/locale/%locale%.json",
},
# Duplicate file
{
"source": "/src/locale/en.json",
"translation": "/src/locale/%two_letters_code%.json",
},
]