projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
510fefb
)
Disable auto language
author
Chocobozzz
<me@florianbigard.com>
Tue, 5 Jun 2018 06:42:22 +0000
(08:42 +0200)
committer
Chocobozzz
<me@florianbigard.com>
Tue, 5 Jun 2018 06:43:02 +0000
(08:43 +0200)
server/controllers/client.ts
patch
|
blob
|
history
diff --git
a/server/controllers/client.ts
b/server/controllers/client.ts
index a29b51c51d57a4b8d9acf45387aab3b2b25312a6..4b37b5fa6ca9a1534127649563273c0eff6b9da9 100644
(file)
--- a/
server/controllers/client.ts
+++ b/
server/controllers/client.ts
@@
-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')