internationalization - Angularjs perform translation on a template loaded dynamically with JSON data -


I am creating an app that requires translation

My app structure has something similar Kind of

some Directirect.js -----> Load some directive templates

Some directive templates - & lt; P & gt; {{Data.name}}

So my question is, is it possible that the translation template?

Something like & lt; P & gt; {{Data.name | Translate}}

If so, how can I get it?

I am using i18ng, which wraps i18next I highly recommend it, and It does exactly what you want and more. Obviously ng-i18next does about that, but I have not tried to do it.

Comments

Popular posts from this blog

Out of index C/C++ -

regex - PatternSyntaxException: while using String.ReplaceAll function in java? -

objective c - how Set autolayout for multiple dynamic buttons and labells in iOS? -