diff --git a/src/LocaleStrings/ArabicLocale.res b/src/LocaleStrings/ArabicLocale.res index 525cc7c19..7d76d48b2 100644 --- a/src/LocaleStrings/ArabicLocale.res +++ b/src/LocaleStrings/ArabicLocale.res @@ -90,4 +90,5 @@ let localeStrings: LocaleStringTypes.localeStrings = { vpaIdInvalidText: `معرف Vpa غير صالح`, dateofBirthRequiredText: `تاريخ الميلاد مطلوب`, dateOfBirthInvalidText: `يجب أن يكون العمر أكبر من أو يساوي 18 عامًا`, + dateOfBirthPlaceholderText: `أدخل تاريخ الميلاد`, } diff --git a/src/LocaleStrings/CatalanLocale.res b/src/LocaleStrings/CatalanLocale.res index 0987b153d..413718595 100644 --- a/src/LocaleStrings/CatalanLocale.res +++ b/src/LocaleStrings/CatalanLocale.res @@ -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`, } diff --git a/src/LocaleStrings/DeutschLocale.res b/src/LocaleStrings/DeutschLocale.res index da994bb0d..ea64e3395 100644 --- a/src/LocaleStrings/DeutschLocale.res +++ b/src/LocaleStrings/DeutschLocale.res @@ -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`, } diff --git a/src/LocaleStrings/DutchLocale.res b/src/LocaleStrings/DutchLocale.res index 42dec5ed9..d9c0d2e3d 100644 --- a/src/LocaleStrings/DutchLocale.res +++ b/src/LocaleStrings/DutchLocale.res @@ -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`, } diff --git a/src/LocaleStrings/EnglishGBLocale.res b/src/LocaleStrings/EnglishGBLocale.res index e999bd58b..8f9b4afd5 100644 --- a/src/LocaleStrings/EnglishGBLocale.res +++ b/src/LocaleStrings/EnglishGBLocale.res @@ -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`, } diff --git a/src/LocaleStrings/EnglishLocale.res b/src/LocaleStrings/EnglishLocale.res index 711e5f6a4..5175f0db4 100644 --- a/src/LocaleStrings/EnglishLocale.res +++ b/src/LocaleStrings/EnglishLocale.res @@ -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`, } diff --git a/src/LocaleStrings/FrenchBelgiumLocale.res b/src/LocaleStrings/FrenchBelgiumLocale.res index b8f1deec4..235f555ae 100644 --- a/src/LocaleStrings/FrenchBelgiumLocale.res +++ b/src/LocaleStrings/FrenchBelgiumLocale.res @@ -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`, } diff --git a/src/LocaleStrings/FrenchLocale.res b/src/LocaleStrings/FrenchLocale.res index be70c8024..ab914daa6 100644 --- a/src/LocaleStrings/FrenchLocale.res +++ b/src/LocaleStrings/FrenchLocale.res @@ -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`, } diff --git a/src/LocaleStrings/HebrewLocale.res b/src/LocaleStrings/HebrewLocale.res index 8c908946d..ceb94bf9c 100644 --- a/src/LocaleStrings/HebrewLocale.res +++ b/src/LocaleStrings/HebrewLocale.res @@ -90,4 +90,5 @@ let localeStrings: LocaleStringTypes.localeStrings = { vpaIdInvalidText: `מזהה VPA לא חוקי`, dateofBirthRequiredText: `תאריך לידה נדרש`, dateOfBirthInvalidText: `הגיל צריך להיות גדול או שווה ל-18 שנים`, + dateOfBirthPlaceholderText: `הכנס תאריך לידה`, } diff --git a/src/LocaleStrings/ItalianLocale.res b/src/LocaleStrings/ItalianLocale.res index 8681af054..01855ae3f 100644 --- a/src/LocaleStrings/ItalianLocale.res +++ b/src/LocaleStrings/ItalianLocale.res @@ -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`, } diff --git a/src/LocaleStrings/JapaneseLocale.res b/src/LocaleStrings/JapaneseLocale.res index 9ff6302d1..08f4802dc 100644 --- a/src/LocaleStrings/JapaneseLocale.res +++ b/src/LocaleStrings/JapaneseLocale.res @@ -90,4 +90,5 @@ let localeStrings: LocaleStringTypes.localeStrings = { vpaIdInvalidText: `無効な VPA ID`, dateofBirthRequiredText: `生年月日が必要です`, dateOfBirthInvalidText: `年齢は18歳以上である必要があります`, + dateOfBirthPlaceholderText: `生年月日を入力してください`, } diff --git a/src/LocaleStrings/LocaleStringTypes.res b/src/LocaleStrings/LocaleStringTypes.res index c0b72a0f2..36c8d69cc 100644 --- a/src/LocaleStrings/LocaleStringTypes.res +++ b/src/LocaleStrings/LocaleStringTypes.res @@ -81,4 +81,5 @@ type localeStrings = { vpaIdInvalidText: string, dateofBirthRequiredText: string, dateOfBirthInvalidText: string, + dateOfBirthPlaceholderText: string, } diff --git a/src/LocaleStrings/PolishLocale.res b/src/LocaleStrings/PolishLocale.res index 5745c8c06..d2f14403c 100644 --- a/src/LocaleStrings/PolishLocale.res +++ b/src/LocaleStrings/PolishLocale.res @@ -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`, } diff --git a/src/LocaleStrings/PortugueseLocale.res b/src/LocaleStrings/PortugueseLocale.res index a2c42e408..308f2558b 100644 --- a/src/LocaleStrings/PortugueseLocale.res +++ b/src/LocaleStrings/PortugueseLocale.res @@ -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`, } diff --git a/src/LocaleStrings/RussianLocale.res b/src/LocaleStrings/RussianLocale.res index 47cd05d93..d5dff2cdf 100644 --- a/src/LocaleStrings/RussianLocale.res +++ b/src/LocaleStrings/RussianLocale.res @@ -94,4 +94,5 @@ let localeStrings: LocaleStringTypes.localeStrings = { vpaIdInvalidText: `Неверный идентификатор VPA`, dateofBirthRequiredText: `Дата рождения обязательна`, dateOfBirthInvalidText: `Возраст должен быть не меньше 18 лет`, + dateOfBirthPlaceholderText: `Введите дату рождения`, } diff --git a/src/LocaleStrings/SpanishLocale.res b/src/LocaleStrings/SpanishLocale.res index b028616b2..0e0a08b31 100644 --- a/src/LocaleStrings/SpanishLocale.res +++ b/src/LocaleStrings/SpanishLocale.res @@ -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`, } diff --git a/src/LocaleStrings/SwedishLocale.res b/src/LocaleStrings/SwedishLocale.res index 0aa20c76a..c60d5c402 100644 --- a/src/LocaleStrings/SwedishLocale.res +++ b/src/LocaleStrings/SwedishLocale.res @@ -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`, } diff --git a/src/Payments/DateOfBirth.res b/src/Payments/DateOfBirth.res index 85443f8ce..c718d3db4 100644 --- a/src/Payments/DateOfBirth.res +++ b/src/Payments/DateOfBirth.res @@ -68,11 +68,11 @@ let make = () => { icon={} 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 => {