Update translation make target for ui_next

This commit is contained in:
Christian M. Adams 2021-06-08 09:58:51 -04:00
parent 7c442f3f50
commit fb1a5c0db5
No known key found for this signature in database
GPG Key ID: F41796178F693C8E
2 changed files with 7 additions and 3 deletions

View File

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

View File

@ -74,6 +74,7 @@
"lint": "eslint --ext .js --ext .jsx .",
"add-locale": "lingui add-locale",
"extract-strings": "lingui extract",
"extract-template": "lingui extract-template",
"compile-strings": "lingui compile",
"prettier": "prettier --write \"src/**/*.{js,jsx,scss}\"",
"prettier-check": "prettier --check \"src/**/*.{js,jsx,scss}\""