-
-
Notifications
You must be signed in to change notification settings - Fork 137
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Clear and concise description of the problem
Currently, to get i18n translations for validation errors, developers must explicitly add message: i18nValidationMessage('...') to every validation decorator. This creates unnecessary boilerplate and is error-prone when adding new validations.
Suggested solution
Extend I18nValidationExceptionFilter to automatically translate default validation messages without requiring explicit message in decorators.
Current (verbose):
@IsEmail({}, { message: i18nValidationMessage('validation.EMAIL') })
email: string;
Desired (clean):
@IsEmail() // Auto-translated based on validator name
email: string;
Alternative
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request