Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions packages/vue-i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
},
"files": [
"index.js",
"dist"
"dist",
"vetur"
],
"main": "index.js",
"module": "dist/vue-i18n.esm-bundler.js",
Expand Down Expand Up @@ -56,5 +57,9 @@
"global-runtime"
]
},
"sideEffects": false
"sideEffects": false,
"vetur": {
"tags": "vetur/tags.json",
"attributes": "vetur/attributes.json"
}
}
62 changes: 62 additions & 0 deletions packages/vue-i18n/vetur/attributes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"i18n-t/keypath": {
"description": "[required]\nThe locale message key can be specified prop",
"type": "string"
},
"i18n-t/plural": {
"description": "[optional]\nThe Plural Choosing the message number prop",
"type": "number|string"
},
"i18n-t/locale": {
"description": "[optional]\nThe locale to be used for the component",
"type": "string"
},
"i18n-t/scope": {
"description": "[optional]\tThe scope to be used in the target component.\nYou can specify either `global` or `parent`",
"type": "string"
},
"i18n-t/tag": {
"description": "[optional]\nUsed to wrap the content that is distribute in the slot.\nIf omitted, the slot content is treated as Fragments",
"type": "string|object"
},
"i18n-d/value": {
"description": "[required]\nThe value specified for the target component",
"type": "number|date"
},
"i18n-d/format": {
"description": "[optional]\nThe format to use in the target component",
"type": "string|object"
},
"i18n-d/locale": {
"description": "[optional]\nThe locale to be used for the component",
"type": "string"
},
"i18n-d/scope": {
"description": "[optional]\tThe scope to be used in the target component.\nYou can specify either `global` or `parent`",
"type": "string"
},
"i18n-d/tag": {
"description": "[optional]\nUsed to wrap the content that is distribute in the slot.\nIf omitted, the slot content is treated as Fragments",
"type": "string|object"
},
"i18n-n/value": {
"description": "[required]\nThe value specified for the target component",
"type": "number"
},
"i18n-n/format": {
"description": "[optional]\nThe format to use in the target component",
"type": "string|object"
},
"i18n-n/locale": {
"description": "[optional]\nThe locale to be used for the component",
"type": "string"
},
"i18n-n/scope": {
"description": "[optional]\tThe scope to be used in the target component.\nYou can specify either `global` or `parent`",
"type": "string"
},
"i18n-n/tag": {
"description": "[optional]\nUsed to wrap the content that is distribute in the slot.\nIf omitted, the slot content is treated as Fragments",
"type": "string|object"
}
}
14 changes: 14 additions & 0 deletions packages/vue-i18n/vetur/tags.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"i18n-t": {
"attributes": ["keypath", "locale", "tag", "plural", "scope"],
"description": "This is Translation component that can be used when HTML interpolation is needed.\n\nhttps://vue-i18n.intlify.dev/guide/advanced/component.html#basic-usage"
},
"i18n-d": {
"attributes": ["value", "format", "locale", "tag", "scope"],
"description": "This is Datetime Format component provides a way to use HTML interpolation in pair with number formatting.\n\nhttps://vue-i18n.intlify.dev/guide/essentials/datetime.html#custom-formatting"
},
"i18n-n": {
"attributes": ["value", "format", "locale", "tag", "scope"],
"description": "This is Number Format component provides a way to use HTML interpolation in pair with number formatting.\n\nhttps://vue-i18n.intlify.dev/guide/essentials/number.html#custom-formatting"
}
}