Skip to content

Commit

Permalink
docs: fix various typos (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelAlev authored Dec 13, 2020
1 parent e2cb165 commit 6be7186
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Optimaizatoin
# Optimization


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

10 changes: 5 additions & 5 deletions docs/api/injection.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## ComponentCustomOptions

Component Custom Propertieis for Vue I18n
Component Custom Properties for Vue I18n

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

#### Returns

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

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

#### Returns

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

#### Returns

Expand Down
2 changes: 1 addition & 1 deletion docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

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

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

### Global import

Expand Down
6 changes: 3 additions & 3 deletions packages/vue-i18n/src/composer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ export interface Composer<
* About details of options, see the {@link TranslateOptions}.
*
* @param key - A target locale message key
* @param defaultMsg - A defautl message to return if no translation was found
* @param defaultMsg - A default message to return if no translation was found
* @param options - Additional {@link TranslateOptions | options} for translation
*
* @returns Translated message
Expand Down Expand Up @@ -550,7 +550,7 @@ export interface Composer<
*
* @param key - A target locale message key
* @param list - A values of list interpolation
* @param defaultMsg - A defautl message to return if no translation was found
* @param defaultMsg - A default message to return if no translation was found
*
* @returns Translated message
*
Expand Down Expand Up @@ -606,7 +606,7 @@ export interface Composer<
*
* @param key - A target locale message key
* @param named - A values of named interpolation
* @param defaultMsg - A defautl message to return if no translation was found
* @param defaultMsg - A default message to return if no translation was found
*
* @returns Translated message
*
Expand Down
10 changes: 5 additions & 5 deletions packages/vue-i18n/src/vue.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ declare module '@vue/runtime-core' {
}

/**
* Component Custom Propertieis for Vue I18n
* Component Custom Properties for Vue I18n
*
* @VueI18nInjection
*/
Expand Down Expand Up @@ -175,7 +175,7 @@ declare module '@vue/runtime-core' {
* Overloaded `$t`. About details, see the {@link $t} remarks.
*
* @param key - A target locale message key
* @param defaultMsg - A defautl message to return if no translation was found
* @param defaultMsg - A default message to return if no translation was found
*
* @returns translation message
*/
Expand All @@ -187,7 +187,7 @@ declare module '@vue/runtime-core' {
* Overloaded `$t`. About details, see the {@link $t} remarks.
*
* @param key - A target locale message key
* @param defaultMsg - A defautl message to return if no translation was found
* @param defaultMsg - A default message to return if no translation was found
* @param options - An options, see the {@link TranslateOptiions}
*
* @returns translation message
Expand Down Expand Up @@ -226,7 +226,7 @@ declare module '@vue/runtime-core' {
*
* @param key - A target locale message key
* @param list - A values of list interpolation
* @param defaultMsg - A defautl message to return if no translation was found
* @param defaultMsg - A default message to return if no translation was found
*
* @returns translation message
*/
Expand Down Expand Up @@ -277,7 +277,7 @@ declare module '@vue/runtime-core' {
*
* @param key - A target locale message key
* @param named - A values of named interpolation
* @param defaultMsg - A defautl message to return if no translation was found
* @param defaultMsg - A default message to return if no translation was found
*
* @returns translation message
*/
Expand Down

0 comments on commit 6be7186

Please sign in to comment.