mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 00:46:03 +00:00
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:
94a1070979 (diff-a15e4886338acf8091c948c25f47caaa)
This commit is contained in:
@@ -4,6 +4,7 @@ import i18next from 'i18next';
|
|||||||
import XHR from 'i18next-xhr-backend';
|
import XHR from 'i18next-xhr-backend';
|
||||||
import LngDetector from 'i18next-browser-languagedetector';
|
import LngDetector from 'i18next-browser-languagedetector';
|
||||||
import Cache from 'i18next-localstorage-cache';
|
import Cache from 'i18next-localstorage-cache';
|
||||||
|
import localstorage from './localstorage';
|
||||||
|
|
||||||
window.i18n = i18next;
|
window.i18n = i18next;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user