fix: translation action wrong location (#7975)

* set destination

* cleanup files before submitting
This commit is contained in:
Matthias Mair 2024-08-24 01:14:38 +02:00 committed by GitHub
parent d647471588
commit df8efa902e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View File

@ -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:

View File

@ -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%