api - How do I change the language of the checkout form in Stripe? -


i have noticed stripe checkout form, language seems fixed in english.

is there way me change language to, example, spanish, japanese or chinese?

i using default form code on stripe documentation:

<form action="/charge" method="post">   <script     src="https://checkout.stripe.com/checkout.js" class="stripe-button"     data-key="pk_test_variable_here"     data-image="/img/documentation/checkout/marketplace.png"     data-name="my company pty ltd"     data-description="2 widgets"     data-currency="aud"     data-amount="2000">   </script> </form> 

edit: updating answer since it's accepted 1 make sure it's visible.

stripe released feature allows have stripe checkout display in other languages automatically.

the easiest solution pass data-locale="auto"to display checkout in user's preferred language, if available. english used default. can force specific locale in data-locale long it's 1 officially supported stripe.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -