Default language to 'fr'
parent
dbd79b990b
commit
670bcb00eb
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue