# Plugin Custom Editor localized text

**URL:** <https://forum.builder.io/t/plugin-custom-editor-localized-text/11254>\
**Category:** CMS\
**Tags:** plugin\
**Created:** [February 13, 2025, 11:00pm UTC](https://forum.builder.io/t/plugin-custom-editor-localized-text/11254 "2025-02-13T23:00:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pasquej](https://avatars.discourse-cdn.com/v4/letter/p/b5a626/32.png) [@pasquej](https://forum.builder.io/u/pasquej)\
**Post date:** [February 13, 2025, 11:00pm UTC](https://forum.builder.io/t/plugin-custom-editor-localized-text/11254/1 "2025-02-13T23:00:37Z")

</div>

I am creating a custom editor with our plugin. My understanding is that the two main props are `value` and `onChange`. In our scenario, we’re pushing localized text, which as I understand it should look something like this:

```auto
{
  @type: "@builder.io/core:LocalizedValue",
  Default: "Welcome Back",
  de: "Schön, dass du wieder bei",
  en: "Welcome Back",
  es: "¡Qué bueno volver a verte!"
  fr: "Ravis de vous revoir "
  pt: "Que bom que você voltou"
}

```

When we submit that to `onChange`, the `value` in the next render of the component is just the basic string “Welcome Back”.

My question is do the custom editors not allow the underlying type to be anything other than a simple string? Or is there some other reason I can’t submit a localized text value?

---

<div class="post-metadata">

**Author:** ![ParthSharma](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@ParthSharma](https://forum.builder.io/u/ParthSharma)\
**Post date:** [March 11, 2025, 1:16pm UTC](https://forum.builder.io/t/plugin-custom-editor-localized-text/11254/2 "2025-03-11T13:16:25Z")

</div>

Hello there!

We are working on this. I will let you know once I have an update from the team.

Thanks,

---

<div class="post-metadata">

**Author:** ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)\
**Post date:** [April 3, 2025, 9:38am UTC](https://forum.builder.io/t/plugin-custom-editor-localized-text/11254/3 "2025-04-03T09:38:03Z")

</div>

Hello @pasquej,

When you create a [custom editor plugin](https://www.builder.io/c/docs/extending/plugins) to handle inputs such as localized text, it is vital to ensure that the `value` prop you pass can handle the type as an object or localized value, rather than converting it to a simple string.

The `value` and `onChange` props in your custom editor component should be designed to work with deeply nested objects, such as the `@type: "@builder.io/core:LocalizedValue"` configuration you mentioned. The value you set should indeed be serializable to JSON, which means complex objects like localized values should work.

There could be two potential issues:

1. **Handling of `onChange`:** Ensure that your `onChange` function properly sets the whole localized object to maintain all language variations rather than only updating the default or active language.
2. **Rendering the Value:** It is also crucial that your component supports rendering this object format correctly and does not default to rendering just one property, like the simple string. This often involves making sure that your component’s internal logic explicitly accounts for localization mapping.

If these suggestions don’t resolve the problem, could you share a minimal repo of your plugin code? That way, we can attempt to reproduce the issue and assist you further.

Thanks,
