Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
greetings: string = '';
constructor(private translateService: TranslateService) {
this.translateService.setTranslation('en', {
'about.header': 'About',
'about.greetings': 'Hello fellow translator {{name}}'
this.translateService.get('about.greetings', {name: 'Roman'}).subscribe((res: string) => {
this.greetings = res;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.