Default language to 'fr'

pull/188/head
Étienne Charignon 2018-04-05 18:01:03 +02:00 committed by Mael
parent dbd79b990b
commit 670bcb00eb
1 changed files with 6 additions and 2 deletions

View File

@ -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({