Expose current locale to filterOptions callback #4021
felskov
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to be able to access current locale in filterOptions callback on a collection, e.g. like this:
I've had a look and think that this should be rather trivial to implement here:
https://github.com/payloadcms/payload/blob/04850694c1cfa13279b80f5d195a5eeeedd815e9/packages/payload/src/admin/components/utilities/GetFilterOptions/index.tsx
Let me know if you'd be interested in me opening a PR for this change.
Beta Was this translation helpful? Give feedback.
All reactions