Hello,
I have starting using the default slide menu template and the translate is working fine in my HTML pages.
How can I translate the titles of my different items of my slide menu defined in my app.component.ts:
constructor(private translate: TranslateService, private config: Config, private platform: Platform, private statusBar: StatusBar, private splashScreen: SplashScreen) {
this.initTranslate();
this.initializeApp();
// used for an example of ngFor and navigation
this.pages = [
{ title: 'Home', component: HomePage },
{ title: 'List', component: ListPage },
];
}
I tried the translateService.get(’…’).subscribe and this.translate.instant with no success.
Thank you
Sylvain