diff --git a/package/document-component/src/document/zh-CN/guide/locale.md b/package/document-component/src/document/zh-CN/guide/locale.md index 10adfef2..bd33055b 100644 --- a/package/document-component/src/document/zh-CN/guide/locale.md +++ b/package/document-component/src/document/zh-CN/guide/locale.md @@ -31,15 +31,9 @@ import { useI18n } from "@layui/layui-vue"; const { t } = useI18n(); const locales = [ - 'zh_CN': { - hello: '你好', - title: '标题' - }, - 'en_US': { - hello: 'hello', - title: 'title' - } -]; + { name: "zh_CN", locale: {hello: "你好, layui-vue。"}, merge: true }, + { name: "en_US", locale: {hello: "hello, layui-vue。"}, merge: true }, +] ``` ::: table