import { createI18n } from 'vue-i18n'

import enUS from './locales/en-US'
import thTH from './locales/th-TH'
import zhCN from './locales/zh-CN'

export const i18n = createI18n({
  legacy: false,
  locale: import.meta.env.VITE_DEFAULT_LOCALE ?? 'zh-CN',
  fallbackLocale: 'zh-CN',
  messages: {
    'zh-CN': zhCN,
    'en-US': enUS,
    'th-TH': thTH,
  },
})
