You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue is kinda related to #311 which contains a solution for translated validation error messages.
In my current use case I have a validation message for a maxDate validator that should contain the date of the validation.
Validation Message: before: 'Muss vor dem {{0}} sein.'
This will add a error message to the FormControl like "Muss vor dem 2020-06-10 sein.".
Problem
I would like to use a angular pipe to transform the value into the expected behaviour. So lets assume that I want a fullTime-Date instead of the current displayed date format.
Changing the validation message to before: 'Muss vor dem {{ 0 | date: "fullTime" }} sein.' does not correctly transform the value, instead the whole phrase is simpy, returned as "Muss vor dem {{ 0 | date: "fullTime" }} sein.".
The text was updated successfully, but these errors were encountered:
@ChrisKaun Thanks For this request. The feature is already developed in another package, soon it will be released, Will let you know once I released the same.
Description
Issue is kinda related to #311 which contains a solution for translated validation error messages.
In my current use case I have a validation message for a
maxDate
validator that should contain the date of the validation.Validator:
RxwebValidators.maxDate({ value: date, messageKey: 'before'})
Validation Message:
before: 'Muss vor dem {{0}} sein.'
This will add a error message to the FormControl like
"Muss vor dem 2020-06-10 sein."
.Problem
I would like to use a angular pipe to transform the value into the expected behaviour. So lets assume that I want a
fullTime
-Date instead of the current displayed date format.Changing the validation message to
before: 'Muss vor dem {{ 0 | date: "fullTime" }} sein.'
does not correctly transform the value, instead the whole phrase is simpy, returned as"Muss vor dem {{ 0 | date: "fullTime" }} sein."
.The text was updated successfully, but these errors were encountered: