From aa3f32b03b07897967b07b04cac5739fdd7d11fa Mon Sep 17 00:00:00 2001 From: Alex Jordan Date: Mon, 16 Jan 2017 15:44:59 -0500 Subject: Make the i18n stuff actually work They were kinda crashing the webpage before... --- scripts/main.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/main.js b/scripts/main.js index afcda7b..242cd54 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -82,14 +82,13 @@ // load i18n and perform translation i18n = new I18nText({path: 'lang'}); - i18n.once(I18nText.EVT_LOCALE_CHANGE, function (data) { - translate_ui(); + i18n.once(I18nText.event.LOCALE_CHANGE, function (data) { + rehash(); }); i18n.setLocale('en'); // functionality load_clients(); - rehash(); window.addEventListener("hashchange", rehash, false); } -- cgit 1.4.1