From df8efa902e94534187005a0c6bd8d157fd79898a Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Sat, 24 Aug 2024 01:14:38 +0200 Subject: [PATCH] fix: translation action wrong location (#7975) * set destination * cleanup files before submitting --- .github/workflows/translations.yaml | 8 ++++++++ crowdin.yml | 2 ++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/translations.yaml b/.github/workflows/translations.yaml index 308e171a98..1d29eaaf53 100644 --- a/.github/workflows/translations.yaml +++ b/.github/workflows/translations.yaml @@ -40,6 +40,14 @@ jobs: apt-dependency: gettext - name: Make Translations run: invoke translate + - name: Remove compiled static files + run: rm -rf src/backend/InvenTree/static + - name: Remove all local changes that are not *.po files + run: | + git add /src/backend/InvenTree/locale/en/LC_MESSAGES/django.po /src/frontend/src/locales/en/messages.po + git commit -m "add translations" + git reset --hard + git reset HEAD~ - name: crowdin action uses: crowdin/github-action@6ed209d411599a981ccb978df3be9dc9b8a81699 # pin@v2 with: diff --git a/crowdin.yml b/crowdin.yml index e6851f3632..74125c7681 100644 --- a/crowdin.yml +++ b/crowdin.yml @@ -3,6 +3,8 @@ files: - source: /src/backend/InvenTree/locale/en/LC_MESSAGES/django.po + dest: /%original_path%/%file_name% translation: /src/backend/InvenTree/locale/%two_letters_code%/LC_MESSAGES/%original_file_name% - source: /src/frontend/src/locales/en/messages.po + dest: /%original_path%/%file_name% translation: /src/frontend/src/locales/%two_letters_code%/%original_file_name%