You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'm actually facing a problem when the errors returning by Stripe Node are all in English. I would like to have to possibility to custom the locale and be able to change the content of property error.raw.message of all the exception.
locale
A locale used to globally configure localization in Stripe. Setting the locale here will localize error strings for all Stripe.js methods. It will also configure the locale for Elements and Checkout. Default is auto (Stripe detects the locale of the browser).
Describe the solution you'd like
Have the same solution as the Stripe.js integration, setting a locale variable in the ?options.
Also, please forgive me if this feature can't be done because it's not doable or if I don't really understand something. Don't hesitate to teach me :)
Thanks you.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
@Didixdan Thanks for writing in! This is something we've heard in the past but we don't have plans to implement for now. Most server-side errors are aimed at the developer of the integration, not the end-customer. The errors for the end customers usually happen client-side via Stripe.js or one of our Mobile SDKs which does support a localized version of those errors.
For now, we recommend that you handle the errors you care about and translate those and keep the rest as a generic error.
I'll tag this as future so that we can collect more feedback though!
Is your feature request related to a problem? Please describe.
I'm actually facing a problem when the errors returning by Stripe Node are all in English. I would like to have to possibility to custom the locale and be able to change the content of property
error.raw.message
of all the exception.I want to add the possibility of having the error code respect the "locale" configuration already available in the Stripe.js
https://stripe.com/docs/js/appendix/supported_locales
Describe the solution you'd like
Have the same solution as the Stripe.js integration, setting a
locale
variable in the?options
.Also, please forgive me if this feature can't be done because it's not doable or if I don't really understand something. Don't hesitate to teach me :)
Thanks you.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: