File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ As result the below:
202
202
203
203
### Custom Modifiers
204
204
205
- If you want to use a non built-in modifiers, you can use your custom modifiers.
205
+ If you want to use non built-in modifiers, you can use your custom modifiers.
206
206
207
207
To use custom modifiers, you must specify them in ` modifiers ` option of ` createI18n ` :
208
208
Original file line number Diff line number Diff line change @@ -313,17 +313,14 @@ export const generate = (
313
313
function getMappingName ( node : CodeGenNode ) : string | undefined {
314
314
switch ( node . type ) {
315
315
case NodeTypes . Text :
316
+ case NodeTypes . Literal :
317
+ case NodeTypes . LinkedModifier :
318
+ case NodeTypes . LinkedKey :
316
319
return node . value
317
320
case NodeTypes . List :
318
321
return node . index . toString ( )
319
322
case NodeTypes . Named :
320
323
return node . key
321
- case NodeTypes . Literal :
322
- return node . value
323
- case NodeTypes . LinkedModifier :
324
- return node . value
325
- case NodeTypes . LinkedKey :
326
- return node . value
327
324
default :
328
325
return undefined
329
326
}
Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ export type DefaultNumberFormatSchema<
224
224
export type MissingHandler = (
225
225
locale : Locale ,
226
226
key : Path ,
227
- insttance ?: ComponentInternalInstance ,
227
+ instance ?: ComponentInternalInstance ,
228
228
type ?: string
229
229
) => string | void
230
230
You can’t perform that action at this time.
0 commit comments