feat(frontend): 控制台 next-intl 中英双语

接入无 URL 前缀的 zh-CN/en,顶栏与外观设置可切换语言;选择写入 cookie 后刷新生效。
This commit is contained in:
ryan
2026-08-16 16:49:16 +08:00
parent 64fbaa7ef1
commit 5a8722ff07
219 changed files with 21437 additions and 5212 deletions
+4 -1
View File
@@ -1,4 +1,7 @@
import type { NextConfig } from 'next';
import createNextIntlPlugin from 'next-intl/plugin';
const withNextIntl = createNextIntlPlugin('./i18n/request.ts');
const isExport = process.env.NEXT_STANDALONE_EXPORT === 'true';
@@ -47,4 +50,4 @@ const nextConfig: NextConfig = {
}),
};
export default nextConfig;
export default withNextIntl(nextConfig);