wip(VForm): VForm coding
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user