diff --git a/src/Components/ErrorComponent.res b/src/Components/ErrorComponent.res index dd2b65fcc..71d6a2db9 100644 --- a/src/Components/ErrorComponent.res +++ b/src/Components/ErrorComponent.res @@ -2,7 +2,7 @@ open RecoilAtoms @react.component let make = (~errorStr=None, ~cardError="", ~expiryError="", ~cvcError="") => { - let {themeObj, config} = Recoil.useRecoilValueFromAtom(configAtom) + let {themeObj, config, localeString} = Recoil.useRecoilValueFromAtom(configAtom) let {innerLayout} = config.appearance let errorTextStyle: JsxDOM.style = { @@ -29,7 +29,9 @@ let make = (~errorStr=None, ~cardError="", ~expiryError="", ~cvcError="") => { | Compressed => -
{React.string("Invalid input")}
+
+ {React.string(localeString.enterValidDetailsText)} +
} } diff --git a/src/Payments/CardPayment.res b/src/Payments/CardPayment.res index 481241ac7..b638a032c 100644 --- a/src/Payments/CardPayment.res +++ b/src/Payments/CardPayment.res @@ -566,7 +566,7 @@ let make = ( alignSelf: "start", textAlign: "left", }> - {React.string("Invalid input")} + {React.string(localeString.enterValidDetailsText)}