Skip to content

Commit 6be7186

Browse files
authored
docs: fix various typos (#228)
1 parent e2cb165 commit 6be7186

File tree

5 files changed

+15
-16
lines changed

5 files changed

+15
-16
lines changed

docs/advanced/optimaization.md renamed to docs/advanced/optimization.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Optimaizatoin
1+
# Optimization
22

33

44
## Pre translations with extensions
@@ -25,4 +25,3 @@ The build will work without configuring these flags, however it is **strongly re
2525
:::tip NOTE
2626
The replacement value **must be boolean literals** and cannot be strings, otherwise the bundler/minifier will not be able to properly evaluate the conditions.
2727
:::
28-

docs/api/injection.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## ComponentCustomOptions
44

5-
Component Custom Propertieis for Vue I18n
5+
Component Custom Properties for Vue I18n
66

77
**Signature:**
88
```typescript
@@ -291,7 +291,7 @@ Overloaded `$t`. About details, see the [$t](injection#t-key) remarks.
291291
| Parameter | Type | Description |
292292
| --- | --- | --- |
293293
| key | Path | A target locale message key |
294-
| defaultMsg | string | A defautl message to return if no translation was found |
294+
| defaultMsg | string | A default message to return if no translation was found |
295295

296296
#### Returns
297297

@@ -314,7 +314,7 @@ Overloaded `$t`. About details, see the [$t](injection#t-key) remarks.
314314
| Parameter | Type | Description |
315315
| --- | --- | --- |
316316
| key | Path | A target locale message key |
317-
| defaultMsg | string | A defautl message to return if no translation was found |
317+
| defaultMsg | string | A default message to return if no translation was found |
318318
| options | TranslateOptions | An options, see the [TranslateOptions](general#translateoptions) |
319319

320320
#### Returns
@@ -386,7 +386,7 @@ Overloaded `$t`. About details, see the [$t](injection#t-key) remarks.
386386
| --- | --- | --- |
387387
| key | Path | A target locale message key |
388388
| list | unknown[] | A values of list interpolation |
389-
| defaultMsg | string | A defautl message to return if no translation was found |
389+
| defaultMsg | string | A default message to return if no translation was found |
390390

391391
#### Returns
392392

@@ -481,7 +481,7 @@ Overloaded `$t`. About details, see the [$t](injection#t-key) remarks.
481481
| --- | --- | --- |
482482
| key | Path | A target locale message key |
483483
| named | NamedValue | A values of named interpolation |
484-
| defaultMsg | string | A defautl message to return if no translation was found |
484+
| defaultMsg | string | A default message to return if no translation was found |
485485

486486
#### Returns
487487

docs/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<https://unpkg.com/vue-i18n@next>
1212

13-
[unpkg.com](https://unpkg.com) provides aw npm-based CDN links. The above link will always point to the latest release on npm.
13+
[unpkg.com](https://unpkg.com) provides a npm-based CDN links. The above link will always point to the latest release on npm.
1414

1515
### Global import
1616

packages/vue-i18n/src/composer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ export interface Composer<
495495
* About details of options, see the {@link TranslateOptions}.
496496
*
497497
* @param key - A target locale message key
498-
* @param defaultMsg - A defautl message to return if no translation was found
498+
* @param defaultMsg - A default message to return if no translation was found
499499
* @param options - Additional {@link TranslateOptions | options} for translation
500500
*
501501
* @returns Translated message
@@ -550,7 +550,7 @@ export interface Composer<
550550
*
551551
* @param key - A target locale message key
552552
* @param list - A values of list interpolation
553-
* @param defaultMsg - A defautl message to return if no translation was found
553+
* @param defaultMsg - A default message to return if no translation was found
554554
*
555555
* @returns Translated message
556556
*
@@ -606,7 +606,7 @@ export interface Composer<
606606
*
607607
* @param key - A target locale message key
608608
* @param named - A values of named interpolation
609-
* @param defaultMsg - A defautl message to return if no translation was found
609+
* @param defaultMsg - A default message to return if no translation was found
610610
*
611611
* @returns Translated message
612612
*

packages/vue-i18n/src/vue.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ declare module '@vue/runtime-core' {
3939
}
4040

4141
/**
42-
* Component Custom Propertieis for Vue I18n
42+
* Component Custom Properties for Vue I18n
4343
*
4444
* @VueI18nInjection
4545
*/
@@ -175,7 +175,7 @@ declare module '@vue/runtime-core' {
175175
* Overloaded `$t`. About details, see the {@link $t} remarks.
176176
*
177177
* @param key - A target locale message key
178-
* @param defaultMsg - A defautl message to return if no translation was found
178+
* @param defaultMsg - A default message to return if no translation was found
179179
*
180180
* @returns translation message
181181
*/
@@ -187,7 +187,7 @@ declare module '@vue/runtime-core' {
187187
* Overloaded `$t`. About details, see the {@link $t} remarks.
188188
*
189189
* @param key - A target locale message key
190-
* @param defaultMsg - A defautl message to return if no translation was found
190+
* @param defaultMsg - A default message to return if no translation was found
191191
* @param options - An options, see the {@link TranslateOptiions}
192192
*
193193
* @returns translation message
@@ -226,7 +226,7 @@ declare module '@vue/runtime-core' {
226226
*
227227
* @param key - A target locale message key
228228
* @param list - A values of list interpolation
229-
* @param defaultMsg - A defautl message to return if no translation was found
229+
* @param defaultMsg - A default message to return if no translation was found
230230
*
231231
* @returns translation message
232232
*/
@@ -277,7 +277,7 @@ declare module '@vue/runtime-core' {
277277
*
278278
* @param key - A target locale message key
279279
* @param named - A values of named interpolation
280-
* @param defaultMsg - A defautl message to return if no translation was found
280+
* @param defaultMsg - A default message to return if no translation was found
281281
*
282282
* @returns translation message
283283
*/

0 commit comments

Comments
 (0)