Skip to content

Commit

Permalink
Update birthdate requirement and label translation in multiple locales
Browse files Browse the repository at this point in the history
  • Loading branch information
iacopolea committed Aug 20, 2024
1 parent 618c9e7 commit 9cfd9a8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
"Current password": "Current password",
"DATE_OF_BIRTH": {
"BitrhdayPicker": "Date of birth",
"SignupFrom Step1": "Date of birth (dd/mm/yyyy)"
"SignupFrom Step1": "Date of birth"
},
"Dashboard": "Dashboard",
"Date": "Date",
Expand Down
2 changes: 1 addition & 1 deletion src/locales/es/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
"Current password": "Password actual",
"DATE_OF_BIRTH": {
"BitrhdayPicker": "Fecha de nacimiento",
"SignupFrom Step1": "Fecha de nacimiento (dd/mm/aaaa)"
"SignupFrom Step1": "Fecha de nacimiento"
},
"Dashboard": "Dashboard",
"Date": "Fecha",
Expand Down
2 changes: 1 addition & 1 deletion src/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
"Current password": "Mot de passe actuel",
"DATE_OF_BIRTH": {
"BitrhdayPicker": "Date de naissance",
"SignupFrom Step1": "Date de naissance (jj/mm/aaaa)"
"SignupFrom Step1": "Date de naissance"
},
"Dashboard": "Tableau de bord",
"Date": "Date",
Expand Down
2 changes: 1 addition & 1 deletion src/locales/it/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
"Current password": "Password attuale",
"DATE_OF_BIRTH": {
"BitrhdayPicker": "Data di nascita",
"SignupFrom Step1": "Data di nascita (gg/mm/aaaa)"
"SignupFrom Step1": "Data di nascita"
},
"Dashboard": "Dashboard",
"Date": "Data",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const BirthdayInput = () => {
const { t } = useTranslation();
const now = new Date();
const maxDate = new Date(
Date.UTC(now.getFullYear() - 18, now.getMonth(), now.getDate())
Date.UTC(now.getFullYear() - 16, now.getMonth(), now.getDate())
);
function validateDateString(value: string) {
let error;
Expand Down

0 comments on commit 9cfd9a8

Please sign in to comment.