File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
packages/vue-vanilla/dev/components Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,7 @@ import { defineComponent } from 'vue';
33import { JsonForms , JsonFormsChangeEvent } from ' ../../config/jsonforms' ;
44import { vanillaRenderers , mergeStyles , defaultStyles } from ' ../../src' ;
55import ' ../../vanilla.css' ;
6- import { JsonFormsI18nState } from ' @jsonforms/core' ;
76import { ErrorObject } from ' ajv' ;
8-
97import { getExamples } from ' ../../../examples' ;
108import get from ' lodash/get' ;
119
@@ -27,14 +25,13 @@ export default defineComponent({
2725 };
2826 },
2927 data : function () {
30- const i18n: Partial <JsonFormsI18nState > = { locale: ' en' };
3128 const additionalErrors: ErrorObject [] = [];
3229 return {
3330 data: {},
3431 renderers: Object .freeze (vanillaRenderers ),
3532 currentExampleName: examples [0 ].name ,
3633 examples ,
37- i18n ,
34+ i18n: examples [ 0 ]. i18n ,
3835 additionalErrors ,
3936 };
4037 },
@@ -140,8 +137,7 @@ export default defineComponent({
140137 :schema =" example.schema"
141138 :uischema =" example.uischema"
142139 :renderers =" renderers"
143- :config =" config"
144- :i18n =" i18n"
140+ :i18n =" example.i18n"
145141 :additional-errors =" additionalErrors"
146142 @change =" onChange"
147143 >
You can’t perform that action at this time.
0 commit comments