I am looking for a way of translating Zod error messages when using the next-intl package. Perhaps an alternative to Zod-i18n, instead of i18next.
The reasons for picking next-intl instead of i18next are related to NextJS app router so switching to i18next really isn't an option in this case.
EDIT: I am really looking to translate the default Zod messages, not passing in custom translations per refinement. Bulk translations are what I'm after.
You can pass the translation as an argument.
en.json:
schemas/index.ts:
in client code (form):
in server action code: