vue-i18n icon indicating copy to clipboard operation
vue-i18n copied to clipboard

Allow hypens for component interpolation

Open andresespinosapc opened this issue 3 years ago • 0 comments
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

andresespinosapc avatar Aug 31 '22 20:08 andresespinosapc