多语言优化

This commit is contained in:
xintaofei
2026-03-07 10:24:13 +08:00
parent 934f689b08
commit 28babff52c
7 changed files with 115 additions and 21 deletions

View File

@@ -3,7 +3,17 @@ import createNextIntlPlugin from "next-intl/plugin"
const isProd = process.env.NODE_ENV === "production"
const internalHost = process.env.TAURI_DEV_HOST || "localhost"
const withNextIntl = createNextIntlPlugin("./src/i18n/request.ts")
const withNextIntl = createNextIntlPlugin({
requestConfig: "./src/i18n/request.ts",
experimental: {
messages: {
path: "./src/i18n/messages",
format: "json",
locales: ["en", "zh-CN", "zh-TW"],
precompile: true,
},
},
})
const nextConfig: NextConfig = {
output: "export",