UNPKG

verificator

Version:

Client and server-side validation JavaScript library

2 lines (1 loc) 5.15 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e.VerificatorLocale=e.VerificatorLocale||{},e.VerificatorLocale.en={}))}(this,function(e){"use strict";e.messages={accepted:function(e){return"The "+e.attribute+" must be accepted."},after:function(e){return"The "+e.attribute+" must be a date after "+e.parameters[0]+"."},after_or_equal:function(e){return"The "+e.attribute+" must be a date after or equal to "+e.parameters[0]+"."},alpha:function(e){return"The "+e.attribute+" may only contain letters."},alpha_dash:function(e){return"The "+e.attribute+" may only contain letters, numbers, and dashes."},alpha_num:function(e){return"The "+e.attribute+" may only contain letters and numbers."},array:function(e){return"The "+e.attribute+" must be an array."},before:function(e){return"The "+e.attribute+" must be a date before "+e.parameters[0]+"."},before_or_equal:function(e){return"The "+e.attribute+" must be a date before or equal to "+e.parameters[0]+"."},"between:numeric":function(e){var t=e.parameters;return"The "+e.attribute+" must be between "+t[0]+" and "+t[1]+"."},"between:string":function(e){var t=e.parameters;return"The "+e.attribute+" must be between "+t[0]+" and "+t[1]+" characters."},"between:array":function(e){var t=e.parameters;return"The "+e.attribute+" must have between "+t[0]+" and "+t[1]+" items."},boolean:function(e){return"The "+e.attribute+" field must be true or false."},confirmed:function(e){return"The "+e.attribute+" confirmation does not match."},date:function(e){return"The "+e.attribute+" is not a valid date."},date_equals:function(e){return"The "+e.attribute+" must be a date equal to "+e.parameters[0]+"."},date_format:function(e){return"The "+e.attribute+" does not match the format "+e.parameters[0]+"."},different:function(e){return"The "+e.attribute+" and "+e.parameters[0]+" must be different."},digits:function(e){return"The "+e.attribute+" must be "+e.parameters[0]+" digits."},digits_between:function(e){var t=e.parameters;return"The "+e.attribute+" must be between "+t[0]+" and "+t[1]+" digits."},distinct:function(e){return"The "+e.attribute+" field has a duplicate value."},email:function(e){return"The "+e.attribute+" must be a valid email address."},filled:function(e){return"The "+e.attribute+" field must have a value."},in:function(e){return"The selected "+e.attribute+" is invalid."},in_array:function(e){return"The "+e.attribute+" field does not exist in "+e.parameters[0]+"."},integer:function(e){return"The "+e.attribute+" must be an integer."},ip:function(e){return"The "+e.attribute+" must be a valid IP address."},ipv4:function(e){return"The "+e.attribute+" must be a valid IPv4 address."},ipv6:function(e){return"The "+e.attribute+" must be a valid IPv6 address."},json:function(e){return"The "+e.attribute+" must be a valid JSON string."},"max:numeric":function(e){return"The "+e.attribute+" may not be greater than "+e.parameters[0]+"."},"max:string":function(e){return"The "+e.attribute+" may not be greater than "+e.parameters[0]+" characters."},"max:array":function(e){return"The "+e.attribute+" may not have more than "+e.parameters[0]+" items."},"min:numeric":function(e){return"The "+e.attribute+" must be at least "+e.parameters[0]+"."},"min:string":function(e){return"The "+e.attribute+" must be at least "+e.parameters[0]+" characters."},"min:array":function(e){return"The "+e.attribute+" must have at least "+e.parameters[0]+" items."},not_in:function(e){return"The selected "+e.attribute+" is invalid."},numeric:function(e){return"The "+e.attribute+" must be a number."},present:function(e){return"The "+e.attribute+" field must be present."},regex:function(e){return"The "+e.attribute+" format is invalid."},required:function(e){return"The "+e.attribute+" field is required."},required_if:function(e){var t=e.parameters;return"The "+e.attribute+" field is required when "+t[0]+" is "+t[1]+"."},required_unless:function(e){var t=e.parameters;return"The "+e.attribute+" field is required unless "+t[0]+" is in "+t[1]+"."},required_with:function(e){return"The "+e.attribute+" field is required when "+e.parameters.join(" / ")+" is present."},required_with_all:function(e){return"The "+e.attribute+" field is required when "+e.parameters.join(" / ")+" is present."},required_without:function(e){return"The "+e.attribute+" field is required when "+e.parameters.join(" / ")+" is not present."},required_without_all:function(e){return"The "+e.attribute+" field is required when none of "+e.parameters.join(" / ")+" are present."},same:function(e){return"The "+e.attribute+" and "+e.parameters[0]+" must match."},"size:numeric":function(e){return"The "+e.attribute+" must be "+e.parameters[0]+"."},"size:string":function(e){return"The "+e.attribute+" must be "+e.parameters[0]+" characters."},"size:array":function(e){return"The "+e.attribute+" must contain "+e.parameters[0]+" items."},string:function(e){return"The "+e.attribute+" must be a string."},url:function(e){return"The "+e.attribute+" format is invalid."}},e.attributes={},Object.defineProperty(e,"__esModule",{value:!0})});