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
Post a Comment