[ADF-2977] made language change persistenr (#3373)

This commit is contained in:
Georgiana Roman
2018-05-24 19:18:21 +03:00
committed by Eugenio Romano
parent 04e50eeabd
commit 997713bca3

View File

@@ -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();