setLocale()
The setLocale() method is used to set and get the preferred language for the Payment Element or Vaulting Element UI.
Method signature
Java
Kotlin
Java
copy
public void setLocale(Locale locale)Parameters
Parameter | Data type | Required | Description |
locale | String | No | Preferred language. Composed of a language code (ISO-639) and country code (ISO-3166) connected by an underscore, for example, Valid values are:
|
Return value
Returns the currently configured language.