fix: set html lang when the language change

pull/3942/head
mehmet-erim 5 years ago
parent b5c61b3d0f
commit 8d2dc2fa65

@ -33,9 +33,10 @@ export class LocalizationService {
}
private listenToSetLanguage() {
this.actions
.pipe(ofActionSuccessful(SetLanguage))
.subscribe(({ payload }) => this.registerLocale(payload));
this.actions.pipe(ofActionSuccessful(SetLanguage)).subscribe(({ payload }) => {
this.registerLocale(payload);
document.documentElement.lang = payload;
});
}
setRouteReuse(reuse: ShouldReuseRoute) {

Loading…
Cancel
Save