Skip to content

Commit 05e9376

Browse files
authored
docs: fix typos in docs (#2279)
Found via `codespell docs/ -L te,manger,custome`
1 parent f26ae3e commit 05e9376

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

docs/api/composition.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,7 @@ function messageCompiler(message, { locale, key, onError }) {
12461246
return ctx => formatter.format(ctx.values)
12471247
} else {
12481248
// If you would like to support it for AST,
1249-
// You need to transform locale mesages such as `json`, `yaml`, etc. with the bundle plugin.
1249+
// You need to transform locale messages such as `json`, `yaml`, etc. with the bundle plugin.
12501250
onError && onError(new Error('not support for AST'))
12511251
return () => key // return default with `key`
12521252
}
@@ -1512,7 +1512,7 @@ The use-case for `rt` is for programmatic locale messages translation with using
15121512
:::
15131513

15141514
:::warning
1515-
`rt` differs from `t` in that it processes the locale message directly, not the key of the locale message. There is no internal fallback with `rt`. You need to understand and use the structure of the locale messge returned by `tm`.
1515+
`rt` differs from `t` in that it processes the locale message directly, not the key of the locale message. There is no internal fallback with `rt`. You need to understand and use the structure of the locale message returned by `tm`.
15161516
:::
15171517

15181518
#### Parameters
@@ -1548,7 +1548,7 @@ The use-case for `rt` is for programmatic locale messages translation with using
15481548
:::
15491549

15501550
:::warning
1551-
`rt` differs from `t` in that it processes the locale message directly, not the key of the locale message. There is no internal fallback with `rt`. You need to understand and use the structure of the locale messge returned by `tm`.
1551+
`rt` differs from `t` in that it processes the locale message directly, not the key of the locale message. There is no internal fallback with `rt`. You need to understand and use the structure of the locale message returned by `tm`.
15521552
:::
15531553

15541554
#### Parameters
@@ -1586,7 +1586,7 @@ The use-case for `rt` is for programmatic locale messages translation with using
15861586
:::
15871587

15881588
:::warning
1589-
`rt` differs from `t` in that it processes the locale message directly, not the key of the locale message. There is no internal fallback with `rt`. You need to understand and use the structure of the locale messge returned by `tm`.
1589+
`rt` differs from `t` in that it processes the locale message directly, not the key of the locale message. There is no internal fallback with `rt`. You need to understand and use the structure of the locale message returned by `tm`.
15901590
:::
15911591

15921592
#### Parameters
@@ -1624,7 +1624,7 @@ The use-case for `rt` is for programmatic locale messages translation with using
16241624
:::
16251625

16261626
:::warning
1627-
`rt` differs from `t` in that it processes the locale message directly, not the key of the locale message. There is no internal fallback with `rt`. You need to understand and use the structure of the locale messge returned by `tm`.
1627+
`rt` differs from `t` in that it processes the locale message directly, not the key of the locale message. There is no internal fallback with `rt`. You need to understand and use the structure of the locale message returned by `tm`.
16281628
:::
16291629

16301630
#### Parameters

docs/api/general.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ A fallback locale function implemented with a fallback chain algorithm. It's use
639639

640640
## fallbackWithSimple
641641

642-
Fallback with simple implemenation
642+
Fallback with simple implementation
643643

644644
**Signature:**
645645
```typescript
@@ -870,21 +870,21 @@ linked(key: Path, modifier?: string, type?: string): MessageType<T>;
870870

871871
A resolve message.
872872

873-
### linked(key, optoins)
873+
### linked(key, options)
874874

875875
Overloaded `linked`
876876

877877
**Signature:**
878878
```typescript
879-
linked(key: Path, optoins?: LinkedOptions): MessageType<T>;
879+
linked(key: Path, options?: LinkedOptions): MessageType<T>;
880880
```
881881

882882
#### Parameters
883883

884884
| Parameter | Type | Description |
885885
| --- | --- | --- |
886886
| key | Path | A message key |
887-
| optoins | LinkedOptions | An [linked options](#linkedoptions) |
887+
| options | LinkedOptions | An [linked options](#linkedoptions) |
888888

889889
#### Returns
890890

0 commit comments

Comments
 (0)