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

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -