From 7c0ca49d0351ce8edfb1533146ff5ceb1aba41cf Mon Sep 17 00:00:00 2001 From: "tg(x)" <*@tg-x.net> Date: Mon, 29 Feb 2016 18:19:20 +0100 Subject: html lang --- lib/i18n.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib') 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"]; -- cgit v1.2.3