From 270c775598515b4eea75ff79992b0e08a4700f44 Mon Sep 17 00:00:00 2001 From: dyh_a Date: Mon, 19 Feb 2024 13:00:36 +0800 Subject: [PATCH] =?UTF-8?q?docs(react-ui):=20=E4=BF=AE=E6=AD=A3=20locale?= =?UTF-8?q?=20=E5=AF=BC=E5=85=A5=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dumirc.ts | 4 ++++ docs/guide/i18n.md | 2 +- packages/components/src/config-provider/index.zh-CN.md | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.dumirc.ts b/.dumirc.ts index 78dca807..066ff9e3 100644 --- a/.dumirc.ts +++ b/.dumirc.ts @@ -62,6 +62,10 @@ export default defineConfig({ __dirname, 'packages/react-ui/dist/styles', ), + '@tool-pack/react-ui/dist/local': Path.resolve( + __dirname, + 'packages/react-ui/src/local', + ), ...getAlias(), }, }); diff --git a/docs/guide/i18n.md b/docs/guide/i18n.md index d9bd636d..270eb42b 100644 --- a/docs/guide/i18n.md +++ b/docs/guide/i18n.md @@ -12,7 +12,7 @@ nav: ```jsx | pure import { ConfigProvider } from '@tool-pack/react-ui'; -import zhCN from '@tool-pack/react-ui/locale/zh-CN'; +import zhCN from '@tool-pack/react-ui/dist/locale/zh-CN'; function Demo() { return ( diff --git a/packages/components/src/config-provider/index.zh-CN.md b/packages/components/src/config-provider/index.zh-CN.md index 3abfe3a3..cf11d737 100644 --- a/packages/components/src/config-provider/index.zh-CN.md +++ b/packages/components/src/config-provider/index.zh-CN.md @@ -14,7 +14,7 @@ group: ```jsx | pure import { ConfigProvider } from '@tool-pack/react-ui'; -import zhCN from '@tool-pack/react-ui/locale/zh-CN'; +import zhCN from '@tool-pack/react-ui/dist/locale/zh-CN'; function Demo() { return (