vue-i18n
vue-i18n copied to clipboard
Allow hypens for component interpolation
trafficstars
Clear and concise description of the problem
When using component interpolation, the literal to be replaced (the one surrounded with curly braces) cannot contain hypens. If it contains hyphens I get this error: Unexpected return type in composer
Suggested solution
The literal should allow hyphens, so it keeps the convention of Vue for the slot name.
Alternative
Using camelCase, but then I have to put this in the slot: <template #myKey></template>. I'd prefer to use the Vue convention of <template #my-key></template>
Additional context
No response
Validations
- [X] Read the Contributing Guidelines
- [X] Read the Documentation
- [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.