webdna / commerce-braintree

Braintree gateway for Craft Commerce
Other
2 stars 11 forks source link

How to add translations to dropin object? #23

Closed wagood closed 4 years ago

wagood commented 4 years ago

I can do this only by editing the DropinUi.js file directly.

samuelbirch commented 4 years ago

this is now available in 2.3.0

you just need to pass in the options a translations object:

gateway.getPaymentFormHtml({translations:{chooseAWayToPay:'Choose a way to pay'}})