diff --git a/source/i18n.js b/source/i18n.js index 38f4573d0..ca0a7fb98 100644 --- a/source/i18n.js +++ b/source/i18n.js @@ -5,8 +5,12 @@ import queryString from 'query-string' import { getIframeOption } from './utils' import enTranslations from './locales/en.yaml' -let lang = getIframeOption('lang') || queryString.parse(location.search)['lang'] || sessionStorage['lang'] -if (lang) sessionStorage['lang'] = lang +let lang = getIframeOption('lang') || + queryString.parse(location.search)['lang'] || + sessionStorage['lang'] || + 'fr' + +sessionStorage['lang'] = lang i18next .init({