# Change text of Facet input coming from schema

**URL:** <https://discuss.elastic.co/t/change-text-of-facet-input-coming-from-schema/323339>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [January 17, 2023, 3:33pm UTC](https://discuss.elastic.co/t/change-text-of-facet-input-coming-from-schema/323339 "2023-01-17T15:33:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Max4](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/max4/32/116030_2.png) [@Max4](https://discuss.elastic.co/u/Max4)\
**Post date:** [January 17, 2023, 3:33pm UTC](https://discuss.elastic.co/t/change-text-of-facet-input-coming-from-schema/323339/1 "2023-01-17T15:33:05Z")

</div>

Hello im implementing Search UI, im using facet components, i have a filter that has two values that come from schemas "offers" and "articles". Since our schema is in english but the website is in German i would like to know if there is a possibility to change the label of the Facet inputs.

```auto
my engine.json has: 
    "facets": ["type", "locality"]

in my react component I iterate and render each Facet.

 <Facet
      key={field}
      field={field}
      label={field.replaceAll(_',' ')}
  />

```

Rendered html:

![Screenshot 2023-01-17 at 16.32.27](https://us1.discourse-cdn.com/elastic/original/3X/5/c/5c441724873060044640d146e064c9052a8f0f32.png)

 ![Screenshot 2023-01-17 at 16.30.53](https://us1.discourse-cdn.com/elastic/original/3X/3/d/3d38c33952f03c0c9fdcbb9a484a98bc0d3a31f0.png)

What i need below "TYPE" filter is : Artikel , Angebote instead of article and offers

---

<div class="post-metadata">

**Author:** ![joemcelroy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joemcelroy/32/103757_2.png) [@joemcelroy](https://discuss.elastic.co/u/joemcelroy)\
**Post date:** [January 17, 2023, 3:41pm UTC](https://discuss.elastic.co/t/change-text-of-facet-input-coming-from-schema/323339/2 "2023-01-17T15:41:59Z")

</div>

Hey @Max4

You can override the view for the component. See instructions [Facet | Elastic docs](https://docs.elastic.co/search-ui/api/react/components/facet#view-customization).

Heres an example of the MultiCheckboxFacet Display component [search-ui/MultiCheckboxFacet.tsx at main · elastic/search-ui · GitHub](https://github.com/elastic/search-ui/blob/main/packages/react-search-ui-views/src/MultiCheckboxFacet.tsx)

Then you can assume the facet value is an id. Have a map for id to labels or use with a localisation string if you're supporting multiple languages.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 14, 2023, 3:42pm UTC](https://discuss.elastic.co/t/change-text-of-facet-input-coming-from-schema/323339/3 "2023-02-14T15:42:21Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
