Added i18n and Spanish and Catalan translation
diff --git a/options.js b/options.js
index eb89bc4..266a28b 100644
--- a/options.js
+++ b/options.js
@@ -38,7 +38,18 @@
});
}
+function i18n() {
+ var messages = ["list", "thread", "enhancements", "fixedtoolbar", "redirect", "experimental_label", "history", "save"];
+
+ messages.forEach(function(msg) {
+ console.log(msg);
+ document.querySelector("[data-i18n=\""+msg+"\"]").innerHTML = chrome.i18n.getMessage("options_"+msg);
+ });
+}
+
window.addEventListener("load", function() {
+ i18n();
+
chrome.storage.sync.get(null, function(items) {
items = cleanUpOptions(items);