Skip to content

Commit 1fceaa7

Browse files
authored
fix: slot resolving in render function (#1064)
1 parent dffcc47 commit 1fceaa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vue-i18n-core/src/components/Translation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ export const Translation = /* #__PURE__*/ /* defineComponent */ {
106106
useScope: props.scope as 'global' | 'parent',
107107
__useComponent: true
108108
}) as Composer & ComposerInternal)
109-
const keys = Object.keys(slots).filter(key => key !== '_')
110109

111110
return (): VNodeChild => {
111+
const keys = Object.keys(slots).filter(key => key !== '_')
112112
const options = {} as TranslateOptions
113113
if (props.locale) {
114114
options.locale = props.locale

0 commit comments

Comments
 (0)