Merchant Web SDKs
Instance.setDefaultLocale
doc

Instance.setDefaultLocale

Set the default language for all the implemented payment methods using this method of the Revolut Checkout Instance.

How to use

To set the default locale you can use the RC.setDefaultLocale() method as follows:

type Instance = {
payWithPopup: InstancePayWithPopup;
createCardField: InstanceCreateCardField;
revolutPay: InstanceRevolutPay;
destroy: () => void;
};


RevolutCheckout("<token>").then(function (instance) {
instance.setDefaultLocale('es')
instance.payWithPopup({
onSuccess() {
window.alert("Gracias!");
},
onError(message) {
window.alert("Oh no :(");
}
});
});

Supported languages

CodeLanguage
autoDetect using browser locale
enEnglish
en-USEnglish (United States)
esSpanish
deGerman
frFrench
itItalian
nlDutch
plPolish
ptPortuguese
csCzech
huHungarian
skSlovak
jaJapanese
svSwedish
bgBulgarian
elGreek
roRomanian
ltLithuanian
hrCroatian
Was this page helpful?