Skip to content

Commit

Permalink
fix: locales update for mm/yy
Browse files Browse the repository at this point in the history
  • Loading branch information
PritishBudhiraja authored and seekshiva committed Jun 14, 2024
1 parent 9c61669 commit 4aefd35
Show file tree
Hide file tree
Showing 21 changed files with 23 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Components/DynamicFields.res
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ let make = (
appearance=config.appearance
maxLength=7
inputRef=expiryRef
placeholder="MM / YY"
placeholder=localeString.expiryPlaceholder
/>
| CardCvc =>
<PaymentInputField
Expand Down Expand Up @@ -402,7 +402,7 @@ let make = (
appearance=config.appearance
maxLength=7
inputRef=expiryRef
placeholder="MM / YY"
placeholder=localeString.expiryPlaceholder
/>
<PaymentInputField
fieldName=localeString.cvcTextLabel
Expand Down
1 change: 1 addition & 0 deletions src/LocaleStrings/ArabicLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
cardHeader: `معلومات البطاقة`,
cardBrandConfiguredErrorText: str => `${str} غير مدعوم في الوقت الحالي.`,
currencyNetwork: `شبكات العملات`,
expiryPlaceholder: `MM / YY`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/CatalanLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
cardHeader: `Informació de la targeta`,
cardBrandConfiguredErrorText: str => `${str} no està suportat en aquest moment.`,
currencyNetwork: `Xarxes de Monedes`,
expiryPlaceholder: `MM / AA`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/DeutschLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
cardHeader: `Kartendaten`,
cardBrandConfiguredErrorText: str => `${str} wird derzeit nicht unterstützt.`,
currencyNetwork: `Währungsnetzwerke`,
expiryPlaceholder: `MM / JJ`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/DutchLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
cardHeader: `Kaartinformatie`,
cardBrandConfiguredErrorText: str => `${str} wordt op dit moment niet ondersteund.`,
currencyNetwork: `Valutanetwerken`,
expiryPlaceholder: `MM / JJ`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/EnglishGBLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
cardHeader: `Card information`,
cardBrandConfiguredErrorText: str => `${str} is not supported at the moment.`,
currencyNetwork: `Currency Networks`,
expiryPlaceholder: `MM / YY`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/EnglishLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
cardHeader: `Card information`,
cardBrandConfiguredErrorText: str => `${str} is not supported at the moment.`,
currencyNetwork: `Currency Networks`,
expiryPlaceholder: `MM / YY`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/FrenchBelgiumLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
cardHeader: `Informations de carte`,
cardBrandConfiguredErrorText: str => `${str} n'est pas pris en charge pour le moment.`,
currencyNetwork: `Réseaux Monétaires`,
expiryPlaceholder: `MM / AA`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/FrenchLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
cardHeader: `Informations de carte`,
cardBrandConfiguredErrorText: str => `${str} n'est pas pris en charge pour le moment.`,
currencyNetwork: `Réseaux Monétaires`,
expiryPlaceholder: `MM / AA`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/HebrewLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
cardHeader: `מידע כרטיס`,
cardBrandConfiguredErrorText: str => `${str} לא נתמך כרגע.`,
currencyNetwork: `רשתות מטבעות`,
expiryPlaceholder: `MM / YY`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/ItalianLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
cardHeader: `Informazioni sulla carta`,
cardBrandConfiguredErrorText: str => `${str} non è supportato al momento.`,
currencyNetwork: `Reti Valutarie`,
expiryPlaceholder: `MM / AA`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/JapaneseLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
cardHeader: `カード情報`,
cardBrandConfiguredErrorText: str => `${str} は現在サポートされていません。`,
currencyNetwork: `通貨ネットワーク`,
expiryPlaceholder: `MM / YY`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/LocaleStringTypes.res
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,5 @@ type localeStrings = {
cardHeader: string,
cardBrandConfiguredErrorText: string => string,
currencyNetwork: string,
expiryPlaceholder: string,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/PolishLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
cardHeader: `Informacje o karcie`,
cardBrandConfiguredErrorText: str => `${str} nie jest obecnie obsługiwany.`,
currencyNetwork: `Sieci Walutowe`,
expiryPlaceholder: `MM / RR`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/PortugueseLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
cardHeader: `Informações do cartão`,
cardBrandConfiguredErrorText: str => `${str} não é suportado no momento.`,
currencyNetwork: `Redes de Moeda`,
expiryPlaceholder: `MM / AA`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/RussianLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
cardBrandConfiguredErrorText: str =>
`${str} в данный момент не поддерживается.`,
currencyNetwork: `Валютные сети`,
expiryPlaceholder: `MM / ГГ`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/SpanishLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
cardHeader: `Información de la tarjeta`,
cardBrandConfiguredErrorText: str => `${str} no está soportado en este momento.`,
currencyNetwork: `Redes de Divisas`,
expiryPlaceholder: `MM / AA`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/SwedishLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
cardHeader: `Kortinformation`,
cardBrandConfiguredErrorText: str => `${str} stöds inte för tillfället.`,
currencyNetwork: `Valutanätverk`,
expiryPlaceholder: `MM / ÅÅ`,
}
2 changes: 1 addition & 1 deletion src/Payments/CardPayment.res
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ let make = (
appearance=config.appearance
maxLength=7
inputRef=expiryRef
placeholder="MM / YY"
placeholder=localeString.expiryPlaceholder
/>
</div>
<div className={innerLayout === Spaced ? "w-[45%]" : "w-[50%]"}>
Expand Down
2 changes: 1 addition & 1 deletion src/RenderPaymentMethods.res
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ let make = (
paymentType
maxLength=7
inputRef=expiryRef
placeholder="MM / YY"
placeholder=localeString.expiryPlaceholder
id="card-expiry"
isFocus
/>
Expand Down
3 changes: 2 additions & 1 deletion src/SingleLineCardPayment.res
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ let make = (
) => {
let {iframeId} = Recoil.useRecoilValueFromAtom(keys)
let options = Recoil.useRecoilValueFromAtom(elementOptions)
let {localeString} = Recoil.useRecoilValueFromAtom(configAtom)

let (
isCardValid,
Expand Down Expand Up @@ -149,7 +150,7 @@ let make = (
paymentType
maxLength=7
inputRef=expiryRef
placeholder="MM / YY"
placeholder=localeString.expiryPlaceholder
isFocus
/>
</div>
Expand Down

0 comments on commit 4aefd35

Please sign in to comment.