aboutsummaryrefslogtreecommitdiff
path: root/lib/i18n.ts
diff options
context:
space:
mode:
authortg(x) <*@tg-x.net>2016-03-01 14:47:56 +0100
committertg(x) <*@tg-x.net>2016-03-01 14:47:56 +0100
commitcdde6fd03bd4380f274e52c95f51d0cc843e1159 (patch)
tree21a549e9adc7e0b2905f713186f7b6f9d125163b /lib/i18n.ts
parent6ee2a1516200cb036271a67e772498ea13f07d9a (diff)
downloadwallet-core-cdde6fd03bd4380f274e52c95f51d0cc843e1159.tar.xz
Revert "Revert "html lang""
This reverts commit ea7fb2d5c8b0e0052a81e48e6d99143dfc233dc5.
Diffstat (limited to 'lib/i18n.ts')
-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"];