Translating zod error messages with next-intl and make them reusable for server action value types
Unanswered
MarkMiklos posted this in #help-forum
I would like to translate zod error messages using next-intl, but I also want to use the schema for type validation in server actions, how can i achieve this?
I tried this solution https://stackoverflow.com/questions/77367244/a-solution-to-translating-zod-error-messages-using-next-intl, but it doesn't seem to work for me, because types gives me error in server actions
I tried this solution https://stackoverflow.com/questions/77367244/a-solution-to-translating-zod-error-messages-using-next-intl, but it doesn't seem to work for me, because types gives me error in server actions