aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authortg(x) <*@tg-x.net>2016-02-29 18:19:20 +0100
committertg(x) <*@tg-x.net>2016-02-29 18:19:20 +0100
commit7c0ca49d0351ce8edfb1533146ff5ceb1aba41cf (patch)
tree0764a9aba3f913abc1eb76a79fe75b774d4f9791 /lib
parent9beacc4688381544fb06ac71bc63b6f5ffd5af82 (diff)
html lang
Diffstat (limited to 'lib')
-rw-r--r--lib/i18n.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/i18n.ts b/lib/i18n.ts
index 60da6644f..230bddd7d 100644
--- a/lib/i18n.ts
+++ b/lib/i18n.ts
@@ -16,6 +16,12 @@
"use strict";
+document.addEventListener(
+ "DOMContentLoaded",
+ function () {
+ document.body.lang = chrome.i18n.getUILanguage();
+ });
+
declare var i18n: any;
const JedModule = window["Jed"];