aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-11-07 15:33:23 +0100
committerChocobozzz <me@florianbigard.com>2019-11-13 10:04:16 +0100
commit350131cbaf99bd1cbb2d0911093aa94d105de709 (patch)
tree9b90dc4d3ca327aadb8e45f7e18c4648d9412a56 /server
parent81ad5366f745a0c0459016d3af5d18d1dd4501c0 (diff)
downloadPeerTube-350131cbaf99bd1cbb2d0911093aa94d105de709.tar.gz
PeerTube-350131cbaf99bd1cbb2d0911093aa94d105de709.tar.zst
PeerTube-350131cbaf99bd1cbb2d0911093aa94d105de709.zip
Make build works
Diffstat (limited to 'server')
-rw-r--r--server/controllers/client.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/client.ts b/server/controllers/client.ts
index 2af00e475..f9bbedc92 100644
--- a/server/controllers/client.ts
+++ b/server/controllers/client.ts
@@ -75,7 +75,7 @@ async function serveServerTranslations (req: express.Request, res: express.Respo
75 const completeLocale = getCompleteLocale(locale) 75 const completeLocale = getCompleteLocale(locale)
76 const completeFileLocale = buildFileLocale(completeLocale) 76 const completeFileLocale = buildFileLocale(completeLocale)
77 77
78 const path = join(__dirname, `../../../client/dist/locale/${file}_${completeFileLocale}.json`) 78 const path = join(__dirname, `../../../client/dist/locale/${file}.${completeFileLocale}.json`)
79 return res.sendFile(path, { maxAge: STATIC_MAX_AGE.SERVER }) 79 return res.sendFile(path, { maxAge: STATIC_MAX_AGE.SERVER })
80 } 80 }
81 81