Skip to content

Commit

Permalink
Fix typo (#1393)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkalmar committed May 9, 2023
1 parent d120e6e commit 81fe54f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/.ja/api/component.md
Expand Up @@ -31,7 +31,7 @@ If specified, the global scope or the locale of the parent scope of the target c

**Signature:**
```typescript
scope?: ComponetI18nScope;
scope?: ComponentI18nScope;
```

**Details**
Expand Down
8 changes: 4 additions & 4 deletions packages/vue-i18n-core/src/components/base.ts
Expand Up @@ -3,7 +3,7 @@ import { Composer } from '../composer'
import type { I18nScope } from '../i18n'
import type { Locale } from '@intlify/core-base'

export type ComponetI18nScope = Exclude<I18nScope, 'local'>
export type ComponentI18nScope = Exclude<I18nScope, 'local'>

/**
* BaseFormat Props for Components that is offered Vue I18n
Expand Down Expand Up @@ -38,7 +38,7 @@ export interface BaseFormatProps {
*
* If the parent is a global scope, the global scope is used, if it's a local scope, the local scope is used.
*/
scope?: ComponetI18nScope
scope?: ComponentI18nScope
/**
* @remarks
* A composer instance with an existing scope.
Expand All @@ -59,9 +59,9 @@ export const baseFormatProps = {
type: String,
// NOTE: avoid https://github.com/microsoft/rushstack/issues/1050
validator: (
val: Exclude<I18nScope, 'local'> /* ComponetI18nScope */
val: Exclude<I18nScope, 'local'> /* ComponentI18nScope */
): boolean => val === 'parent' || val === 'global',
default: 'parent' as Exclude<I18nScope, 'local'> /* ComponetI18nScope */
default: 'parent' as Exclude<I18nScope, 'local'> /* ComponentI18nScope */
},
i18n: {
type: Object
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-i18n-core/src/components/index.ts
@@ -1,4 +1,4 @@
export { ComponetI18nScope, BaseFormatProps } from './base'
export { ComponentI18nScope, BaseFormatProps } from './base'
export { FormattableProps } from './formatRenderer'
export { Translation, I18nT, TranslationProps } from './Translation'
export { NumberFormat, I18nN, NumberFormatProps } from './NumberFormat'
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-i18n-core/src/index.ts
Expand Up @@ -94,7 +94,7 @@ export {
DatetimeFormatProps,
FormattableProps,
BaseFormatProps,
ComponetI18nScope
ComponentI18nScope
} from './components'
export { vTDirective, TranslationDirective } from './directive'
export { I18nPluginOptions } from './plugin'
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-i18n/src/index.ts
Expand Up @@ -108,7 +108,7 @@ export {
DatetimeFormatProps,
FormattableProps,
BaseFormatProps,
ComponetI18nScope
ComponentI18nScope
} from '../../vue-i18n-core/src/components'
export {
vTDirective,
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-i18n/src/runtime.ts
Expand Up @@ -103,7 +103,7 @@ export {
DatetimeFormatProps,
FormattableProps,
BaseFormatProps,
ComponetI18nScope
ComponentI18nScope
} from '../../vue-i18n-core/src/components'
export {
vTDirective,
Expand Down

0 comments on commit 81fe54f

Please sign in to comment.