Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0f2f2c commit 9e66482Copy full SHA for 9e66482
src/app/header/header.component.ts
@@ -50,7 +50,7 @@ export class HeaderComponent implements OnInit {
50
* @returns {string} The language code if Czech, empty string otherwise
51
*/
52
getLangCodeIfCzech(): string {
53
- return this.localeService.getCurrentLanguageCode() === 'cs' ? this.localeService.getCurrentLanguageCode() : '';
+ return this.localeService.getCurrentLanguageCode() === 'cs' ? 'cs' : '';
54
}
55
56
/**
@@ -71,6 +71,6 @@ export class HeaderComponent implements OnInit {
71
'services': 'sluzby'
72
};
73
74
- return translations[slug] || '';
+ return this.getLangCodeIfCzech + '/' + translations[slug] || '';
75
76
0 commit comments