#ManuX
1 messages · Page 1 of 1 (latest)
Hello there
So you want to pass locale into your Elements Provider as one of the options
So it would look something like: <Elements stripe={stripePromise} options={locale: 'de'}>
Does it look good like this?
const [stripePromise, _] = useState(() => loadStripe(stripe_account_pk));
const options = useMemo(() => {
return {
clientSecret,
appearance: {
theme: "stripe",
},
locale,
};
}, [clientSecret, locale]) as StripeElementsOptions;
return (
<>
{clientSecret && (
<Elements options={options} stripe={stripePromise}>
<FormsContainer formsContainerData={formsContainerData} />
</Elements>
)}
</>
);
};```
I'm still getting the warning though
No worries!
Okay interesting I see the same thing...
There really shouldn't be a warning for that. It is definitely supported.
I'll flag this internally
Yep feel free to ignore and we will get that warning removed