vue3+ts----element-plus uses calendar and other plug-ins to change the language environment from English to Chinese
Change element-plus locale globally
Add in main.ts as follows:
//element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import locale from 'element-plus/lib/locale/lang/zh-cn' //中文
//element-plus
app.use(ElementPlus, {
locale })
PS: If the locale path reports an error, it is recommended to reinstall element-plus
npm install element-plus --save