locale: z.string().catch(navigator.language).pipe(z.enum(locales)).catch('en'),

zod is good.

Reply to this note

Please Login to reply.

Discussion

Evening, ‘lex.

Oh Superman, where are you now?

https://www.youtube.com/watch?v=Yq7FKO5DlV0

zod bless