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:
parent
81ad5366f7
commit
350131cbaf
6 changed files with 20 additions and 22 deletions
|
@ -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 })
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue