引入语言包;
设置语言
main.js
import ElementUI from 'element-ui'
import enLocale from 'element-ui/lib/locale/lang/en'
import zhLocale from 'element-ui/lib/locale/lang/zh-CN'
import locale from 'element-ui/lib/locale'
// 设置中文
locale.use(zhLocale)
Vue.use(Element)
// 设置英文
locale.use(enLocale)
Vue.use(Element)
以分页为例:
中文
英文