import { createI18n } from 'vue-i18n'
import zhTW from './zh-tw.json'
import idID from './id-ID.json'
const messages = {
    zhTW: zhTW,
    idID: idID
}
const i18n = createI18n({
    locale:
        navigator.language === 'id' || navigator.language === 'id-ID' || navigator.language === 'id_ID'
            ? 'idID'
            : 'zhTW',
    fallbackLocale: 'zhTW',
    messages,
    legacy: false
})
export default i18n
