diff --git a/src/app/components/root/root.component.html b/src/app/components/root/root.component.html index 1ab0348..070d7ef 100644 --- a/src/app/components/root/root.component.html +++ b/src/app/components/root/root.component.html @@ -18,14 +18,19 @@
- - - - + + + +
- +
diff --git a/src/app/components/root/root.component.ts b/src/app/components/root/root.component.ts index b2cba27..bbe6634 100644 --- a/src/app/components/root/root.component.ts +++ b/src/app/components/root/root.component.ts @@ -78,7 +78,20 @@ export class RootComponent implements OnInit { mouseOver(s: string) { // console.log('mouseover!' + s); - this.mousingOver = s; + // do some translation + let language = this.stateService.getLanguage(); + if (s === 'lang') { + if (language == 'nl') { + this.mousingOver = 'Taal: Nederlands'; + } else if (language = 'en') { + this.mousingOver = 'Language: English'; + } else { + this.mousingOver = 'Language: Yaaarrrr matey!'; + } + } else { + // default: use the passed string + this.mousingOver = s; + } } mouseOut(s: string) {