blob: 427d9b3413f343ab1356c5ea7a903379251913a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
"use strict";
html5ks.i18n = {
init: function () {
html5ks.fetch("json", "ui-strings").then(function () {
var uiStrings = html5ks.data["ui-strings"];
for (var k in uiStrings) {
var e = document.getElementsByClassName(k);
for (var i = e.length - 1; i >= 0; i--) {
var t = document.createTextNode(uiStrings[k]);
e[i].appendChild(t);
}
}
});
}
};
|