From 997713bca310b224435310961d756eee1a8a3fa6 Mon Sep 17 00:00:00 2001 From: Georgiana Roman <38908609+georgiana-roman@users.noreply.github.com> Date: Thu, 24 May 2018 19:18:21 +0300 Subject: [PATCH] [ADF-2977] made language change persistenr (#3373) --- lib/core/services/user-preferences.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/services/user-preferences.service.ts b/lib/core/services/user-preferences.service.ts index 924727c000..d2a344e8a6 100644 --- a/lib/core/services/user-preferences.service.ts +++ b/lib/core/services/user-preferences.service.ts @@ -62,7 +62,7 @@ export class UserPreferencesService { private apiService: AlfrescoApiService ) { this.appConfig.onLoad.subscribe(this.initUserPreferenceStatus.bind(this)); - this.localeSubject = new BehaviorSubject(this.defaults.locale); + this.localeSubject = new BehaviorSubject(this.userPreferenceStatus[UserPreferenceValues.Locale]); this.locale$ = this.localeSubject.asObservable(); this.onChangeSubject = new BehaviorSubject(this.userPreferenceStatus); this.onChange = this.onChangeSubject.asObservable();