Disable auto language
This commit is contained in:
parent
510fefb194
commit
f8b4475386
1 changed files with 3 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue