When I was using
[email protected]
this version, the imported components were found to be in English. Later, I checked the official website. It turns out that the so-called internationalization, to put it bluntly, elementPlus is English by default, and Chinese needs to be manually configured.
import {
createApp,h} from "vue"
import ElementPlus from "element-plus"
import locale from 'element-plus/lib/locale/lang/zh-cn' //中文
createApp(App).use(ElementPlus,{
locale,size:'small'}).mount('#app')