Show:
formatMessage
(
  • message
  • context
)
String

Regex replace all placeholders with their given context

Parameters:

Returns:

getDescriptionFor
(
  • attribute
  • options
)
String

Get a description for a specific attribute. This is a hook for i18n solutions to retrieve attribute descriptions from a translation

Parameters:

Returns:

getMessageFor
(
  • type
  • context
)
String

Get a message with a given type

Parameters:

Returns:

_regex

RegExp private

Defined in addon/messages.js:9

Regex for matching error message placeholders

defaultDescription

String

Default attribute description if one isnt passed into a validator's options