@resk/core
Version:
An innovative TypeScript framework that empowers developers to build applications with a fully decorator-based architecture for efficient resource management. By combining the power of decorators with a resource-oriented design, DecorRes enhances code cla
1 lines • 2.35 kB
JavaScript
'use strict';var i18n=require('../i18n');i18n.I18nClass.RegisterTranslations({en:{validator:{separators:{multiple:", ",single:", "},failedForNFields:{one:"Validation failed for one field",other:"Validation failed for %{count} fields"},failedForNItems:{one:"Validation failed for one item",other:"Validation failed for %{count} items"},invalidRule:"Invalid validation rule: %{rule}",invalidMessage:"Invalid validation message for rule %{rule}; error validating value %{value}",required:"This field is required",minLength:"This field must be at least %{minLength} characters long",maxLength:"This field must be at most %{maxLength} characters long",minValue:"This field must be at least %{minValue}",maxValue:"This field must be at most %{maxValue}",pattern:"This field must match the pattern %{pattern}",email:"This field must be a valid email address",url:"This field must be a valid URL",date:"This field must be a valid date",time:"This field must be a valid time",datetime:"This field must be a valid date and time","datetime-local":"This field must be a valid date and time",month:"This field must be a valid month",week:"This field must be a valid week",number:"This field must be a valid number",integer:"This field must be a valid integer",float:"This field must be a valid float",fileName:"This field must be a valid file name",isNumber:"This field must be a valid number",isNonNullString:"This field must be a non null string",length:"This field must be exactly %{length} characters long",lengthRange:"This field must be between %{minLength} and %{maxLength} characters long",numberLessThanOrEquals:"This field must be less than or equal to %{ruleParams[0]}",numberLessThan:"This field must be less than %{ruleParams[0]}",numberGreaterThanOrEquals:"This field must be greater than or equal to %{ruleParams[0]}",numberGreaterThan:"This field must be greater than %{ruleParams[0]}",noteEquals:"This field must be different from %{ruleParams[0]}",numberIsDifferentFrom:"This field must be different from %{ruleParams[0]}",numberEquals:"This field must be equal to %{ruleParams[0]}",phoneNumber:"This field must be a valid phone number",emailOrPhoneNumber:"This field must be a valid email or phone number",tests:{entity:{name:"Name",id:"Id",email:"Email",aString:"A String",url:"Url",note:"Note",createdAt:"Created At",updatedAt:"Updated At"}}}}});