Skip to content

Commit

Permalink
fix: locale added
Browse files Browse the repository at this point in the history
  • Loading branch information
PritishBudhiraja committed Jul 12, 2024
1 parent 41cd14c commit adbd767
Show file tree
Hide file tree
Showing 18 changed files with 36 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/LocaleStrings/ArabicLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,6 @@ let localeStrings: LocaleStringTypes.localeStrings = {
vpaIdLabel: `معرف VPA`,
vpaIdEmptyText: `لا يمكن أن يكون معرف Vpa فارغًا`,
vpaIdInvalidText: `معرف Vpa غير صالح`,
dateofBirthRequiredText: `تاريخ الميلاد مطلوب`,
dateOfBirthInvalidText: `يجب أن يكون العمر أكبر من أو يساوي 18 عامًا`,
}
2 changes: 2 additions & 0 deletions src/LocaleStrings/CatalanLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
}
2 changes: 2 additions & 0 deletions src/LocaleStrings/DeutschLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
}
2 changes: 2 additions & 0 deletions src/LocaleStrings/DutchLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
}
2 changes: 2 additions & 0 deletions src/LocaleStrings/EnglishGBLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
}
2 changes: 2 additions & 0 deletions src/LocaleStrings/EnglishLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
}
2 changes: 2 additions & 0 deletions src/LocaleStrings/FrenchBelgiumLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
}
2 changes: 2 additions & 0 deletions src/LocaleStrings/FrenchLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
}
2 changes: 2 additions & 0 deletions src/LocaleStrings/HebrewLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,6 @@ let localeStrings: LocaleStringTypes.localeStrings = {
vpaIdLabel: `מזהה VPA`,
vpaIdEmptyText: `מזהה VPA לא יכול להיות ריק`,
vpaIdInvalidText: `מזהה VPA לא חוקי`,
dateofBirthRequiredText: `תאריך לידה נדרש`,
dateOfBirthInvalidText: `הגיל צריך להיות גדול או שווה ל-18 שנים`,
}
2 changes: 2 additions & 0 deletions src/LocaleStrings/ItalianLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
}
2 changes: 2 additions & 0 deletions src/LocaleStrings/JapaneseLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,6 @@ let localeStrings: LocaleStringTypes.localeStrings = {
vpaIdLabel: `VPA ID`,
vpaIdEmptyText: `VPA ID を空にすることはできません`,
vpaIdInvalidText: `無効な VPA ID`,
dateofBirthRequiredText: `生年月日が必要です`,
dateOfBirthInvalidText: `年齢は18歳以上である必要があります`,
}
2 changes: 2 additions & 0 deletions src/LocaleStrings/LocaleStringTypes.res
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,6 @@ type localeStrings = {
vpaIdLabel: string,
vpaIdEmptyText: string,
vpaIdInvalidText: string,
dateofBirthRequiredText: string,
dateOfBirthInvalidText: string,
}
2 changes: 2 additions & 0 deletions src/LocaleStrings/PolishLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
}
2 changes: 2 additions & 0 deletions src/LocaleStrings/PortugueseLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
}
2 changes: 2 additions & 0 deletions src/LocaleStrings/RussianLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,6 @@ let localeStrings: LocaleStringTypes.localeStrings = {
vpaIdLabel: `Идентификатор ВПА`,
vpaIdEmptyText: `Идентификатор VPA не может быть пустым.`,
vpaIdInvalidText: `Неверный идентификатор VPA`,
dateofBirthRequiredText: `Дата рождения обязательна`,
dateOfBirthInvalidText: `Возраст должен быть не меньше 18 лет`,
}
2 changes: 2 additions & 0 deletions src/LocaleStrings/SpanishLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
}
2 changes: 2 additions & 0 deletions src/LocaleStrings/SwedishLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
}
4 changes: 2 additions & 2 deletions src/Payments/DateOfBirth.res
Original file line number Diff line number Diff line change
Expand Up @@ -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

<div className="flex flex-col gap-1">
<div
Expand Down

0 comments on commit adbd767

Please sign in to comment.