I am trying to add locale to the Braintree hosted fields so that I get the challenge window on spanish. I tried adding it to the hostedFields as shown below.
window.braintree.hostedFields.create({
authorization: clientToken,
locale: 'es_ES',
})
But I am still getting the challenge window in english.