mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-03 11:47:48 +08:00
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:
parent
f99257c816
commit
111086c132
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user