diff options
author | Chocobozzz <me@florianbigard.com> | 2019-11-13 10:05:27 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-11-13 10:05:27 +0100 |
commit | a42294c5edbdea3075c8defc03ba2cb73e0d86fc (patch) | |
tree | aca95591d1fb7ed89dd5f05f81406b4a4f282bac /server | |
parent | f0c0c0abd88d0177f8be769f12d5affcacd934e8 (diff) | |
parent | 2ef1d2bb74f333b05bbbbd27282605ee5654061e (diff) | |
download | PeerTube-a42294c5edbdea3075c8defc03ba2cb73e0d86fc.tar.gz PeerTube-a42294c5edbdea3075c8defc03ba2cb73e0d86fc.tar.zst PeerTube-a42294c5edbdea3075c8defc03ba2cb73e0d86fc.zip |
Merge branch 'weblate' into develop
Diffstat (limited to 'server')
-rw-r--r-- | server/controllers/client.ts | 2 |
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 | ||