# Referencing Locale in Custom Input Type Plugin

**URL:** <https://forum.builder.io/t/referencing-locale-in-custom-input-type-plugin/15394>\
**Category:** Technical Questions\
**Created:** [July 11, 2025, 8:55pm UTC](https://forum.builder.io/t/referencing-locale-in-custom-input-type-plugin/15394 "2025-07-11T20:55:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhs129](https://avatars.discourse-cdn.com/v4/letter/j/2acd7d/32.png) [@jhs129](https://forum.builder.io/u/jhs129)\
**Post date:** [July 11, 2025, 8:55pm UTC](https://forum.builder.io/t/referencing-locale-in-custom-input-type-plugin/15394/1 "2025-07-11T20:55:07Z")

</div>

I have a plugin that defines a custom input type that effectively creates a tags input type with an enum of valid values that come from a reference to another content model. This content and enums need to be localizeable so I need for the plugin to know what locale of the content is being viewed but it is unclear how I access this context. Can you provide documentation for how a custom input type plugin could get context as to the current locale of the content that is being edited?

---

<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:** [July 14, 2025, 4:57pm UTC](https://forum.builder.io/t/referencing-locale-in-custom-input-type-plugin/15394/2 "2025-07-14T16:57:07Z")

</div>

Hello @jhs129,

To access the current locale of the content being edited in a custom input type plugin within [Builder.io](http://Builder.io), you can pass the `locale` as a prop to the `<BuilderComponent>` . This ensures localized inputs are automatically resolved based on the user’s locale.

It seems, you could possibly access current editing locale from appState

`appState.designerState.locale`

 ![Screenshot 2025-07-14 at 10.26.28 PM](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/6/6c748048bcba9fc230cc7d96bb628c9f969d49d1.png)

You can refer to the below plugin example, which could possibly help as well

> <https://github.com/BuilderIO/builder/blob/main/plugins/smartling/src/plugin.tsx>

Let us know how that works for you!

Best regards,

---

<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:** [July 16, 2025, 12:21pm UTC](https://forum.builder.io/t/referencing-locale-in-custom-input-type-plugin/15394/3 "2025-07-16T12:21:20Z")

</div>

Hello @jhs129,

Just following up to see if using `appState.designerState.locale` helped resolve the issue you were encountering.

If you’re still facing challenges or have any questions, please don’t hesitate to reach out — we’re happy to help!

Thanks again,

---

<div class="post-metadata">

**Author:** ![jhs129](https://avatars.discourse-cdn.com/v4/letter/j/2acd7d/32.png) [@jhs129](https://forum.builder.io/u/jhs129)\
**Post date:** [July 16, 2025, 12:35pm UTC](https://forum.builder.io/t/referencing-locale-in-custom-input-type-plugin/15394/4 "2025-07-16T12:35:58Z")

</div>

Thanks Manish! This did work!

Regards,  
John  
m: 404.307.5530  
e: [john.schneider@jhsconsulting.net](mailto:john.schneider@jhsconsulting.net)  
[Book a Meeting](https://calendly.com/john-h-schneider/30-min)
