Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
[5.7] Show displayable values for relative dates in validation error messages #27341
When the placeholders are replaced in the validation messages, the
This is an issue when the locale is other than english: e.g. the
This commit allows for developers to specify custom translation for these values.
'values' => [ 'date' => [ 'tomorrow' => 'demain', ], ],
So now the validation message will be translated to