i18n: Move translations to backend serve

This commit is contained in:
Elian Doran
2024-07-20 10:02:25 +03:00
parent 784891409f
commit d14cf7c246
4 changed files with 32 additions and 32 deletions

View File

@@ -70,7 +70,9 @@ function register(app: express.Application) {
app.use(`/${assetPath}/node_modules/panzoom/dist/`, persistentCacheStatic(path.join(srcRoot, '..', 'node_modules/panzoom/dist/')));
app.use(`/${assetPath}/node_modules/i18next/`, persistentCacheStatic(path.join(srcRoot, "..", 'node_modules/i18next/')))
// i18n
app.use(`/${assetPath}/node_modules/i18next/`, persistentCacheStatic(path.join(srcRoot, "..", 'node_modules/i18next/')));
app.use(`/${assetPath}/translations/`, persistentCacheStatic(path.join(srcRoot, "public", "translations/")));
}
export = {