Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding localization property #55

Open
Wazabiii opened this issue Dec 11, 2019 · 0 comments
Open

Adding localization property #55

Wazabiii opened this issue Dec 11, 2019 · 0 comments

Comments

@Wazabiii
Copy link

It could be interesting to be able to force a locale for the Stripe instance.

According to the documentation: https://stripe.com/docs/stripe-js/reference#stripe-function

A prop "locale" could be created

    locale: {
      type: String,
      default: 'auto'
      validator: function (value) {
        return ['auto', 'ar', 'da', 'de', 'en', 'es', 'fi', 'fr', 'he', 'it', 'ja', 'lt', 'lv', 'ms', 'nb', 'nl', 'pl', 'pt', 'ru', 'sv', 'zh'].indexOf(value) !== -1
      }
    },

And Stripe instantiate with:

this.stripe = Stripe(this.apiKey, this.locale);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant