File tree 2 files changed +6
-4
lines changed
tests/fixtures/no-unused-keys/invalid/constructor-option-format/src 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -203,9 +203,10 @@ export function collectKeysFromAST(
203
203
}
204
204
} else {
205
205
if (
206
- node . key . name === 'path' &&
207
- ( node . parent . parent . name === 'i18n' ||
208
- node . parent . parent . name === 'i18n-t' )
206
+ ( node . key . name === 'path' &&
207
+ ( node . parent . parent . name === 'i18n' ||
208
+ node . parent . parent . name === 'i18n-t' ) ) ||
209
+ ( node . key . name === 'keypath' && node . parent . parent . name === 'i18n-t' )
209
210
) {
210
211
debug (
211
212
"call VElement:matches([name=i18n], [name=i18n-t]) > VStartTag > VAttribute[key.name='path'] handling ..."
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div id =" app" >
3
- <p v-t =" 'hello_dio'" >{{ $t('messages.hello') }}</p >
3
+ <i18n-t keypath =hello_dio ></i18n-t >
4
+ <p >{{ $t('messages.hello') }}</p >
4
5
</div >
5
6
</template >
6
7
You can’t perform that action at this time.
0 commit comments