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:
13
tasks.py
13
tasks.py
@ -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
|
||||
|
Reference in New Issue
Block a user