Support

Home Forums Event Espresso Premium Stripe Spanish Translation

Stripe Spanish Translation

Posted: November 3, 2016 at 12:12 pm


ardiaful

November 3, 2016 at 12:12 pm

It seems that Stripe is available in Spanish. Stripe webpage says:

You can opt in to using the translated version with a single line of code. If you’re using the simple integration, just pass data-locale=”auto” into the <script> tag. If you have a custom integration, use locale: ‘auto’ when calling StripeCheckout.configure(). There’s more info in the docs.

Can you be more specific about where exactly should I add data-locale=”auto” line?


Tony

  • Support Staff

November 3, 2016 at 3:30 pm

Hi there,

We do not provide support for modifying core files, however we do have a feature request ticket to include this within the Stripe payment method so I have added this thread to the ticket and requested some feedback on this feature.

I will post any updates provided by the developer here.


ardiaful

November 4, 2016 at 7:47 am

Is it even possible to modify any core files here to translate checkout strings? Where can I find them?


ardiaful

November 4, 2016 at 1:22 pm

I copy here answer I got from Stripe support team regarding request for help on this issue:

Thanks for contacting us!

Though I hate to redirect you, Stripe didn’t build this plugin, so I’m afraid we don’t have much insight here. As a next step, I’d suggest reaching out to the creator to see if they’re able to provide some additional guidance on how to have Checkout translated into Spanish. Feel free to have them contact us directly if they have any questions — we’d be happy to help!

I’d also like to inform you that we’re now able to answer our customers with accounts in Spain in Spanish, so if you prefer to write in Spanish next time you contact us, you’re more than welcome to do so!

All the best,


Josh

  • Support Staff

November 7, 2016 at 12:41 pm

What they’re working on doing is adding this:

locale: 'auto',

to espresso_stripe_onsite.js. Which should allow for using the preferred language set in your Stripe account.


ardiaful

November 22, 2016 at 9:47 am

Is this happening anytime soon? I’m in a hurry with this.


Tony

  • Support Staff

November 23, 2016 at 6:54 am

Generally we do not support modifying core files, however as this is likely to be included within the next release of the Stripe payment method and you are in a hurry I can give you the details to add this to your version of the Stripe add-on.

If you open up \eea-stripe-gateway\scripts\espresso_stripe_onsite.js

Around line line 177 you’ll find something like this:


EE_STRIPE.handler = StripeCheckout.configure({
	key: stripe_transaction_args.data_key,
	token: function( stripe_token ) {

Add locale: 'auto', between the key and token calls, like this:


EE_STRIPE.handler = StripeCheckout.configure({
	key: stripe_transaction_args.data_key,
	locale: 'auto',
	token: function( stripe_token ) {

Clear the cache within your browser and test if the translations come through on the Stripe checkout.

Note the translation feature is a Stripe checkout feature, other than setting the above locale we don’t have any further control of how the checkout will display in this case.


ardiaful

November 23, 2016 at 10:24 am

Thank you very much, I really appreciate this.

Traslation is working fine now, except for the list of countries displayed in Stripe popup window (still in English), any idea on how to have this list translated?


Tony

  • Support Staff

November 24, 2016 at 6:09 am

That popup window is controlled by Stripe themselves so we don’t have any control over the translations within the countries dropdown, you would need to contact Stripe and see if they have any suggestions for translating that section.

The support post ‘Stripe Spanish Translation’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso