1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Make build works

This commit is contained in:
Chocobozzz 2019-11-07 15:33:23 +01:00
parent 81ad5366f7
commit 350131cbaf
No known key found for this signature in database
GPG key ID: 583A612D890159BE
6 changed files with 20 additions and 22 deletions

View file

@ -75,7 +75,7 @@ async function serveServerTranslations (req: express.Request, res: express.Respo
const completeLocale = getCompleteLocale(locale)
const completeFileLocale = buildFileLocale(completeLocale)
const path = join(__dirname, `../../../client/dist/locale/${file}_${completeFileLocale}.json`)
const path = join(__dirname, `../../../client/dist/locale/${file}.${completeFileLocale}.json`)
return res.sendFile(path, { maxAge: STATIC_MAX_AGE.SERVER })
}