Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9e66482

Browse files
committed
trying to change slug-functions
1 parent c0f2f2c commit 9e66482

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/header/header.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class HeaderComponent implements OnInit {
5050
* @returns {string} The language code if Czech, empty string otherwise
5151
*/
5252
getLangCodeIfCzech(): string {
53-
return this.localeService.getCurrentLanguageCode() === 'cs' ? this.localeService.getCurrentLanguageCode() : '';
53+
return this.localeService.getCurrentLanguageCode() === 'cs' ? 'cs' : '';
5454
}
5555

5656
/**
@@ -71,6 +71,6 @@ export class HeaderComponent implements OnInit {
7171
'services': 'sluzby'
7272
};
7373

74-
return translations[slug] || '';
74+
return this.getLangCodeIfCzech + '/' + translations[slug] || '';
7575
}
7676
}

0 commit comments

Comments
 (0)