javascript - Issues using Localize.js and AngularJs -


localize.js causing problems when trying translate contents included in ng-repeat element.

the content should translated, removed. no errors in console.

the way found make working putting localize.setlanguage() within angular controller managing content translated, , there.

the point (for specific reasons) need put localize.setlanguage() before point.

any ideas why happening?

edit - relevant code:

this script in html head:

    <script>         localize.initialize({             key: 'xxxxxxxx',             rememberlanguage: false,             savenewphrases: false,             translatetitle: true,             translatebody: true         });         localize.setlanguage('en');     </script> 

where, 'en' not default language in localize.js (which 'it').

and html in body:

    <b ng-repeat="f in filtri" ng-cloak>         <span class="filter__label filter__label--key">{{f.l}}</span><span class="filter__label filter__label--value" notranslate>{{f.v}}</span>     </b> 


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -