diff --git a/packages/vue-i18n-core/src/components/DatetimeFormat.ts b/packages/vue-i18n-core/src/components/DatetimeFormat.ts index 95e2c5909..56d48e5f5 100644 --- a/packages/vue-i18n-core/src/components/DatetimeFormat.ts +++ b/packages/vue-i18n-core/src/components/DatetimeFormat.ts @@ -44,7 +44,7 @@ export const DatetimeFormatImpl = /* #__PURE__*/ defineComponent({ const i18n = props.i18n || (useI18n({ - useScope: 'parent', + useScope: props.scope as 'global' | 'parent', __useComponent: true }) as unknown as Composer & ComposerInternal) diff --git a/packages/vue-i18n-core/src/components/NumberFormat.ts b/packages/vue-i18n-core/src/components/NumberFormat.ts index 5103cb293..171ec8de2 100644 --- a/packages/vue-i18n-core/src/components/NumberFormat.ts +++ b/packages/vue-i18n-core/src/components/NumberFormat.ts @@ -43,7 +43,7 @@ export const NumberFormatImpl = /*#__PURE__*/ defineComponent({ const i18n = props.i18n || (useI18n({ - useScope: 'parent', + useScope: props.scope as 'global' | 'parent', __useComponent: true }) as unknown as Composer & ComposerInternal)