import { createI18n } from 'vue-i18n'
import en from './en'
import zh from './zh'

const messages = {
    en,
    zh
}

const i18n = createI18n({
    locale: 'zh', // 默认语言
    fallbackLocale: 'en',
    messages,
    legacy: false // Vue 3 Composition API requires legacy: false for some features, but safe to keep default or explicitly set based on usage
})

export default i18n
