-
-
Notifications
You must be signed in to change notification settings - Fork 861
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add vetur support for tags and attributes (#942)
- Loading branch information
Showing
3 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"i18n/path" : { | ||
"description": "[required]\nKeypath of the locale message", | ||
"type": "string" | ||
}, | ||
"i18n/locale" : { | ||
"description": "[optional]\nLocale to be used in this translation", | ||
"type": "string" | ||
}, | ||
"i18n/tag" : { | ||
"description": "[optional]\nWhich tag to render, default is \"span\"", | ||
"type": "string" | ||
}, | ||
"i18n/places": { | ||
"description": "[optional after v8.14]\nWill be removed in the next major version, use the slot syntax instead\n\nhttp://kazupon.github.io/vue-i18n/guide/interpolation.html#slots-syntax-usage", | ||
"type": "array|object" | ||
}, | ||
"i18n-n/value" : { | ||
"description": "[required]\nNumber to be used in formatting", | ||
"type": "number" | ||
}, | ||
"i18n-n/format": { | ||
"description": "[optional]\nNumber format name or object with explicit format options", | ||
"type": "string|object" | ||
}, | ||
"i18n-n/locale" : { | ||
"description": "[optional]\nLocale to be used in this translation", | ||
"type": "string" | ||
}, | ||
"i18n-n/tag" : { | ||
"description": "[optional]\nWhich tag to render, default is `span`", | ||
"type": "string" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"i18n": { | ||
"attributes": [ | ||
"path", | ||
"locale", | ||
"tag", | ||
"places" | ||
], | ||
"description": "This is a functional component that can be used when HTML interpolation is needed.\n\nhttp://kazupon.github.io/vue-i18n/guide/interpolation.html#basic-usage" | ||
}, | ||
"i18n-n": { | ||
"attributes": [ | ||
"value", | ||
"format", | ||
"locale", | ||
"tag" | ||
], | ||
"description": "This functional component provides a way to use HTML interpolation in pair with number formatting.\n\nhttp://kazupon.github.io/vue-i18n/guide/number.html#custom-formatting" | ||
} | ||
} |