From: Bill Erickson Date: Thu, 21 Apr 2022 20:45:19 +0000 (-0400) Subject: Add cs-CZ locale to the production environment X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fberick%2Frel-3-9-angular-czech;p=working%2FEvergreen.git Add cs-CZ locale to the production environment Includes build tweaks to get the cz-CS build to work. Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/eg2/angular.json b/Open-ILS/src/eg2/angular.json index 95af4f30ac..aced01dcc4 100644 --- a/Open-ILS/src/eg2/angular.json +++ b/Open-ILS/src/eg2/angular.json @@ -129,6 +129,7 @@ } }, "i18n": { + "sourceLocale": "en-US", "locales": { "cs-CZ": { "translation": "src/locale/messages.cs-CZ.xtb", diff --git a/Open-ILS/src/eg2/package.json b/Open-ILS/src/eg2/package.json index efa733dc71..f8d17951f6 100644 --- a/Open-ILS/src/eg2/package.json +++ b/Open-ILS/src/eg2/package.json @@ -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": [ diff --git a/Open-ILS/src/eg2/src/environments/environment.prod.ts b/Open-ILS/src/eg2/src/environments/environment.prod.ts index d7953f9f8a..aa207e6a9e 100644 --- a/Open-ILS/src/eg2/src/environments/environment.prod.ts +++ b/Open-ILS/src/eg2/src/environments/environment.prod.ts @@ -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'] };