codegram / date_validator

A simple, ORM agnostic, Ruby >=2.2 compatible date validator for Rails, based on ActiveModel.
http://thoughts.codegram.com/date-validation-with-rails-3
MIT License
495 stars 82 forks source link

Handle attribute i18n gender #89

Open vpiau opened 2 years ago

vpiau commented 2 years ago

In French, a date is a feminine noun and chances are that the name of the validated attribute contains _date.

In this case, the correct translation for below keys are :

date_after_or_equal_to: "doit être supérieure ou égal à %{date}"

date_before_or_equal_to: "doit être inférieure ou égal à %{date}"

felipepodesta commented 2 years ago

+1