Skip to main content

Localization

Localization is a crucial aspect of providing a seamless shopping experience for customers around the globe. The Shop Pay Wallet API supports localization to ensure that customers can interact with the checkout process in their preferred language.


To set the locale, include the locale parameter when configuring the Shop Pay Payment Request. The locale parameter expects a valid ISO language code, with some locales followed by an ISO country code. See the Supported Locales List section for the full list.

window.ShopPay.PaymentRequest.configure({
shopId: 1,
clientId: "[REPLACE-ME]",
locale: 'fr', // Example: Set locale to French
});
Note

If no locale is provided or if the provided locale is invalid, the default locale will be set to English (en).


Anchor to Supported Locales ListSupported Locales List

The following locales are supported by the Shop Pay Wallet API:

Locale CodeLanguage
csCzech
daDanish
deGerman
enEnglish (Default)
esSpanish
fiFinnish
frFrench
hiHindi
itItalian
jaJapanese
koKorean
msMalay
nbNorwegian Bokmål
nlDutch
plPolish
pt-BRPortuguese - Brazil
pt-PTPortuguese - Portugal
svSwedish
thThai
trTurkish
zh-CNChinese - Simplified
zh-TWChinese - Traditional

Was this page helpful?