From cdde6fd03bd4380f274e52c95f51d0cc843e1159 Mon Sep 17 00:00:00 2001 From: "tg(x)" <*@tg-x.net> Date: Tue, 1 Mar 2016 14:47:56 +0100 Subject: Revert "Revert "html lang"" This reverts commit ea7fb2d5c8b0e0052a81e48e6d99143dfc233dc5. --- 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