Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The defaultlocale parameter configuration is invalid #129

Open
yangdan8 opened this issue Oct 28, 2021 · 2 comments
Open

The defaultlocale parameter configuration is invalid #129

yangdan8 opened this issue Oct 28, 2021 · 2 comments

Comments

@yangdan8
Copy link

yangdan8 commented Oct 28, 2021

import ElementPlus from 'unplugin-element-plus/vite';
ElementPlus({
     useSource: false,
     defaultLocale: 'zh-cn',
})
@yangdan8 yangdan8 changed the title defaultLocale The defaultlocale parameter configuration is invalid Oct 28, 2021
@Muhammad-Faraz-Ali
Copy link

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

image

OR
Step2:
Click on 'here'

image

Step3: Check the 'zh-cn.ts'file

image

@jiangx831
Copy link

jiangx831 commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants