Hey
@415764121280184330
Good question - yes I believe this is possible by leveraging the
ctxargument passed to your validate function.
https://payloadcms.com/docs/fields/overview#validation-contextYou can do this by using
reqvia
ctx.req.i18n.twhich lets you use the
t()function
Thanks, that's very helpful!
Star
Discord
online
Get dedicated engineering support directly from the Payload team.