From f8b447538643759217bb25559ac334378ce5ca82 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 5 Jun 2018 08:42:22 +0200 Subject: [PATCH] Disable auto language --- server/controllers/client.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/controllers/client.ts b/server/controllers/client.ts index a29b51c51..4b37b5fa6 100644 --- a/server/controllers/client.ts +++ b/server/controllers/client.ts @@ -77,7 +77,9 @@ function getIndexPath (req: express.Request, paramLang?: string) { if (paramLang && is18nLocale(paramLang)) { lang = paramLang } else { - lang = req.acceptsLanguages(Object.keys(I18N_LOCALES)) || getDefaultLocale() + // lang = req.acceptsLanguages(Object.keys(I18N_LOCALES)) || getDefaultLocale() + // Disable auto language for now + lang = getDefaultLocale() } return join(__dirname, '../../../client/dist/' + lang + '/index.html') -- 2.25.1