Skip to content

Adding localization property #55

@Wazabiii

Description

@Wazabiii

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions