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';
3
3
import { JsonForms , JsonFormsChangeEvent } from ' ../../config/jsonforms' ;
4
4
import { vanillaRenderers , mergeStyles , defaultStyles } from ' ../../src' ;
5
5
import ' ../../vanilla.css' ;
6
- import { JsonFormsI18nState } from ' @jsonforms/core' ;
7
6
import { ErrorObject } from ' ajv' ;
8
-
9
7
import { getExamples } from ' ../../../examples' ;
10
8
import get from ' lodash/get' ;
11
9
@@ -27,14 +25,13 @@ export default defineComponent({
27
25
};
28
26
},
29
27
data : function () {
30
- const i18n: Partial <JsonFormsI18nState > = { locale: ' en' };
31
28
const additionalErrors: ErrorObject [] = [];
32
29
return {
33
30
data: {},
34
31
renderers: Object .freeze (vanillaRenderers ),
35
32
currentExampleName: examples [0 ].name ,
36
33
examples ,
37
- i18n ,
34
+ i18n: examples [ 0 ]. i18n ,
38
35
additionalErrors ,
39
36
};
40
37
},
@@ -140,8 +137,7 @@ export default defineComponent({
140
137
:schema =" example.schema"
141
138
:uischema =" example.uischema"
142
139
:renderers =" renderers"
143
- :config =" config"
144
- :i18n =" i18n"
140
+ :i18n =" example.i18n"
145
141
:additional-errors =" additionalErrors"
146
142
@change =" onChange"
147
143
>
You can’t perform that action at this time.
0 commit comments