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:
2026-03-06 12:45:29 +07:00
parent 3491a0a08e
commit 3c24da4af8
19 changed files with 114 additions and 215 deletions

View File

@@ -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);