wip(VForm): VForm coding

This commit is contained in:
陈凯龙
2021-12-14 17:42:43 +08:00
parent 7528fe6da6
commit d7d0ada558
11 changed files with 221 additions and 51 deletions

View File

@@ -1,13 +1,15 @@
import { createI18n } from 'vue-i18n'
import type { App } from 'vue'
// export let i18n: ReturnType<typeof createI18n>
const messages = Object.fromEntries(
Object.entries(import.meta.globEager('../../locales/*.ts')).map(([key, value]) => {
return [key.slice(14, -3), value.default]
})
)
export function setupI18n(app: App<Element>): void {
export function setupI18n(app: App): void {
const i18n = createI18n({
legacy: false,
locale: 'zh-CN',