From ffb6e1d0a6aaee650cef9df007072d1cbba89e4a Mon Sep 17 00:00:00 2001 From: Andreas Blaesius Date: Wed, 26 Jan 2022 10:02:26 +0100 Subject: [PATCH] GitHub (workflows): keep path on Crowdin source Change-Id: I83444f72e2d23fd877b508e0b9aed7b10f2c1b74 --- .github/workflows/crowdin.yml | 3 +-- crowdin/config.yml | 11 +++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 crowdin/config.yml diff --git a/.github/workflows/crowdin.yml b/.github/workflows/crowdin.yml index 08d39b7d5..d9931c391 100644 --- a/.github/workflows/crowdin.yml +++ b/.github/workflows/crowdin.yml @@ -24,7 +24,6 @@ jobs: upload_translations: false push_translations: false download_translations: false - source: 'resources/lang/en.json' - translation: 'resources/lang/%two_letters_code%.json' + config: "crowdin/config.yml" project_id: ${{ secrets.CROWDIN_PROJECT_ID }} token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} diff --git a/crowdin/config.yml b/crowdin/config.yml new file mode 100644 index 000000000..1cd3ec269 --- /dev/null +++ b/crowdin/config.yml @@ -0,0 +1,11 @@ +project_id_env: CROWDIN_PROJECT_ID +api_token_env: CROWDIN_PERSONAL_TOKEN + +"preserve_hierarchy": true + +"files": [ + { + "source": "resources/lang/en.json", + "translation": "resources/lang/%two_letters_code%.json" + } +]