i18n: Add i18next-http-backend to library loader

This commit is contained in:
Elian Doran
2024-07-20 10:07:03 +03:00
parent d14cf7c246
commit d4bf162e92
4 changed files with 39 additions and 1 deletions

View File

@@ -72,6 +72,7 @@ function register(app: express.Application) {
// i18n
app.use(`/${assetPath}/node_modules/i18next/`, persistentCacheStatic(path.join(srcRoot, "..", 'node_modules/i18next/')));
app.use(`/${assetPath}/node_modules/i18next-http-backend/`, persistentCacheStatic(path.join(srcRoot, "..", 'node_modules/i18next-http-backend/')));
app.use(`/${assetPath}/translations/`, persistentCacheStatic(path.join(srcRoot, "public", "translations/")));
}