From e0594325067d7a7b4276b97e2a893cb30394a8ac Mon Sep 17 00:00:00 2001 From: Guillaume Damiens <guillaume.damiens@etu.utc.fr> Date: Mon, 3 Jun 2019 21:19:16 +0200 Subject: [PATCH] fix tellform patch : default lang --- pica-tellform/tellform-patch.patch | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pica-tellform/tellform-patch.patch b/pica-tellform/tellform-patch.patch index 4e3de07b..5be6a82b 100644 --- a/pica-tellform/tellform-patch.patch +++ b/pica-tellform/tellform-patch.patch @@ -863,7 +863,7 @@ diff -Naur tellform/config/env/development.js tellform-patch/config/env/developm port: process.env.MAILER_SMTP_PORT || 465, diff -Naur tellform/config/express.js tellform-patch/config/express.js --- tellform/config/express.js 2019-06-03 15:54:01.650435222 +0200 -+++ tellform-patch/config/express.js 2019-06-03 19:35:45.728456452 +0200 ++++ tellform-patch/config/express.js 2019-06-03 20:56:17.832233360 +0200 @@ -75,7 +75,7 @@ if(config.socketUrl){ @@ -907,6 +907,15 @@ diff -Naur tellform/config/express.js tellform-patch/config/express.js }); } +@@ -190,7 +190,7 @@ + i18n.configure({ + locales: supportedLanguages, + directory: __dirname + '/locales', +- defaultLocale: 'en', ++ defaultLocale: 'fr', + cookie: 'userLang' + }); + @@ -340,10 +340,10 @@ // Assume 404 since no middleware responded -- GitLab