|
|
|
@ -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) { |
|
|
|
|