diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-05 08:42:22 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-05 08:43:02 +0200 |
commit | f8b447538643759217bb25559ac334378ce5ca82 (patch) | |
tree | 1fe5f0719079dc99f1dfad458278bce1f6b0e4b1 /server | |
parent | 510fefb194aba4b365b96b150f89a9f36306560c (diff) | |
download | PeerTube-f8b447538643759217bb25559ac334378ce5ca82.tar.gz PeerTube-f8b447538643759217bb25559ac334378ce5ca82.tar.zst PeerTube-f8b447538643759217bb25559ac334378ce5ca82.zip |
Disable auto language
Diffstat (limited to 'server')
-rw-r--r-- | server/controllers/client.ts | 4 |
1 files changed, 3 insertions, 1 deletions
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) { | |||
77 | if (paramLang && is18nLocale(paramLang)) { | 77 | if (paramLang && is18nLocale(paramLang)) { |
78 | lang = paramLang | 78 | lang = paramLang |
79 | } else { | 79 | } else { |
80 | lang = req.acceptsLanguages(Object.keys(I18N_LOCALES)) || getDefaultLocale() | 80 | // lang = req.acceptsLanguages(Object.keys(I18N_LOCALES)) || getDefaultLocale() |
81 | // Disable auto language for now | ||
82 | lang = getDefaultLocale() | ||
81 | } | 83 | } |
82 | 84 | ||
83 | return join(__dirname, '../../../client/dist/' + lang + '/index.html') | 85 | return join(__dirname, '../../../client/dist/' + lang + '/index.html') |