From 670bcb00eb2f5b1f8a18c75981ff8c4e45f04637 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Charignon?= Date: Thu, 5 Apr 2018 18:01:03 +0200 Subject: [PATCH] Default language to 'fr' --- source/i18n.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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({