Revize 230804d9
Přidáno uživatelem Václav Jirák před téměř 6 roky(ů)
webapp/src/app/header/header.component.ts | ||
---|---|---|
12 | 12 |
}) |
13 | 13 |
export class HeaderComponent { |
14 | 14 |
profile: UserProfile; |
15 |
language: string; |
|
15 | 16 |
|
16 | 17 |
constructor( |
17 | 18 |
private dialog: MatDialog, |
... | ... | |
20 | 21 |
) { |
21 | 22 |
userService.getLoggedUserProfile() |
22 | 23 |
.subscribe((data: UserProfile) => this.profile = data); |
24 |
this.language = this.localizationService.getCurrentLanguage(); |
|
23 | 25 |
} |
24 | 26 |
|
27 |
switchLanguage(language: string) { |
|
28 |
this.language = this.localizationService.switchLocale(language); |
|
29 |
} |
|
25 | 30 |
onProfileClick(): void { |
26 | 31 |
this.userService.getLoggedUserProfile() |
27 | 32 |
.subscribe((data: UserProfile) => { |
Také k dispozici: Unified diff
Re #7475 Localization