From b8beeacff74e5e95ed44d362ed57c7c712d9ba8d Mon Sep 17 00:00:00 2001 From: Samuel Alev Date: Sun, 13 Dec 2020 01:30:51 +0100 Subject: [PATCH] docs: fix various typos --- docs/advanced/{optimaization.md => optimization.md} | 3 +-- docs/api/injection.md | 10 +++++----- docs/installation.md | 2 +- packages/vue-i18n/src/composer.ts | 6 +++--- packages/vue-i18n/src/vue.d.ts | 10 +++++----- 5 files changed, 15 insertions(+), 16 deletions(-) rename docs/advanced/{optimaization.md => optimization.md} (98%) diff --git a/docs/advanced/optimaization.md b/docs/advanced/optimization.md similarity index 98% rename from docs/advanced/optimaization.md rename to docs/advanced/optimization.md index cd218f771..5824c32c2 100644 --- a/docs/advanced/optimaization.md +++ b/docs/advanced/optimization.md @@ -1,4 +1,4 @@ -# Optimaizatoin +# Optimization ## Pre translations with extensions @@ -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. ::: - diff --git a/docs/api/injection.md b/docs/api/injection.md index 38aa61cc1..b6c470bb7 100644 --- a/docs/api/injection.md +++ b/docs/api/injection.md @@ -2,7 +2,7 @@ ## ComponentCustomOptions -Component Custom Propertieis for Vue I18n +Component Custom Properties for Vue I18n **Signature:** ```typescript @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/docs/installation.md b/docs/installation.md index d3a585272..495c3c482 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -10,7 +10,7 @@ -[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 diff --git a/packages/vue-i18n/src/composer.ts b/packages/vue-i18n/src/composer.ts index 6e8aff7d1..cf5e3e35f 100644 --- a/packages/vue-i18n/src/composer.ts +++ b/packages/vue-i18n/src/composer.ts @@ -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 @@ -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 * @@ -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 * diff --git a/packages/vue-i18n/src/vue.d.ts b/packages/vue-i18n/src/vue.d.ts index 9059d9ac5..572eba935 100644 --- a/packages/vue-i18n/src/vue.d.ts +++ b/packages/vue-i18n/src/vue.d.ts @@ -39,7 +39,7 @@ declare module '@vue/runtime-core' { } /** - * Component Custom Propertieis for Vue I18n + * Component Custom Properties for Vue I18n * * @VueI18nInjection */ @@ -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 */ @@ -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 @@ -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 */ @@ -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 */