refactor: remove i18n dependency and related code
- Removed the i18n module and its related functions from the project. - Eliminated the usage of getActiveI18n and related locale handling in various components and stores. - Updated translation handling to use a new instance creation method. - Cleaned up unused imports and code related to language detection and cookie management. - Adjusted components to directly utilize the new translation setup.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { Hono } from 'hono';
|
||||
|
||||
import { serveStatic } from "@hono/node-server/serve-static";
|
||||
import { apiProxyMiddleware } from './server/middlewares/apiProxy';
|
||||
import { setupMiddlewares } from './server/middlewares/setup';
|
||||
import { registerDisplayRoutes } from './server/routes/display';
|
||||
@@ -15,7 +16,7 @@ setupMiddlewares(app);
|
||||
|
||||
// API proxy middleware (handles /r/*)
|
||||
app.use(apiProxyMiddleware);
|
||||
|
||||
app.use(serveStatic({ root: './public' }))
|
||||
// Routes
|
||||
registerWellKnownRoutes(app);
|
||||
registerMergeRoutes(app);
|
||||
|
||||
Reference in New Issue
Block a user