Disable auto language
This commit is contained in:
parent
510fefb194
commit
f8b4475386
|
@ -77,7 +77,9 @@ function getIndexPath (req: express.Request, paramLang?: string) {
|
||||||
if (paramLang && is18nLocale(paramLang)) {
|
if (paramLang && is18nLocale(paramLang)) {
|
||||||
lang = paramLang
|
lang = paramLang
|
||||||
} else {
|
} 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')
|
return join(__dirname, '../../../client/dist/' + lang + '/index.html')
|
||||||
|
|
Loading…
Reference in New Issue