created birth date validator

This commit is contained in:
dinsmol 2021-07-14 12:40:49 +03:00
parent 33a855fbe7
commit addeebfeb3
6 changed files with 32 additions and 34 deletions

View file

@ -8,12 +8,6 @@ en:
valid_ident: >-
Ident update is not allowed.
Consider creating new contact object
valid_ident_date_format: >-
Ident update is not allowed.
Date format is invalid
valid_ident_date_range: >-
Ident update is not allowed.
Age must be over 0 and under 150
ident_update: >-
Only ident type and country can be updated in case of invalid ident.
Please create new contact object to update ident code

View file

@ -9,3 +9,4 @@ en:
code:
invalid_national_id: does not conform to national identification number format of %{country}
invalid_reg_no: does not conform to registration number format of %{country}
invalid_birth_date: Birth date is invalid, age must be over 0 and under 150