Ngx-Translate Object Values


#1

Hi,

i’m using the ngx-translate module right now and everything seems fine.
But I encountered a little issue now:

The side menu is generated by a array of objects like this:

this.pages = [
      { title: 'Home', icon: 'home', component: "HomePage" },
      { title: 'Mein Konto', icon: 'contact', component: "MeinKontoPage"},
      { title: 'Another page', icon: 'construct', component: "AnotherPage" }
]

Now i’m asking myself, how to translate the title property of the objects?
Is there a simple way with the module or do I have to change it manually with typescript?

Thanks


#3

Solved it, had the idea by myself