LP1993534: Command line flag usage for ng xi18n
authorJane Sandberg <js7389@princeton.edu>
Wed, 19 Oct 2022 13:28:40 +0000 (06:28 -0700)
committerJane Sandberg <sandbergja@gmail.com>
Thu, 20 Oct 2022 22:28:22 +0000 (15:28 -0700)
To test:

1) cd [Evergreen repo]/Open-ILS/src/eg2
2) npm install
3) npm run export-strings # should fail
4) Apply this patch
5) npm run export-strings # should successfully create a file in the locales directory

Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Jason Boyer <JBoyer@equinoxOLI.org>
Open-ILS/src/eg2/package.json

index 377d652..f47c879 100644 (file)
@@ -9,7 +9,7 @@
     "lint": "ng lint",
     "e2e": "ng e2e",
     "create-mock-idl": "cd src/test_data && perl idl2js.pl",
-    "export-strings": "ng xi18n --output-path locale --i18n-format xmb",
+    "export-strings": "ng xi18n --output-path locale --format xmb",
     "build-cs-CZ": "ng build --configuration=production-cs-CZ --output-path ../../web/eg2/cs-CZ --deploy-url /eg2/cs-CZ/ --base-href /eg2/cs-CZ; sed -i s/IDL2js\\\"/IDL2js?locale=cs-CZ\\\"/g ../../web/eg2/cs-CZ/index.html; sed -i s/lang=\\\"en\\\"/lang=\\\"cs\\\"/g ../../web/eg2/cs-CZ/index.html"
   },
   "private": true,