Open buglist3r opened 3 years ago
You need the returnObjects
option.
JSON:
{
"headers": [
{
"value": "due",
"label": "Fälligkeit"
},
{
"value": "name",
"label": "Name"
}
]
}
Template:
<div
v-for="(header, index) in $t('headers', { returnObjects: true })"
:key="`header-${index}`"
>
{{ header.value }} - {{ header.label }}
</div>
Output:
due - Fälligkeit
name - Name
Is there any possibilities to support arrays for example i need to use something like that
Then i can simply loop through it which is default case with
Vue i18n
Thank you
LG Adel