Skip to content

Instantly share code, notes, and snippets.

@loorlab
Forked from vicainelli/readme.md
Created July 3, 2019 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loorlab/ad5e1521fcf7a7bc2bbe7361b8825a44 to your computer and use it in GitHub Desktop.
Save loorlab/ad5e1521fcf7a7bc2bbe7361b8825a44 to your computer and use it in GitHub Desktop.
Translate Mailchimp messages

Translate Mailchimp messages

/**
To customize your embedded form validation messages, place this code before the closing script tag.
*/
$mcj.extend($mcj.validator.messages, {
required: "This field is required.",
remote: "Please fix this field.",
email: "Please enter a valid email address.",
url: "Please enter a valid URL.",
date: "Please enter a valid date.",
dateISO: "Please enter a valid date (ISO).",
number: "Please enter a valid number.",
digits: "Please enter only digits.",
creditcard: "Please enter a valid credit card number.",
equalTo: "Please enter the same value again.",
accept: "Please enter a value with a valid extension.",
maxlength: $mcj.validator.format("Please enter no more than {0} characters."),
minlength: $mcj.validator.format("Please enter at least {0} characters."),
rangelength: $mcj.validator.format("Please enter a value between {0} and {1} characters long."),
range: $mcj.validator.format("Please enter a value between {0} and {1}."),
max: $mcj.validator.format("Please enter a value less than or equal to {0}."),
min: $mcj.validator.format("Please enter a value greater than or equal to {0}."),
mc_birthday: "Please enter a valid month and day.",
mc_date: "Please enter a valid date.",
mc_phone: "Please enter a valid phone number.",
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment