Closed adambajguz closed 1 year ago
Similar problem occurs also for collections: size
is used instead of min/max.
... and for numbers (see e.g. MessageKey.Numbers.GreaterThanOrEqualTo).
Thank you @adambajguz , I'll address this bug in the upcoming release.
Fixed. Thank you, @adambajguz .
To ensure that won't happen again, I've added some tests that will validate all placeholders used in the translations.
@adambajguz At first I planned to include it along with #34 in a single release, but the progress on the other feature is so slow (and I'm on the edge of not doing it at all), that I decided to go with this alone in the fix release.
So here it is, v2.4.1.
DateTimeOffsetRules, DateTimeRules, and TimeSpanRules use
min
andmax
argument names but translations usevalue
as a placeholder.EXAMPLE: https://github.com/bartoszlenar/Validot/blob/79ef1cbfe05e6c93bdb79ea27127e037b82a88cf/src/Validot/Rules/TimeSpanRules.cs#L30-L76
https://github.com/bartoszlenar/Validot/blob/79ef1cbfe05e6c93bdb79ea27127e037b82a88cf/src/Validot/Translations/English/EnglishTranslation.cs#L72-L76