From b4e52b4d24e9b47a771fd1845e40d854b52bb631 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 1 Nov 2022 15:42:29 -0400 Subject: [PATCH] LP#1982887: (follow-up) set l10n list back to en-US This works around an issue where the Angular staff client's navbar langauge selector selects all provided locales, but that can break things without additional configuration. To enable the Czech translation, edit Open-ILS/src/eg2/src/environments/environment.prod.ts to add 'cs-CZ' to the list of locales, then rebuild the Angular app using ng build --configuration=production Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/environments/environment.prod.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/eg2/src/environments/environment.prod.ts b/Open-ILS/src/eg2/src/environments/environment.prod.ts index aa207e6a9e..2a7293d0fe 100644 --- a/Open-ILS/src/eg2/src/environments/environment.prod.ts +++ b/Open-ILS/src/eg2/src/environments/environment.prod.ts @@ -2,5 +2,10 @@ 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', 'cs-CZ'] + // FIXME: The language selector in the Angular staff + // client's navbar goes strictly by the list + // here, but that's not ideal: the list of localizations + // shipped with Evergreen (and maybe pre-built) aren't + // necessarily the list you want to turn on. + locales: ['en-US'] }; -- 2.11.0