Skip to content

Commit

Permalink
fix: placeholder text added in locales
Browse files Browse the repository at this point in the history
  • Loading branch information
PritishBudhiraja committed Jul 12, 2024
1 parent adbd767 commit fe00e13
Show file tree
Hide file tree
Showing 18 changed files with 19 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/LocaleStrings/ArabicLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
vpaIdInvalidText: `معرف Vpa غير صالح`,
dateofBirthRequiredText: `تاريخ الميلاد مطلوب`,
dateOfBirthInvalidText: `يجب أن يكون العمر أكبر من أو يساوي 18 عامًا`,
dateOfBirthPlaceholderText: `أدخل تاريخ الميلاد`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/CatalanLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
vpaIdInvalidText: `Identificador de VPA no vàlid`,
dateofBirthRequiredText: `Es requereix la data de naixement`,
dateOfBirthInvalidText: `L'edat ha de ser igual o superior a 18 anys`,
dateOfBirthPlaceholderText: `Introdueix la data de naixement`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/DeutschLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
vpaIdInvalidText: `Ungültige VPA-ID`,
dateofBirthRequiredText: `Geburtsdatum ist erforderlich`,
dateOfBirthInvalidText: `Das Alter sollte 18 Jahre oder älter sein`,
dateOfBirthPlaceholderText: `Geben Sie das Geburtsdatum ein`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/DutchLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
vpaIdInvalidText: `Ongeldige Vpa-ID`,
dateofBirthRequiredText: `Geboortedatum is vereist`,
dateOfBirthInvalidText: `De leeftijd moet groter of gelijk zijn aan 18 jaar`,
dateOfBirthPlaceholderText: `Voer geboortedatum in`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/EnglishGBLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
vpaIdInvalidText: `Invalid Vpa Id address`,
dateofBirthRequiredText: `Date of birth is required`,
dateOfBirthInvalidText: `Age should be greater than or equal to 18 years`,
dateOfBirthPlaceholderText: `Enter Date of Birth`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/EnglishLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
vpaIdInvalidText: "Invalid Vpa Id address",
dateofBirthRequiredText: `Date of birth is required`,
dateOfBirthInvalidText: `Age should be greater than or equal to 18 years`,
dateOfBirthPlaceholderText: `Enter Date of Birth`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/FrenchBelgiumLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
vpaIdInvalidText: `Identifiant Vpa invalide`,
dateofBirthRequiredText: `La date de naissance est requise`,
dateOfBirthInvalidText: `L'âge doit être supérieur ou égal à 18 ans`,
dateOfBirthPlaceholderText: `Entrez la date de naissance`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/FrenchLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
vpaIdInvalidText: `Identifiant Vpa invalide`,
dateofBirthRequiredText: `La date de naissance est requise`,
dateOfBirthInvalidText: `L'âge doit être supérieur ou égal à 18 ans`,
dateOfBirthPlaceholderText: `Entrez la date de naissance`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/HebrewLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
vpaIdInvalidText: `מזהה VPA לא חוקי`,
dateofBirthRequiredText: `תאריך לידה נדרש`,
dateOfBirthInvalidText: `הגיל צריך להיות גדול או שווה ל-18 שנים`,
dateOfBirthPlaceholderText: `הכנס תאריך לידה`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/ItalianLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
vpaIdInvalidText: `ID Vpa non valido`,
dateofBirthRequiredText: `La data di nascita è obbligatoria`,
dateOfBirthInvalidText: `L'età deve essere maggiore o uguale a 18 anni`,
dateOfBirthPlaceholderText: `Inserisci la data di nascita`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/JapaneseLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
vpaIdInvalidText: `無効な VPA ID`,
dateofBirthRequiredText: `生年月日が必要です`,
dateOfBirthInvalidText: `年齢は18歳以上である必要があります`,
dateOfBirthPlaceholderText: `生年月日を入力してください`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/LocaleStringTypes.res
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,5 @@ type localeStrings = {
vpaIdInvalidText: string,
dateofBirthRequiredText: string,
dateOfBirthInvalidText: string,
dateOfBirthPlaceholderText: string,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/PolishLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
vpaIdInvalidText: `Nieprawidłowy identyfikator Vpa`,
dateofBirthRequiredText: `Data urodzenia jest wymagana`,
dateOfBirthInvalidText: `Wiek powinien być większy lub równy 18 lat`,
dateOfBirthPlaceholderText: `Wprowadź datę urodzenia`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/PortugueseLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
vpaIdInvalidText: `ID Vpa inválido`,
dateofBirthRequiredText: `Data de nascimento é obrigatória`,
dateOfBirthInvalidText: `A idade deve ser maior ou igual a 18 anos`,
dateOfBirthPlaceholderText: `Insira a data de nascimento`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/RussianLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
vpaIdInvalidText: `Неверный идентификатор VPA`,
dateofBirthRequiredText: `Дата рождения обязательна`,
dateOfBirthInvalidText: `Возраст должен быть не меньше 18 лет`,
dateOfBirthPlaceholderText: `Введите дату рождения`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/SpanishLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
vpaIdInvalidText: `ID de Vpa no válido`,
dateofBirthRequiredText: `Se requiere la fecha de nacimiento`,
dateOfBirthInvalidText: `La edad debe ser mayor o igual a 18 años`,
dateOfBirthPlaceholderText: `Introduzca la fecha de nacimiento`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/SwedishLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
vpaIdInvalidText: `Ogiltigt Vpa-ID`,
dateofBirthRequiredText: `Födelsedatum krävs`,
dateOfBirthInvalidText: `Åldern bör vara större än eller lika med 18 år`,
dateOfBirthPlaceholderText: `Ange födelsedatum`,
}
4 changes: 2 additions & 2 deletions src/Payments/DateOfBirth.res
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ let make = () => {
icon={<Icon name="calander" size=13 className="!px-[6px] !py-[10px]" />}
className="w-full border border-gray-300 rounded p-2"
selected={selectedDate}
onChange={date => onChange(date)}
onChange
dateFormat="dd-MM-yyyy"
wrapperClassName="datepicker"
shouldCloseOnSelect=true
placeholderText="Enter Date of Birth"
placeholderText={localeString.dateOfBirthPlaceholderText}
renderCustomHeader={val => {
<div className="flex gap-4 items-center justify-center m-2">
<select
Expand Down

0 comments on commit fe00e13

Please sign in to comment.