✨(component): 调整 locale 文档
This commit is contained in:
parent
52372946ab
commit
8e0aa81f61
@ -31,15 +31,9 @@ import { useI18n } from "@layui/layui-vue";
|
|||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|
||||||
const locales = [
|
const locales = [
|
||||||
'zh_CN': {
|
{ name: "zh_CN", locale: {hello: "你好, layui-vue。"}, merge: true },
|
||||||
hello: '你好',
|
{ name: "en_US", locale: {hello: "hello, layui-vue。"}, merge: true },
|
||||||
title: '标题'
|
]
|
||||||
},
|
|
||||||
'en_US': {
|
|
||||||
hello: 'hello',
|
|
||||||
title: 'title'
|
|
||||||
}
|
|
||||||
];
|
|
||||||
</script>
|
</script>
|
||||||
```
|
```
|
||||||
::: table
|
::: table
|
||||||
|
Loading…
x
Reference in New Issue
Block a user