From 0466d4bc1effe759f987d35fd1f568dd9bfab7b6 Mon Sep 17 00:00:00 2001 From: Roger Sheen Date: Tue, 22 Sep 2020 17:49:54 +0200 Subject: [PATCH] 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 --- crowdin.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 crowdin.yml diff --git a/crowdin.yml b/crowdin.yml new file mode 100644 index 00000000..a747d7b3 --- /dev/null +++ b/crowdin.yml @@ -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", + }, + ]