You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by dg...@apache.org on 2020/09/25 11:44:48 UTC
[incubator-dlab] branch DLAB-1778 updated: [DLAB-2039]: Fix 'en-Us'
key
This is an automated email from the ASF dual-hosted git repository.
dgnatyshyn pushed a commit to branch DLAB-1778
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/DLAB-1778 by this push:
new b86329f [DLAB-2039]: Fix 'en-Us' key
b86329f is described below
commit b86329ffd1417322239069316e36884625dab782
Author: Dmytro_Gnatyshyn <di...@ukr.net>
AuthorDate: Fri Sep 25 14:44:03 2020 +0300
[DLAB-2039]: Fix 'en-Us' key
---
.../resources/webapp/src/app/core/services/localization.service.ts | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/services/self-service/src/main/resources/webapp/src/app/core/services/localization.service.ts b/services/self-service/src/main/resources/webapp/src/app/core/services/localization.service.ts
index fc4aca2..dc86448 100644
--- a/services/self-service/src/main/resources/webapp/src/app/core/services/localization.service.ts
+++ b/services/self-service/src/main/resources/webapp/src/app/core/services/localization.service.ts
@@ -43,9 +43,8 @@ export class LocalizationService {
public static registerCulture(culture: string) {
console.log(culture);
- if (culture === 'uk-UA') {
+ if (culture === 'uk-UA' || culture === 'en-US') {
culture = culture.substr(0, culture.indexOf('-'));
- console.log('inside', culture);
}
/* webpackInclude: /(uk|sv)\.js$/ */
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org