Marta Castro
Marta Castro

Reputation: 77

Angular translate with accents

I'm using angular-translate and a JSON file utf-8 with the value:

"TAB_ES" : "Características"

I get the string "Características" when I use:

<uib-tab heading="{{'TAB_ES'|translate}}"></uib-tab>

How I can print the value correctly?

Upvotes: 1

Views: 389

Answers (1)

Marta Castro
Marta Castro

Reputation: 77

I resolve this with:

$translateProvider.useSanitizeValueStrategy('sanitizeParameters');

Upvotes: 4

Related Questions