37 lines
1.4 KiB
JavaScript
37 lines
1.4 KiB
JavaScript
/*!
|
|
* Parsleyjs
|
|
* Guillaume Potier - <guillaume@wisembly.com>
|
|
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
|
|
* MIT Licensed
|
|
*
|
|
*/
|
|
!(function (factory) {
|
|
if (typeof define === 'function' && define.amd) {
|
|
// AMD. Register as an anonymous module depending on jQuery.
|
|
define(['jquery'], factory);
|
|
} else if (typeof exports === 'object') {
|
|
// Node/CommonJS
|
|
module.exports = factory(require('jquery'));
|
|
} else {
|
|
// Register plugin with global jQuery object.
|
|
factory(jQuery);
|
|
}
|
|
}(function ($) {
|
|
// small hack for requirejs if jquery is loaded through map and not path
|
|
// see http://requirejs.org/docs/jquery.html
|
|
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
|
|
$ = window.jQuery;
|
|
window.ParsleyConfig = window.ParsleyConfig || {};
|
|
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
|
|
window.ParsleyConfig.i18n.en = jQuery.extend(window.ParsleyConfig.i18n.en || {}, {
|
|
dateiso: "This value should be a valid date (YYYY-MM-DD).",
|
|
minwords: "This value is too short. It should have %s words or more.",
|
|
maxwords: "This value is too long. It should have %s words or fewer.",
|
|
words: "This value length is invalid. It should be between %s and %s words long.",
|
|
gt: "This value should be greater.",
|
|
gte: "This value should be greater or equal.",
|
|
lt: "This value should be less.",
|
|
lte: "This value should be less or equal.",
|
|
notequalto: "This value should be different."
|
|
});
|
|
})); |