# Locales Filters API

**URL:** <https://discourse.getcockpit.com/t/locales-filters-api/2951>\
**Category:** Support\
**Created:** [March 12, 2024, 9:18am UTC](https://discourse.getcockpit.com/t/locales-filters-api/2951 "2024-03-12T09:18:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergefy13](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/sergefy13/32/1432_2.png) [@sergefy13](https://discourse.getcockpit.com/u/sergefy13)\
**Post date:** [March 12, 2024, 9:18am UTC](https://discourse.getcockpit.com/t/locales-filters-api/2951/1 "2024-03-12T09:18:09Z")

</div>

Hey! I have an issue here:

So when I want to fetch filtered collection data with a certain local it still filters fields default local…and it works if you add \_local (\_ru, \_es) to the field name

So rn I try `...?local=ru&filter={Title:{$regex: 'Значение',$options: "i"}}` and it gives me nothing, but if I do `...?local=ru&filter={Title_ru:{$regex: 'Значение',$options: "i"}}` it gives me what i need.

It is really messy, so I would be cool if defining locale makes filter option search for local field.

---

<div class="post-metadata">

**Author:** ![joe09](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/joe09/32/1451_2.png) [@joe09](https://discourse.getcockpit.com/u/joe09)\
**Post date:** [June 24, 2024, 9:27am UTC](https://discourse.getcockpit.com/t/locales-filters-api/2951/2 "2024-06-24T09:27:23Z")

</div>

Could you explain it more??
