colinhacks / zod

TypeScript-first schema validation with static type inference
https://zod.dev
MIT License
33.09k stars 1.15k forks source link

Add de, es, fr, pt-br, pt-pt locales #3637

Closed ababol closed 2 months ago

ababol commented 2 months ago

Add locales

ababol commented 2 months ago

@colinhacks I just made some adjustments to the French translations and force-pushed on my branch (I am French).

I forgot to mention that I based my translations on https://github.com/aiji42/zod-i18n - big thanks 🙏 to them!

I've used Claude to convert the JSON translation file from zod-i18n to an errorMap (v4) format as Zod requires. I'm saying this to highlight the fact that I don't want to take credit, but I would be happy to help if you want me to do the same for the other languages! Thanks for your amazing library, by the way!!

colinhacks commented 2 months ago

Wow this is amazing! I'll merge this in and probably cherrypick this into main as well. Thanks!

ababol commented 1 month ago

@colinhacks I've made another branch for you to be able to cherry-pick https://github.com/ababol/zod/commit/6dc637d45a638b6d4de3bc755c38865248bea86d

Those ones are compatible with zod v3.