Skip to content

Commit e3bddec

Browse files
authored
vue-vanilla: Use examples' given i18n in dev app (#2291)
1 parent 51b63f5 commit e3bddec

File tree

1 file changed

+2
-6
lines changed
  • packages/vue-vanilla/dev/components

1 file changed

+2
-6
lines changed

packages/vue-vanilla/dev/components/App.vue

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ import { defineComponent } from 'vue';
33
import { JsonForms, JsonFormsChangeEvent } from '../../config/jsonforms';
44
import { vanillaRenderers, mergeStyles, defaultStyles } from '../../src';
55
import '../../vanilla.css';
6-
import { JsonFormsI18nState } from '@jsonforms/core';
76
import { ErrorObject } from 'ajv';
8-
97
import { getExamples } from '../../../examples';
108
import 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
>

0 commit comments

Comments
 (0)