From 5bb639cfcdf1a9e3e4a13577fbbb5546463e16e6 Mon Sep 17 00:00:00 2001 From: Marcel Brode Date: Mon, 4 Dec 2023 11:34:37 +0100 Subject: [PATCH 1/3] NEXT-31363 - Implement upload workflow --- .github/workflows/crowdin-upload.yml | 18 ++++++++++++++++++ crowdin.yml | 2 -- .../Administration/administration.json | 4 ++-- 3 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/crowdin-upload.yml diff --git a/.github/workflows/crowdin-upload.yml b/.github/workflows/crowdin-upload.yml new file mode 100644 index 0000000000..b5c02fc07c --- /dev/null +++ b/.github/workflows/crowdin-upload.yml @@ -0,0 +1,18 @@ +name: Crowdin Upload Action + +jobs: + crowdin-upload: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Synchronize with Crowdi + uses: crowdin/github-action@v1 + with: + upload_sources: true + upload_translations: true + download_translations: false + env: + CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} + CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} diff --git a/crowdin.yml b/crowdin.yml index 22754cc6ea..f6014a7a55 100644 --- a/crowdin.yml +++ b/crowdin.yml @@ -8,7 +8,6 @@ files: [{ "source": "/en-GB/**/*.json", "translation": "/%locale%/**/%original_file_name%", "type": "json", - "excluded_target_languages": [], "languages_mapping": { "locale": { "sr-CS": "sr-RS" @@ -21,7 +20,6 @@ files: [{ "de": "de-DE" }, "type": "json", - "excluded_target_languages": [], "languages_mapping": { "two_letters_code": { "ar": "ar-SA", diff --git a/translations/en-GB/Platform/Administration/administration.json b/translations/en-GB/Platform/Administration/administration.json index 36f1bb0581..ab025f5035 100644 --- a/translations/en-GB/Platform/Administration/administration.json +++ b/translations/en-GB/Platform/Administration/administration.json @@ -1,7 +1,7 @@ { "sw-settings": { "general": { - "mainMenuItemGeneral": "Settings" + "mainMenuItemGeneral": "MOCKMOCKMOCK-Settings" }, "index": { "title": "Settings", @@ -9547,4 +9547,4 @@ "learnMoreUrl": "https:\/\/shopware.com\/en\/privacy\/" } } -} \ No newline at end of file +} From 6eb756bd9775c02be5484636d107469e8c67165b Mon Sep 17 00:00:00 2001 From: Lukas Rump Date: Tue, 5 Dec 2023 11:13:02 +0100 Subject: [PATCH 2/3] add on workflow dispatch --- .github/workflows/crowdin-upload.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/crowdin-upload.yml b/.github/workflows/crowdin-upload.yml index b5c02fc07c..e26adbfc76 100644 --- a/.github/workflows/crowdin-upload.yml +++ b/.github/workflows/crowdin-upload.yml @@ -1,5 +1,8 @@ name: Crowdin Upload Action +on: + workflow_dispatch: + jobs: crowdin-upload: runs-on: ubuntu-latest From 506f35c4391bbb7ec908f1cdf0e892eae4f4682c Mon Sep 17 00:00:00 2001 From: Lukas Rump Date: Tue, 5 Dec 2023 11:38:34 +0100 Subject: [PATCH 3/3] disable preserve hierarchy --- .github/workflows/crowdin-download.yml | 2 +- .github/workflows/crowdin-upload.yml | 5 +++-- crowdin.yml | 1 - 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/crowdin-download.yml b/.github/workflows/crowdin-download.yml index 3e20292a33..99d9f9ea6f 100644 --- a/.github/workflows/crowdin-download.yml +++ b/.github/workflows/crowdin-download.yml @@ -1,4 +1,4 @@ -name: Crowdin Download Action +name: "Crowdin Download Action" on: workflow_dispatch: diff --git a/.github/workflows/crowdin-upload.yml b/.github/workflows/crowdin-upload.yml index e26adbfc76..b7ae751e81 100644 --- a/.github/workflows/crowdin-upload.yml +++ b/.github/workflows/crowdin-upload.yml @@ -1,4 +1,4 @@ -name: Crowdin Upload Action +name: "Crowdin Upload Action" on: workflow_dispatch: @@ -10,12 +10,13 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: Synchronize with Crowdi + - name: Synchronize with Crowdin uses: crowdin/github-action@v1 with: upload_sources: true upload_translations: true download_translations: false + preserve_hierarchy: false env: CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} diff --git a/crowdin.yml b/crowdin.yml index f6014a7a55..3c19f48a26 100644 --- a/crowdin.yml +++ b/crowdin.yml @@ -2,7 +2,6 @@ "api_token_env": "CROWDIN_PERSONAL_TOKEN" "base_path": "./translations/" "base_url": "https://api.crowdin.com" -"preserve_hierarchy": true files: [{ "source": "/en-GB/**/*.json",