I'm trying to implement
locale
based RBAC. Basically, I want certain fields to be edited only on one locale for example config related fields however the
req.locale
is always
en (default locale)
. How do I get the current locale? 🤔
Hi
@541306947463282698, this issue was recently fixed. If you have already migrated to 2.0, you can upgrade to v2.2.0 to fix this! Let us know if you have any further questions or issues.
Hi,
I'm on version
v2.22.0
and this still is happening.
When calling the local API, the
PayloadRequest.locale
is equal to
PayloadRequest.fallbackLocale
and not equal to the current selected
locale
.
Star
Discord
online
Get dedicated engineering support directly from the Payload team.