Provide a locale to Stripe Elements requests to enable messages to be translated #7961
Labels
enhancement
improvement
FR
Selected to be done by the French active instance
papercut
Labels papercuts after they've moved from the "Papercuts prioritized" column
Overview
Stripe Elements defaults to english, but a locale can be passed to enable any error messages that originate from Stripe to be translated.
Approach
I think all that this would take is to provide a locale to the requestToken function in the StripeElements service.
Also
I haven't looked into what it would take to get error messages generated by server side requests made to Stripe to be translated also, but I imagine that a similar approach should be able to be used.
The text was updated successfully, but these errors were encountered: