mirror of
https://github.com/inventree/InvenTree.git
synced 2026-05-23 17:45:25 +00:00
Add some new (empty) locale translation entries
- fr - it - ja - pl - ru - zh Also fixes the `invoke translate` command (maybe it was changed with the recent update to Django 3.2?) The CI pipeline now runs the translation and static collection steps, to check those for errors.
This commit is contained in:
@@ -42,6 +42,9 @@ jobs:
|
|||||||
rm test_db.sqlite
|
rm test_db.sqlite
|
||||||
invoke migrate
|
invoke migrate
|
||||||
invoke import-records -f data.json
|
invoke import-records -f data.json
|
||||||
|
- name: Test Translations
|
||||||
|
# This will test both the translation and collectstatic functions
|
||||||
|
run: invoke translate
|
||||||
- name: Check Migration Files
|
- name: Check Migration Files
|
||||||
run: python3 ci/check_migration_files.py
|
run: python3 ci/check_migration_files.py
|
||||||
- name: Upload Coverage Report
|
- name: Upload Coverage Report
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -174,7 +174,7 @@ def update(c):
|
|||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@task
|
@task(post=[static])
|
||||||
def translate(c):
|
def translate(c):
|
||||||
"""
|
"""
|
||||||
Regenerate translation files.
|
Regenerate translation files.
|
||||||
@@ -184,7 +184,7 @@ def translate(c):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
# Translate applicable .py / .html / .js files
|
# Translate applicable .py / .html / .js files
|
||||||
manage(c, "makemessages -e py -e html -e js")
|
manage(c, "makemessages --all -e py,html,js")
|
||||||
manage(c, "compilemessages")
|
manage(c, "compilemessages")
|
||||||
|
|
||||||
path = os.path.join('InvenTree', 'script', 'translation_stats.py')
|
path = os.path.join('InvenTree', 'script', 'translation_stats.py')
|
||||||
|
|||||||
Reference in New Issue
Block a user