Creates a new I18nMessagesProvider instance
The base prefix for translation keys (e.g., 'validation')
The I18n instance to use for message formatting and translation
Retrieves and formats a validation message with field-specific and rule-specific fallbacks
Message resolution priority:
{prefix}.messages.{fieldPath}.{rule}{prefix}.messages.{rule}The default validation message to use as final fallback
The validation rule name (e.g., 'required', 'email')
The field context containing name and path information
Optionalmeta: Record<string, any>
Optional metadata for message interpolation (e.g., otherField, min, max)
Formatted validation message string
Translates a field name using the configured prefix.
VineJS messages provider to read validation messages from I18n translations. Provides field name translations and validation error messages with fallback support.
Example