老师 我想在单独的TS文件中使用i18n
//columns.ts
export const columns: TableColumn[] = [
{
title: '用户名',
dataIndex: 'username'
},
]
我看到vue2.0中有这样的实现
const i18n = new VueI18n({
silentTranslationWarn: true,
locale: defaultLang,
fallbackLocale: defaultLang,
messages
})
export function i18nRender (key) {
return i18n.t(`${key}`)
}
请问一下vue3.0也能实现类似i18nRender 这个方法的功能吗
基于Vue3重写Vue-element-admin,打造后台前端综合解决方案
了解课程