File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
tests/fixtures/no-unused-keys/invalid/constructor-option-format/src Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -203,9 +203,10 @@ export function collectKeysFromAST(
203203 }
204204 } else {
205205 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' )
209210 ) {
210211 debug (
211212 "call VElement:matches([name=i18n], [name=i18n-t]) > VStartTag > VAttribute[key.name='path'] handling ..."
Original file line number Diff line number Diff line change 11<template >
22 <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 >
45 </div >
56</template >
67
You can’t perform that action at this time.
0 commit comments