Skip to content

Commit

Permalink
docs: update pnpm install description
Browse files Browse the repository at this point in the history
  • Loading branch information
eyelly-wu committed Sep 3, 2023
1 parent 592159c commit 9b1d245
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion docs/dist/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion docs/dist/USAGE_zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion docs/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
5 changes: 4 additions & 1 deletion docs/src/usage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ function Install() {
# ${t('或者')}
yarn add ${showPackageName}
# ${t('或者')}
pnpm i ${showPackageName}`}
# ${t(
'注意:为了避免幽灵依赖导致 i18n 命令不能使用的问题,使用 pnpm 必须要安装 i18n-pro',
)}
pnpm i i18n-pro ${showPackageName}`}
/>
</>
)
Expand Down

0 comments on commit 9b1d245

Please sign in to comment.