Skip to content

Add a "locale" variable to the options configuration #1535

Open
@Didixdan

Description

@Didixdan

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

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions