多语言优化
This commit is contained in:
8
src/i18n/global.d.ts
vendored
Normal file
8
src/i18n/global.d.ts
vendored
Normal 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user