diff --git a/docs/dist/USAGE.md b/docs/dist/USAGE.md index 6f30d4e..25b4999 100644 --- a/docs/dist/USAGE.md +++ b/docs/dist/USAGE.md @@ -25,7 +25,8 @@ npm i @i18n-pro/react # or yarn add @i18n-pro/react # or -pnpm i @i18n-pro/react +# Note: To prevent issues where the i18n command cannot be used due to ghost dependencies, it is essential to install i18n-pro when using pnpm +pnpm i i18n-pro @i18n-pro/react ``` ## 2. Access API diff --git a/docs/dist/USAGE_zh-CN.md b/docs/dist/USAGE_zh-CN.md index cd0f33b..7943af7 100644 --- a/docs/dist/USAGE_zh-CN.md +++ b/docs/dist/USAGE_zh-CN.md @@ -25,7 +25,8 @@ npm i @i18n-pro/react # 或者 yarn add @i18n-pro/react # 或者 -pnpm i @i18n-pro/react +# 注意:为了避免幽灵依赖导致 i18n 命令不能使用的问题,使用 pnpm 必须要安装 i18n-pro +pnpm i i18n-pro @i18n-pro/react ``` ## 2. 接入API diff --git a/docs/src/i18n/en.json b/docs/src/i18n/en.json index 5018d05..5fa786e 100644 --- a/docs/src/i18n/en.json +++ b/docs/src/i18n/en.json @@ -56,5 +56,6 @@ "接入{0}和{1},并用{2}包裹{3}": "Connect {0} and {1}, and wrap {3} with {2}", "请参考": "Please refer to", "可以通过{0}来切换语言": "You can switch languages through {0}", - "真实代码示例可参考{0}文档中的{1}": "Real code examples can refer to {1} in the {0} document" + "真实代码示例可参考{0}文档中的{1}": "Real code examples can refer to {1} in the {0} document", + "注意:为了避免幽灵依赖导致 i18n 命令不能使用的问题,使用 pnpm 必须要安装 i18n-pro": "Note: To prevent issues where the i18n command cannot be used due to ghost dependencies, it is essential to install i18n-pro when using pnpm" } diff --git a/docs/src/usage/index.tsx b/docs/src/usage/index.tsx index 8d089a0..f910d2c 100644 --- a/docs/src/usage/index.tsx +++ b/docs/src/usage/index.tsx @@ -35,7 +35,10 @@ function Install() { # ${t('或者')} yarn add ${showPackageName} # ${t('或者')} -pnpm i ${showPackageName}`} +# ${t( + '注意:为了避免幽灵依赖导致 i18n 命令不能使用的问题,使用 pnpm 必须要安装 i18n-pro', + )} +pnpm i i18n-pro ${showPackageName}`} /> )