From: Chocobozzz Date: Tue, 5 Jun 2018 06:42:22 +0000 (+0200) Subject: Disable auto language X-Git-Tag: v1.0.0-beta.8~51 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=f8b447538643759217bb25559ac334378ce5ca82;p=github%2FChocobozzz%2FPeerTube.git Disable auto language --- 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')