Skip to content

Commit fee9e1e

Browse files
committed
fix: translation errors
1 parent bc47801 commit fee9e1e

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

packages/hooks/src/useDebounceFn/index.en-US.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ const {
4646

4747
| Property | Description | Type |
4848
| -------- | ------------------------------------------------------ | ------------------------- |
49-
| run | Invode and pass parameters to fn. | `(...args: any[]) => any` |
49+
| run | invoke and pass parameters to fn. | `(...args: any[]) => any` |
5050
| cancel | Cancel the invocation of currently debounced function. | `() => void` |
5151
| flush | Immediately invoke currently debounced function. | `() => void` |

packages/hooks/src/useExternal/index.en-US.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ const status = useExternal(path: string, options?: Options);
3939

4040
| Params | Description | Type | Default |
4141
| ------ | -------------------------------------------------------------------------------------------------------------------- | ------------------- | ------- |
42-
| type | The type of extarnal resources which need to load, support `js`/`css`, if no type, it will deduced according to path | `string` | - |
42+
| type | The type of external resources which need to load, support `js`/`css`, if no type, it will deduced according to path | `string` | - |
4343
| js | Attributes supported by `script` | `HTMLScriptElement` | - |
4444
| css | Attributes supported by `link` | `HTMLStyleElement` | - |

packages/hooks/src/useKeyPress/index.en-US.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ useKeyPress(
5656

5757
### Options
5858

59-
| Property | Description | Type | Default |
60-
| ---------- | --------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- | ------------- |
61-
| events | Trigger Events | `('keydown' \| 'keyup')[]` | `['keydown']` |
62-
| target | DOM element or ref | `() => Element` \| `Element` \| `MutableRefObject<Element>` | - |
63-
| exactMatch | Exact match. If set `true`, the event will only be trigger when the keys match exactly. For example, pressing [shif + c] will not trigger [c] | `boolean` | `false` |
64-
| useCapture | to block events bubbling | `boolean` | `false` |
59+
| Property | Description | Type | Default |
60+
| ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- | ------------- |
61+
| events | Trigger Events | `('keydown' \| 'keyup')[]` | `['keydown']` |
62+
| target | DOM element or ref | `() => Element` \| `Element` \| `MutableRefObject<Element>` | - |
63+
| exactMatch | Exact match. If set `true`, the event will only be trigger when the keys match exactly. For example, pressing [shift + c] will not trigger [c] | `boolean` | `false` |
64+
| useCapture | to block events bubbling | `boolean` | `false` |
6565

6666
## Remarks
6767

packages/hooks/src/useKeyPress/index.zh-CN.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ useKeyPress(
5656

5757
### Options
5858

59-
| 参数 | 说明 | 类型 | 默认值 |
60-
| ---------- | ------------------------------------------------------------------------------------------ | ----------------------------------------------------------- | ------------- |
61-
| events | 触发事件 | `('keydown' \| 'keyup')[]` | `['keydown']` |
62-
| target | DOM 节点或者 ref | `() => Element` \| `Element` \| `MutableRefObject<Element>` | - |
63-
| exactMatch | 精确匹配。如果开启,则只有在按键完全匹配的情况下触发事件。比如按键 [shif + c] 不会触发 [c] | `boolean` | `false` |
64-
| useCapture | 是否阻止事件冒泡 | `boolean` | `false` |
59+
| 参数 | 说明 | 类型 | 默认值 |
60+
| ---------- | ------------------------------------------------------------------------------------------- | ----------------------------------------------------------- | ------------- |
61+
| events | 触发事件 | `('keydown' \| 'keyup')[]` | `['keydown']` |
62+
| target | DOM 节点或者 ref | `() => Element` \| `Element` \| `MutableRefObject<Element>` | - |
63+
| exactMatch | 精确匹配。如果开启,则只有在按键完全匹配的情况下触发事件。比如按键 [shift + c] 不会触发 [c] | `boolean` | `false` |
64+
| useCapture | 是否阻止事件冒泡 | `boolean` | `false` |
6565

6666
## Remarks
6767

packages/hooks/src/useRequest/doc/basic/basic.en-US.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ We have modified the user name, but we do not want to wait for the request to be
9999

100100
## Cancel response
101101

102-
`useRequest` provides a `cancel` function, which will **ignore** the data and erros returned by the current promise
102+
`useRequest` provides a `cancel` function, which will **ignore** the data and error returned by the current promise
103103

104104
**Note: Calling `cancel` doesn't cancel the execution of promise**
105105

0 commit comments

Comments
 (0)