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

localization validator #15

Closed
wormen opened this issue Jul 3, 2016 · 6 comments
Closed

localization validator #15

wormen opened this issue Jul 3, 2016 · 6 comments

Comments

@wormen
Copy link

wormen commented Jul 3, 2016

How can I transfer localization for a validator in the component?

@icebob
Copy link
Member

icebob commented Jul 4, 2016

Currently you can't. I will add resources to validator

@wormen
Copy link
Author

wormen commented Jul 4, 2016

and when it will be?

@icebob
Copy link
Member

icebob commented Jul 4, 2016

Some days

@icebob
Copy link
Member

icebob commented Jul 7, 2016

Can be change validation error messages:

            // Localize validate errors
            VueFormGenerator.validators.resources.fieldIsRequired = "Ezt a mezőt kötelező kitölteni!";
            VueFormGenerator.validators.resources.textTooSmall = "A szöveg túl rövid! Jelenleg: {0}, minimum: {1}";

@icebob icebob closed this as completed Jul 7, 2016
@wormen
Copy link
Author

wormen commented Jul 16, 2016

using your example, I got error
Uncaught TypeError: Cannot set property 'fieldIsRequired' of undefined

here is the code

VueFormGenerator.validators.resources.fieldIsRequired = "Полу обязательно для заполнения!";

@CorentinN
Copy link

CorentinN commented Oct 16, 2018

I manage to modify the error messages like this
validators.resources.fieldIsRequired= "Your new error message";

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

No branches or pull requests

3 participants