-
Notifications
You must be signed in to change notification settings - Fork 80
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
Possible to globally set default messages for built-in validators? #41
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is it be possible to programmatically define a default message for one of the built-in validators, such as
required
? That is, rather than defaulting toThis field is required
, can that string be set globally, perhaps at initiation, to something else? (I know that I can do this though data-attributes, but adding a data-attribute to every input becomes tedious pretty quickly, and I'm not seeing an alternative in the docs.)If this is not already possible, perhaps the config object passed to
new Pristine()
could also take an object ofmessages
, with keys there defining each of the built-in validators' default messages?The text was updated successfully, but these errors were encountered: