1
0
Fork 0

Disable auto language

This commit is contained in:
Chocobozzz 2018-06-05 08:42:22 +02:00
parent 510fefb194
commit f8b4475386
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 3 additions and 1 deletions

View File

@ -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')