diff --git a/src/LocaleStrings/ArabicLocale.res b/src/LocaleStrings/ArabicLocale.res index e86f2914f..525cc7c19 100644 --- a/src/LocaleStrings/ArabicLocale.res +++ b/src/LocaleStrings/ArabicLocale.res @@ -88,4 +88,6 @@ let localeStrings: LocaleStringTypes.localeStrings = { vpaIdLabel: `معرف VPA`, vpaIdEmptyText: `لا يمكن أن يكون معرف Vpa فارغًا`, vpaIdInvalidText: `معرف Vpa غير صالح`, + dateofBirthRequiredText: `تاريخ الميلاد مطلوب`, + dateOfBirthInvalidText: `يجب أن يكون العمر أكبر من أو يساوي 18 عامًا`, } diff --git a/src/LocaleStrings/CatalanLocale.res b/src/LocaleStrings/CatalanLocale.res index d5e3e21b1..0987b153d 100644 --- a/src/LocaleStrings/CatalanLocale.res +++ b/src/LocaleStrings/CatalanLocale.res @@ -88,4 +88,6 @@ let localeStrings: LocaleStringTypes.localeStrings = { vpaIdLabel: `Vpa Id`, vpaIdEmptyText: `L'identificador de Vpa no pot estar buit`, 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`, } diff --git a/src/LocaleStrings/DeutschLocale.res b/src/LocaleStrings/DeutschLocale.res index aa3bf7b45..da994bb0d 100644 --- a/src/LocaleStrings/DeutschLocale.res +++ b/src/LocaleStrings/DeutschLocale.res @@ -88,4 +88,6 @@ let localeStrings: LocaleStringTypes.localeStrings = { vpaIdLabel: `Vpa-ID`, vpaIdEmptyText: `Die VPA-ID darf nicht leer sein`, vpaIdInvalidText: `Ungültige VPA-ID`, + dateofBirthRequiredText: `Geburtsdatum ist erforderlich`, + dateOfBirthInvalidText: `Das Alter sollte 18 Jahre oder älter sein`, } diff --git a/src/LocaleStrings/DutchLocale.res b/src/LocaleStrings/DutchLocale.res index 44b55ea73..42dec5ed9 100644 --- a/src/LocaleStrings/DutchLocale.res +++ b/src/LocaleStrings/DutchLocale.res @@ -88,4 +88,6 @@ let localeStrings: LocaleStringTypes.localeStrings = { vpaIdLabel: `Vpa-id`, vpaIdEmptyText: `Vpa-ID mag niet leeg zijn`, vpaIdInvalidText: `Ongeldige Vpa-ID`, + dateofBirthRequiredText: `Geboortedatum is vereist`, + dateOfBirthInvalidText: `De leeftijd moet groter of gelijk zijn aan 18 jaar`, } diff --git a/src/LocaleStrings/EnglishGBLocale.res b/src/LocaleStrings/EnglishGBLocale.res index 38f9b0d91..e999bd58b 100644 --- a/src/LocaleStrings/EnglishGBLocale.res +++ b/src/LocaleStrings/EnglishGBLocale.res @@ -88,4 +88,6 @@ let localeStrings: LocaleStringTypes.localeStrings = { vpaIdLabel: `Vpa Id`, vpaIdEmptyText: `Vpa Id cannot be empty`, vpaIdInvalidText: `Invalid Vpa Id address`, + dateofBirthRequiredText: `Date of birth is required`, + dateOfBirthInvalidText: `Age should be greater than or equal to 18 years`, } diff --git a/src/LocaleStrings/EnglishLocale.res b/src/LocaleStrings/EnglishLocale.res index 2ada38ccb..711e5f6a4 100644 --- a/src/LocaleStrings/EnglishLocale.res +++ b/src/LocaleStrings/EnglishLocale.res @@ -88,4 +88,6 @@ let localeStrings: LocaleStringTypes.localeStrings = { vpaIdLabel: "Vpa Id", vpaIdEmptyText: "Vpa Id cannot be empty", vpaIdInvalidText: "Invalid Vpa Id address", + dateofBirthRequiredText: `Date of birth is required`, + dateOfBirthInvalidText: `Age should be greater than or equal to 18 years`, } diff --git a/src/LocaleStrings/FrenchBelgiumLocale.res b/src/LocaleStrings/FrenchBelgiumLocale.res index 50a979872..b8f1deec4 100644 --- a/src/LocaleStrings/FrenchBelgiumLocale.res +++ b/src/LocaleStrings/FrenchBelgiumLocale.res @@ -88,4 +88,6 @@ let localeStrings: LocaleStringTypes.localeStrings = { vpaIdLabel: `Identifiant Vpa`, vpaIdEmptyText: `L'identifiant Vpa ne peut pas être vide`, vpaIdInvalidText: `Identifiant Vpa invalide`, + dateofBirthRequiredText: `La date de naissance est requise`, + dateOfBirthInvalidText: `L'âge doit être supérieur ou égal à 18 ans`, } diff --git a/src/LocaleStrings/FrenchLocale.res b/src/LocaleStrings/FrenchLocale.res index 6f477a411..be70c8024 100644 --- a/src/LocaleStrings/FrenchLocale.res +++ b/src/LocaleStrings/FrenchLocale.res @@ -88,4 +88,6 @@ let localeStrings: LocaleStringTypes.localeStrings = { vpaIdLabel: `Identifiant Vpa`, vpaIdEmptyText: `L'identifiant Vpa ne peut pas être vide`, vpaIdInvalidText: `Identifiant Vpa invalide`, + dateofBirthRequiredText: `La date de naissance est requise`, + dateOfBirthInvalidText: `L'âge doit être supérieur ou égal à 18 ans`, } diff --git a/src/LocaleStrings/HebrewLocale.res b/src/LocaleStrings/HebrewLocale.res index a47571807..8c908946d 100644 --- a/src/LocaleStrings/HebrewLocale.res +++ b/src/LocaleStrings/HebrewLocale.res @@ -88,4 +88,6 @@ let localeStrings: LocaleStringTypes.localeStrings = { vpaIdLabel: `מזהה VPA`, vpaIdEmptyText: `מזהה VPA לא יכול להיות ריק`, vpaIdInvalidText: `מזהה VPA לא חוקי`, + dateofBirthRequiredText: `תאריך לידה נדרש`, + dateOfBirthInvalidText: `הגיל צריך להיות גדול או שווה ל-18 שנים`, } diff --git a/src/LocaleStrings/ItalianLocale.res b/src/LocaleStrings/ItalianLocale.res index b0cd1a52a..8681af054 100644 --- a/src/LocaleStrings/ItalianLocale.res +++ b/src/LocaleStrings/ItalianLocale.res @@ -88,4 +88,6 @@ let localeStrings: LocaleStringTypes.localeStrings = { vpaIdLabel: `Codice Vpa`, vpaIdEmptyText: `L'ID Vpa non può essere vuoto`, vpaIdInvalidText: `ID Vpa non valido`, + dateofBirthRequiredText: `La data di nascita è obbligatoria`, + dateOfBirthInvalidText: `L'età deve essere maggiore o uguale a 18 anni`, } diff --git a/src/LocaleStrings/JapaneseLocale.res b/src/LocaleStrings/JapaneseLocale.res index e6ef52df8..9ff6302d1 100644 --- a/src/LocaleStrings/JapaneseLocale.res +++ b/src/LocaleStrings/JapaneseLocale.res @@ -88,4 +88,6 @@ let localeStrings: LocaleStringTypes.localeStrings = { vpaIdLabel: `VPA ID`, vpaIdEmptyText: `VPA ID を空にすることはできません`, vpaIdInvalidText: `無効な VPA ID`, + dateofBirthRequiredText: `生年月日が必要です`, + dateOfBirthInvalidText: `年齢は18歳以上である必要があります`, } diff --git a/src/LocaleStrings/LocaleStringTypes.res b/src/LocaleStrings/LocaleStringTypes.res index 02959934b..c0b72a0f2 100644 --- a/src/LocaleStrings/LocaleStringTypes.res +++ b/src/LocaleStrings/LocaleStringTypes.res @@ -79,4 +79,6 @@ type localeStrings = { vpaIdLabel: string, vpaIdEmptyText: string, vpaIdInvalidText: string, + dateofBirthRequiredText: string, + dateOfBirthInvalidText: string, } diff --git a/src/LocaleStrings/PolishLocale.res b/src/LocaleStrings/PolishLocale.res index 39265917d..5745c8c06 100644 --- a/src/LocaleStrings/PolishLocale.res +++ b/src/LocaleStrings/PolishLocale.res @@ -88,4 +88,6 @@ let localeStrings: LocaleStringTypes.localeStrings = { vpaIdLabel: `Identyfikator Vpa`, vpaIdEmptyText: `Identyfikator Vpa nie może być pusty`, vpaIdInvalidText: `Nieprawidłowy identyfikator Vpa`, + dateofBirthRequiredText: `Data urodzenia jest wymagana`, + dateOfBirthInvalidText: `Wiek powinien być większy lub równy 18 lat`, } diff --git a/src/LocaleStrings/PortugueseLocale.res b/src/LocaleStrings/PortugueseLocale.res index 24f343b89..a2c42e408 100644 --- a/src/LocaleStrings/PortugueseLocale.res +++ b/src/LocaleStrings/PortugueseLocale.res @@ -88,4 +88,6 @@ let localeStrings: LocaleStringTypes.localeStrings = { vpaIdLabel: `ID VPA`, vpaIdEmptyText: `O ID Vpa não pode ficar vazio`, vpaIdInvalidText: `ID Vpa inválido`, + dateofBirthRequiredText: `Data de nascimento é obrigatória`, + dateOfBirthInvalidText: `A idade deve ser maior ou igual a 18 anos`, } diff --git a/src/LocaleStrings/RussianLocale.res b/src/LocaleStrings/RussianLocale.res index 5969a7ad4..47cd05d93 100644 --- a/src/LocaleStrings/RussianLocale.res +++ b/src/LocaleStrings/RussianLocale.res @@ -92,4 +92,6 @@ let localeStrings: LocaleStringTypes.localeStrings = { vpaIdLabel: `Идентификатор ВПА`, vpaIdEmptyText: `Идентификатор VPA не может быть пустым.`, vpaIdInvalidText: `Неверный идентификатор VPA`, + dateofBirthRequiredText: `Дата рождения обязательна`, + dateOfBirthInvalidText: `Возраст должен быть не меньше 18 лет`, } diff --git a/src/LocaleStrings/SpanishLocale.res b/src/LocaleStrings/SpanishLocale.res index 8fd11f1be..b028616b2 100644 --- a/src/LocaleStrings/SpanishLocale.res +++ b/src/LocaleStrings/SpanishLocale.res @@ -88,4 +88,6 @@ let localeStrings: LocaleStringTypes.localeStrings = { vpaIdLabel: `Identificación de Vpa`, vpaIdEmptyText: `El ID de Vpa no puede estar vacío`, 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`, } diff --git a/src/LocaleStrings/SwedishLocale.res b/src/LocaleStrings/SwedishLocale.res index 0cad17fc2..0aa20c76a 100644 --- a/src/LocaleStrings/SwedishLocale.res +++ b/src/LocaleStrings/SwedishLocale.res @@ -88,4 +88,6 @@ let localeStrings: LocaleStringTypes.localeStrings = { vpaIdLabel: `Vpa-id`, vpaIdEmptyText: `Vpa-id får inte vara tomt`, vpaIdInvalidText: `Ogiltigt Vpa-ID`, + dateofBirthRequiredText: `Födelsedatum krävs`, + dateOfBirthInvalidText: `Åldern bör vara större än eller lika med 18 år`, } diff --git a/src/Payments/DateOfBirth.res b/src/Payments/DateOfBirth.res index e846eebf3..85443f8ce 100644 --- a/src/Payments/DateOfBirth.res +++ b/src/Payments/DateOfBirth.res @@ -50,8 +50,8 @@ let make = () => { } let errorString = error - ? "Date of birth is required" - : "Age should be greater than or equal to 18 years" + ? localeString.dateofBirthRequiredText + : localeString.dateOfBirthInvalidText