# Change error messages in Vue Vanilla Renderer

**URL:** <https://jsonforms.discourse.group/t/change-error-messages-in-vue-vanilla-renderer/843>\
**Category:** General\
**Created:** [June 21, 2022, 9:28am UTC](https://jsonforms.discourse.group/t/change-error-messages-in-vue-vanilla-renderer/843 "2022-06-21T09:28:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![svnt](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/svnt/32/360_2.png) [@svnt](https://jsonforms.discourse.group/u/svnt)\
**Post date:** [June 21, 2022, 9:28am UTC](https://jsonforms.discourse.group/t/change-error-messages-in-vue-vanilla-renderer/843/1 "2022-06-21T09:28:29Z")

</div>

Hello,

I’ve read everything I could find here about translations/changing of error messages but can’t get it to work in the Vue(3) Vanilla Renderer.

Is the new l18n available in the renderer? How do I add it to my (UI)Schema?  
What I have to do to get own error messages?

best regards,  
Svnt

---

<div class="post-metadata">

**Author:** ![sdirix](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/sdirix/32/1073_2.png) [@sdirix](https://jsonforms.discourse.group/u/sdirix)\
**Post date:** [June 24, 2022, 7:47am UTC](https://jsonforms.discourse.group/t/change-error-messages-in-vue-vanilla-renderer/843/2 "2022-06-24T07:47:48Z")

</div>

Hi @svnt,

for translating errors you can either:

- integrate `ajv-errors` by handing over a custom AJV instance to JSON Forms
- integrate `ajv-i18n` by handing over a custom `translateError` function as part of the `i18n` config object
- use the JSON Forms translation mechanism, i.e. handing over an own `translate` function as part of the `i18n` config object.

For the first option see the documentation of `ajv-errors`. For the latter two have a a look at our [preliminary documentation of the JSON Forms translation mechanism](https://deploy-preview-222--jsonforms.netlify.app/docs/i18n).

---

<div class="post-metadata">

**Author:** ![meierdasilva](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/meierdasilva/32/748_2.png) [@meierdasilva](https://jsonforms.discourse.group/u/meierdasilva)\
**Post date:** [June 22, 2023, 1:46pm UTC](https://jsonforms.discourse.group/t/change-error-messages-in-vue-vanilla-renderer/843/3 "2023-06-22T13:46:15Z")

</div>

Hi @sdirix, is it possible to provide a code sample with: "use the JSON Forms translation mechanism, i.e. handing over an own `translate` function as part of the `i18n` config object. "

best regards,  
André

---

<div class="post-metadata">

**Author:** ![sdirix](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/sdirix/32/1073_2.png) [@sdirix](https://jsonforms.discourse.group/u/sdirix)\
**Post date:** [July 3, 2023, 8:47am UTC](https://jsonforms.discourse.group/t/change-error-messages-in-vue-vanilla-renderer/843/4 "2023-07-03T08:47:58Z")

</div>

The first snippet on the [`i18n` documentation page](https://jsonforms.io/docs/i18n) is exactly that example.
