#ManuX

1 messages · Page 1 of 1 (latest)

sand zealotBOT
noble holly
#

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'}>

final musk
#

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
noble holly
#

Huh yeah that looks fine to me.

#

Let me test on my end

#

Give me a sec

final musk
#

No worries!

noble holly
#

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

final musk
#

Got you

#

well I will leave it then

#

it's working fine

noble holly
#

Yep feel free to ignore and we will get that warning removed

final musk
#

perfect!

#

Thanks a lot for clarifying and testing it on your end