FrenchyNYC
FrenchyNYC

Reputation: 337

How to translate page title's value using Angular Translate?

I am translating my app into different languages using Angular Translate and if I have no problem translating elements in my page, I do not understand how to translates elements that belong to a value.

Exemple, the header of a ionic page :

<ion-view view-title="PROFILE">

Obviously, writing <ion-view view-title="translate="HEADER_ACCOUNT"">is not possible.

What would be the solution ?

Upvotes: 0

Views: 144

Answers (1)

Paolo
Paolo

Reputation: 734

You can translate it like this:

<ion-view view-title="{{'PROFILE' | translate}}">

documentation here: https://angular-translate.github.io/docs/#/guide/04_using-translate-filter

Upvotes: 1

Related Questions