Skip to content

Commit

Permalink
Add: yearOfBirth parent label in UserDetails
Browse files Browse the repository at this point in the history
  • Loading branch information
georgipavlov-7DIGIT committed Nov 1, 2024
1 parent 3eba34c commit 395f011
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
4 changes: 4 additions & 0 deletions src/blocks/UserDetails/UserDetails.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ export const UserDetails = ({
) {
years.push({ label: year.toString(), value: year });
}
years.push({
label: t("parent"),
value: "parent",
});
return years.reverse();
}, [countriesData]);

Expand Down
3 changes: 2 additions & 1 deletion src/blocks/UserDetails/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@
"success_message": "Profile updated successfully",
"sex_placeholder": "Enter your sex",
"year_of_birth_placeholder": "Enter your year of birth",
"living_place_placeholder": "Enter your living place"
"living_place_placeholder": "Enter your living place",
"parent": "Parent"
}
3 changes: 2 additions & 1 deletion src/blocks/UserDetails/locales/kk.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@
"success_message": "Парақша сәтті жаңартылды",
"sex_placeholder": "Жынысыңызды енгізіңіз",
"year_of_birth_placeholder": "Туған жылыңызды енгізіңіз",
"living_place_placeholder": "Тұрғылықты жеріңізді енгізіңіз"
"living_place_placeholder": "Тұрғылықты жеріңізді енгізіңіз",
"parent": "Ата-ана"
}
3 changes: 2 additions & 1 deletion src/blocks/UserDetails/locales/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@
"success_message": "Profil został pomyślnie zaktualizowany",
"sex_placeholder": "Wprowadź swoją płeć",
"year_of_birth_placeholder": "Wprowadź swój rok urodzenia",
"living_place_placeholder": "Wprowadź swoje miejsce zamieszkania"
"living_place_placeholder": "Wprowadź swoje miejsce zamieszkania",
"parent": "Rodzic"
}
3 changes: 2 additions & 1 deletion src/blocks/UserDetails/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@
"success_message": "Профиль успешно обновлен",
"sex_placeholder": "Введите свой пол",
"year_of_birth_placeholder": "Введите свой год рождения",
"living_place_placeholder": "Введите место вашего жительства"
"living_place_placeholder": "Введите место вашего жительства",
"parent": "Родитель"
}
3 changes: 2 additions & 1 deletion src/blocks/UserDetails/locales/uk.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@
"success_message": "Профіль оновлено",
"sex_placeholder": "Введіть стать",
"year_of_birth_placeholder": "Введіть рік народження",
"living_place_placeholder": "Введіть місце проживання"
"living_place_placeholder": "Введіть місце проживання",
"parent": "Батько"
}

0 comments on commit 395f011

Please sign in to comment.