You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using zod and zod-i18n for validate some forms. I have two locales from a static file.
I would not use a custom namespace for translate already covered case, like this one:
z.string().transform((t)=>t?.trim()).pipe(z.string().min(1));// Message it has to be "invalid_type_received_undefined" and not "inclusive" from zod errors
Basically i would set the error of required to min.
Hi team!
Problem
I'm using
zod
andzod-i18n
for validate some forms. I have two locales from a static file.I would not use a custom
namespace
for translate already covered case, like this one:Basically i would set the error of
required
tomin
.Tried with:
But I didn't have any luck! So, the question is if there is any way to achieve this?
Version
The text was updated successfully, but these errors were encountered: