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:
Jack Zhang 2017-08-08 16:58:57 -07:00 committed by Tim Abbott
parent ab9021678e
commit 10bef65f00
1 changed files with 1 additions and 0 deletions

View File

@ -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;