2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-12 10:05:39 +00:00

P-UI: Adapt translation CI (#5299)

* Fixes up translation for P-UI
Closes [FR/P-UI] Translation integration #5282

* ammended crowdin settings
This commit is contained in:
Matthias Mair
2023-07-21 01:00:37 +02:00
committed by GitHub
parent 2fc82fd0e3
commit 9fe77b20e4
3 changed files with 13 additions and 9 deletions

View File

@ -259,7 +259,7 @@ def translate_stats(c):
@task(post=[translate_stats])
def translate(c, skip_static=False):
def translate(c):
"""Rebuild translation source files. Advanced use only!
Note: This command should not be used on a local install,
@ -269,13 +269,12 @@ def translate(c, skip_static=False):
manage(c, "makemessages --all -e py,html,js --no-wrap")
manage(c, "compilemessages")
if not skip_static:
if node_available():
frontend_trans(c)
frontend_build(c)
if node_available():
frontend_trans(c)
frontend_build(c)
# Update static files
static(c)
# Update static files
static(c)
@task