Having integrated Angular NG Translate into my app, I ran into a roadblock when attempting to translate the side menu items. The usual method of using expressions like {{'TEXT1' | translate }} did not work for me due to the format already in use in my app.component.ts file. Despite trying to nest translations within expressions, it was unsuccessful and I may have missed a step.
The code snippet from my app.component.ts for the sidemenu is as follows:
appPages: PageInterface[] = [
{ title: 'PageA', component: TabsPage, tabComponent: PageAPage },
{ title: 'PageB', component: TabsPage, tabComponent: PageBPage },
{ title: 'PageC', component: TabsPage, tabComponent: PageCPage },
{ title: 'PageD', component: TabsPage, tabComponent: PageDPage }
];
To translate each menu name (e.g., PageA), one would typically change them to:
{{'PageA' | translate }}
It seems that adding additional expressions within existing ones disrupts the translation process. Any insights or suggestions on resolving this issue would be greatly appreciated.