Build the translation map.
the created map.
Map the validator name message towards an error message.
the name of the validator
the error message
Optional
elementType: "select" | "textarea" | "text" | "radio" | "checkbox"limit to a specific element type
Validators that coexists on same element can have a combined message,
i.e. if a element have the required
and the personnummer
validator
the required error message could be combined with
mapCombined('required','personnummer', 'You must enter a social security number!');
.
the name of the validator
the name of the combined validator
the error message
Optional
elementType: "select" | "textarea" | "text" | "radio" | "checkbox"limit to a specific element type
Static
createCreate a new builder.
Builder to create validation error message map.