Add cs-CZ locale to the production environment user/berick/rel-3-9-angular-czech
authorBill Erickson <berickxx@gmail.com>
Thu, 21 Apr 2022 20:45:19 +0000 (16:45 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Apr 2022 21:14:10 +0000 (17:14 -0400)
Includes build tweaks to get the cz-CS build to work.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/angular.json
Open-ILS/src/eg2/package.json
Open-ILS/src/eg2/src/environments/environment.prod.ts

index 95af4f3..aced01d 100644 (file)
         }
       },
       "i18n": {
+        "sourceLocale": "en-US",
         "locales": {
           "cs-CZ": {
             "translation": "src/locale/messages.cs-CZ.xtb",
index efa733d..f8d1795 100644 (file)
@@ -10,7 +10,7 @@
     "e2e": "ng e2e",
     "create-mock-idl": "cd src/test_data && perl idl2js.pl",
     "export-strings": "ng xi18n --output-path locale --i18n-format xmb",
-    "build-cs-CZ": "ng build --configuration=production-cs-CZ --output-path ../../web/eg2/ --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"
+    "build-cs-CZ": "ng build --configuration=production-cs-CZ --output-path ../../web/eg2 --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,
   "browserslist": [
index d7953f9..aa207e6 100644 (file)
@@ -2,5 +2,5 @@ export const environment = {
   production: true,
   // TODO: a way to pass these in at build time.
   // locales: ['en-US', 'fr-CA', 'cs-CZ']
-  locales: ['en-US']
+  locales: ['en-US', 'cs-CZ']
 };