2015-01-05 19:40:26 +00:00
|
|
|
document.addEventListener('DOMContentLoaded', function() {
|
2014-11-16 23:27:39 +00:00
|
|
|
// Processing all emenents contains data-i18n attribute
|
2015-01-05 19:40:26 +00:00
|
|
|
Array.prototype.forEach.call(document.querySelectorAll('[data-i18n]'), function(elem) {
|
|
|
|
elem.innerHTML = chrome.i18n.getMessage(elem.dataset.i18n);
|
2014-11-16 23:27:39 +00:00
|
|
|
});
|
2015-01-05 19:40:26 +00:00
|
|
|
}, false);
|