Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jul 18, 2024
Merged

Conversation

ababol
Copy link

@ababol ababol commented Jul 12, 2024

Add locales

  • packages/zod/src/locales/de.ts
  • packages/zod/src/locales/es.ts
  • packages/zod/src/locales/fr.ts
  • packages/zod/src/locales/pt-br.ts
  • packages/zod/src/locales/pt-pt.ts

@ababol
Copy link
Author

ababol commented Jul 15, 2024

@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
Copy link
Owner

colinhacks commented Jul 17, 2024

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

@colinhacks colinhacks merged commit c6bb75f into colinhacks:v4 Jul 18, 2024
3 checks passed
@ababol
Copy link
Author

ababol commented Jul 25, 2024

@colinhacks I've made another branch for you to be able to cherry-pick ababol@6dc637d

Those ones are compatible with zod v3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants