docs: fix import locale (#16306)

* docs: fix import locale

* Update docs/en-US/guide/i18n.md

Co-authored-by: qiang <qw13131wang@gmail.com>

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
This commit is contained in:
btea 2024-04-05 17:59:24 +08:00 committed by GitHub
parent f99257c816
commit 111086c132
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,7 @@ Element Plus provides global configurations
```typescript
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
app.use(ElementPlus, {
locale: zhCn,
@ -37,7 +37,7 @@ for globally configuring locale and other settings.
import { defineComponent } from 'vue'
import { ElConfigProvider } from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
export default defineComponent({
components: {