From 5a05c3a621b2cd4a54380c42671960b878d9c533 Mon Sep 17 00:00:00 2001 From: sight <1453017105@qq.com> Date: Sun, 15 May 2022 17:03:00 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(i18n):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=8C=89=E9=9C=80=E5=8A=A0=E8=BD=BD=E4=B8=8B=20i18n=20?= =?UTF-8?q?=E7=9A=84=E6=B3=A8=E5=86=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/component/src/component/input/index.vue | 2 +- package/component/src/component/page/index.vue | 2 +- package/component/src/index.ts | 2 ++ package/component/src/language/index.ts | 17 ++++++++++++++++- package/component/src/provider/index.vue | 2 +- package/component/src/utils/withInstall.ts | 8 ++------ .../src/document/zh-CN/guide/getStarted.md | 2 +- 7 files changed, 24 insertions(+), 11 deletions(-) diff --git a/package/component/src/component/input/index.vue b/package/component/src/component/input/index.vue index 2c5f888c..f0d83f00 100644 --- a/package/component/src/component/input/index.vue +++ b/package/component/src/component/input/index.vue @@ -8,7 +8,7 @@ export default { import "./index.less"; import { LayIcon } from "@layui/icons-vue"; import { useSlots } from "vue"; -import { useI18n } from "vue-i18n"; +import { useI18n } from "../../language"; const { t } = useI18n(); const slots = useSlots(); diff --git a/package/component/src/component/page/index.vue b/package/component/src/component/page/index.vue index 06a06d60..20c6b052 100644 --- a/package/component/src/component/page/index.vue +++ b/package/component/src/component/page/index.vue @@ -7,7 +7,7 @@ export default {