Skip to content

Commit a353b6b

Browse files
authored
fix: update slot key filtering to exclude internal keys (#2167)
1 parent 860a79e commit a353b6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/vue-i18n-core/src/components/Translation.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const TranslationImpl: ComponentOptions<TranslationProps> =
6262
}) as unknown as Composer & ComposerInternal)
6363

6464
return (): VNodeChild => {
65-
const keys = Object.keys(slots).filter(key => key !== '_')
65+
const keys = Object.keys(slots).filter(key => key[0] !== '_')
6666
const options = create() as TranslateOptions
6767
if (props.locale) {
6868
options.locale = props.locale

0 commit comments

Comments
 (0)