modern-js-cheatsheet
modern-js-cheatsheet copied to clipboard
The defaultlocale parameter configuration is invalid
import ElementPlus from 'unplugin-element-plus/vite';
ElementPlus({
useSource: false,
defaultLocale: 'zh-cn',
})
Method-1: You need to set the localeDetection as false:
e.g import ElementPlus from 'unplugin-element-plus/vite'; ElementPlus({ useSource: false, defaultLocale: 'zh-cn',, localeDetection: false, })
Resourses: 1-https://stackoverflow.com/questions/66730980/defaultlocale-is-not-keeping-default-lang-in-next-js-i18n
Method-2 2-https://www.npmjs.com/package/unplugin-element-plus
Under the second link check the following images/links:
Step1: Go the github page and check options
OR Step2: Click on 'here'
Step3: Check the 'zh-cn.ts'file
您好,我已收到您的邮件,祝您天天开心,工作顺利。