From 10bef65f00625b88a66ec90cd3d443313e47fb2a Mon Sep 17 00:00:00 2001 From: Jack Zhang Date: Tue, 8 Aug 2017 16:58:57 -0700 Subject: [PATCH] i18n: Import localstorage module into translations. localstorage.supported() breaks on portico pages, where the localstorage variable is not exposed globally. This change is coupled with this commit: https://github.com/zulip/zulip/commit/94a10709797be90c01078aad8fb9d63ab8eb184a#diff-a15e4886338acf8091c948c25f47caaa --- static/js/translations.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/js/translations.js b/static/js/translations.js index ad70172fa3..b1948e701e 100644 --- a/static/js/translations.js +++ b/static/js/translations.js @@ -4,6 +4,7 @@ import i18next from 'i18next'; import XHR from 'i18next-xhr-backend'; import LngDetector from 'i18next-browser-languagedetector'; import Cache from 'i18next-localstorage-cache'; +import localstorage from './localstorage'; window.i18n = i18next;