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

Error Messages in Spanish #177

Open
alfredolucomav opened this issue Feb 27, 2020 · 4 comments
Open

Error Messages in Spanish #177

alfredolucomav opened this issue Feb 27, 2020 · 4 comments

Comments

@alfredolucomav
Copy link

Hello there,

I was wondering if it's possible to get error messages in spanish. How can I do that?

Best Regards

@alfredolucomav
Copy link
Author

Anybody can help me with that?

@freeall
Copy link
Collaborator

freeall commented Mar 12, 2020

I think you'll have to find a way to translate it yourself.

Maybe something like this? https://github.com/matheuss/google-translate-api

@alfredolucomav
Copy link
Author

Hi @freeall ,

But I can't set a custom message for each property from schema, right? Or may I have that possibility ?

Best Regards

@Gameghostify
Copy link

I think having the ability to translate error messages would be great as well.

Obviously an i18n implementation is out of scope for this project, but what if - instead of already-translated error messages - error "keys" or IDs were returned?

For example, instead of just

{ message: "has less length than allowed" }

we would get something like this:

{ message: "has less length than allowed", key: "MinLength" }
// or "LessThanMinLength", "under_min_length", "minLength", ...

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

No branches or pull requests

3 participants