diff options
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') |