多语言优化

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

8
src/i18n/global.d.ts vendored Normal file
View File

@@ -0,0 +1,8 @@
import type enMessages from "@/i18n/messages/en.json"
declare module "next-intl" {
interface AppConfig {
Locale: "en" | "zh-CN" | "zh-TW"
Messages: typeof enMessages
}
}