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 +++++ pages/confirm-contract.html | 52 +++++++++++++++++++++------------------ pages/confirm-create-reserve.html | 36 ++++++++++++++------------- popup/popup.html | 12 ++++++--- style/wallet.css | 2 +- 5 files changed, 62 insertions(+), 46 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"]; diff --git a/pages/confirm-contract.html b/pages/confirm-contract.html index 2eac4a8e8..e80fb50c9 100644 --- a/pages/confirm-contract.html +++ b/pages/confirm-contract.html @@ -1,30 +1,34 @@ - - + -
-