UNPKG

validatorjs2

Version:

Validation library inspired by Laravel's Validator

41 lines (39 loc) 2.41 kB
require=(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({"./lang/es":[function(require,module,exports){ module.exports = { accepted: 'El campo :attribute debe ser aceptado.', after: 'El campo :attribute debe ser una fecha posterior a :after.', alpha: 'El campo :attribute solo debe contener letras.', alpha_dash: 'El campo :attribute solo debe contener letras, números y guiones.', alpha_num: 'El campo :attribute solo debe contener letras y números.', attributes: {}, between: 'El campo :attribute tiene que estar entre :min - :max.', confirmed: 'La confirmación de :attribute no coincide.', different: 'El campo :attribute y :other deben ser diferentes.', digits: 'El campo :attribute debe tener :digits dígitos.', digits_between: 'El campo :attribute debe tener entre :min y :max dígitos.', email: 'El campo :attribute no es un correo válido.', in: 'El campo :attribute es inválido.', integer: 'El campo :attribute debe ser un número entero.', hex: 'El campo :attribute debe tener formato hexadecimal.', max: { numeric: 'El campo :attribute no debe ser mayor a :max.', string: 'El campo :attribute no debe ser mayor que :max caracteres.' }, min: { numeric: 'El tamaño del campo :attribute debe ser de al menos :min.', string: 'El campo :attribute debe contener al menos :min caracteres.' }, not_in: 'El campo :attribute es inválido.', numeric: 'El campo :attribute debe ser numérico.', present: 'El campo de :attribute debe estar presente (pero puede estar vacío).', regex: 'El formato del campo :attribute es inválido.', required: 'El campo :attribute es obligatorio.', required_if: 'El campo :attribute es obligatorio cuando :other es :value.', same: 'El campo :attribute y :other deben coincidir.', size: { numeric: 'El tamaño del campo :attribute debe ser :size.', string: 'El campo :attribute debe contener :size caracteres.' }, url: 'El formato de :attribute es inválido.' }; },{}]},{},[]);