Skip to content

Commit e2ecf92

Browse files
committed
Added culture path
1 parent 91282ea commit e2ecf92

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

eform-client/src/app/common/services/auth/locale.service.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,16 @@ export class LocaleService extends BaseService {
7070
} else {
7171
culture = this.buildCookieValue('en-US');
7272
}
73-
this.cookieService.set('culture', culture);
74-
this.cookieService.set('locale', locale);
73+
this.cookieService.set('culture', culture, 9999999, '/');
74+
this.cookieService.set('locale', locale, 9999999, '/');
7575
}
7676

7777
buildCookieValue(locale: string) {
7878
return 'c=' + locale + '|uic=' + locale;
7979
}
8080

8181
updateCookies(locale: string) {
82-
this.cookieService.set('locale', locale);
83-
this.cookieService.set('culture', this.buildCookieValue(locale));
82+
this.cookieService.set('locale', locale, 9999999, '/');
83+
this.cookieService.set('culture', this.buildCookieValue(locale), 9999999, '/');
8484
}
8585
}

eform-client/src/app/modules/account-management/components/profile/profile-settings/profile-settings.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export class ProfileSettingsComponent implements OnInit {
8686
this.userSettingsService.updateUserSettings(this.userSettingsModel).subscribe(((data) => {
8787
this.localeService.updateUserLocale(this.userSettingsModel.locale);
8888
this.spinnerStatus = false;
89-
this.eventBrokerService.emit<void>('get-navigation-menu', null);
89+
window.location.reload();
9090
}), error => {
9191
this.spinnerStatus = false;
9292
});

0 commit comments

Comments
 (0)