vuetify-jsonschema-form icon indicating copy to clipboard operation
vuetify-jsonschema-form copied to clipboard

i18 suppourt

Open a0m0rajab opened this issue 3 years ago • 1 comments

I have an object with i18 data, where it's structure is like the next: name:{ ar: "test" en: "test" } I was wondering if there is a direct way to bind it with the language attribute that I have.

if not, how can I set the schema for this type of objects?

a0m0rajab avatar Jul 17 '21 17:07 a0m0rajab

The workaround was to use slots for this but What i was expecting is a way to set the item value directly.

<template slot="name" slot-scope="{ value, label }">
{{ lang + ' ' + label }}
<v-text-field v-model="value[lang]" type="text" />
</template>

a0m0rajab avatar Jul 19 '21 14:07 a0m0rajab