fix: $t 报错

This commit is contained in:
菲鸽 2024-05-04 15:22:25 +08:00
parent e396f9bf72
commit 4c968a7eb1

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

@ -0,0 +1,8 @@
export {}
declare module 'vue' {
interface ComponentCustomProperties {
$t: (key: string, opt?: Record<string, any>) => string
$tm: (key: string, opt?: Record<string, any>) => [] | { [p: string]: any }
}
}