summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorsoftwarefactory-project-zuul[bot] <33884098+softwarefactory-project-zuul[bot]@users.noreply.github.com>2021-06-08 23:36:02 +0200
committerGitHub <noreply@github.com>2021-06-08 23:36:02 +0200
commit805ca53765ebed0a2afbd8f8141a51023a84c250 (patch)
treefd11d13ca7b55e8b085c54ba3316fdf0087c68d3 /Makefile
parentMerge pull request #10377 from kdelee/control_plane_ee (diff)
parentUpdate translation make target for ui_next (diff)
downloadawx-805ca53765ebed0a2afbd8f8141a51023a84c250.tar.xz
awx-805ca53765ebed0a2afbd8f8141a51023a84c250.zip
Merge pull request #10390 from rooftopcellist/update-translations
Update translation make target for ui_next SUMMARY This adds the --clean flag to the extract-strings command (cleans up obsolete strings) and separates out the extract-template command. ISSUE TYPE Feature Pull Request COMPONENT NAME Translation Automation AWX VERSION 19.2.0 Reviewed-by: Jake McDermott <yo@jakemcdermott.me> Reviewed-by: Christian Adams <rooftopcellist@gmail.com> Reviewed-by: Alex Corey <Alex.swansboro@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index db670a123e..ee3e55b63e 100644
--- a/Makefile
+++ b/Makefile
@@ -551,10 +551,13 @@ awx-kube-dev-build: Dockerfile.kube-dev
# Translation TASKS
# --------------------------------------
-# generate UI .pot
+# generate UI .pot file, an empty template of strings yet to be translated
pot: $(UI_BUILD_FLAG_FILE)
- $(NPM_BIN) --prefix awx/ui_next --loglevel warn run extract-strings
- $(NPM_BIN) --prefix awx/ui_next --loglevel warn run extract-template
+ $(NPM_BIN) --prefix awx/ui_next --loglevel warn run extract-template --clean
+
+# generate UI .po files for each locale (will update translated strings for `en`)
+po: $(UI_BUILD_FLAG_FILE)
+ $(NPM_BIN) --prefix awx/ui_next --loglevel warn run extract-strings -- --clean
# generate API django .pot .po
LANG = "en-us"