i embedding foreign system uses i18n website. have no control on source of language files, , language isn't 1 of available languages there.
but have access javascript/jquery, thought i'd change few of headers, give interface more localized feel. not full translation, few of more prominent values.
is there way select specific i18n elements, , change value using javascript/jquery?
this syntax of elements want change:
<div class="classname" data-i18n="some.idententifier">english value</div>
edit:
some more research got me point managed change content of divs, works when identifier 1 word, no dots. see fiddle: http://jsfiddle.net/einavatar/50wnqrym/1/
but all identifiers on interface i'm using make use of dot syntax. how can hook on then?
in jsfiddle have doesnt.work single key. split doesnt: { work: "different value" } , should find works (ironically unless change doesnt does).
Comments
Post a Comment