diff --git a/src/i18n.js b/src/i18n.js index e405600ec..fdb5892e3 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -26,7 +26,8 @@ i18n backendOptions: [ { // LocalStorageBackend defaultVersion: version, - expirationTime: (!process.env.NODE_ENV || process.env.NODE_ENV === 'development') ? 1 : 7 * 24 * 60 * 60 * 1000 + expirationTime: (!process.env.NODE_ENV || process.env.NODE_ENV === 'development') ? 1 : 7 * 24 * 60 * 60 * 1000, + store: typeof window !== 'undefined' && 'localStorage' in window ? window.localStorage : null }, { // HttpBackend loadPath: (lngs, namespaces) => {