Skip to main content

Localization

The Drop-in Checkout supports multiple languages. Set the locale option to display the UI in the user's language.

Usage

Pass a locale code when creating the Drop-in:

const dropin = await Purse.createDropinCheckout({
session: clientSession.widget.data,
locale: "fr-FR"
});

Supported Locales

CodeLanguage
de-ATGerman (Austria)
de-CHGerman (Switzerland)
de-DEGerman (Germany)
en-GBEnglish (United Kingdom)
en-USEnglish (United States)
es-ESSpanish (Spain)
fr-FRFrench (France)
it-CHItalian (Switzerland)
it-ITItalian (Italy)
nl-BEDutch (Belgium)
nl-NLDutch (Netherlands)
pt-BRPortuguese (Brazil)
pt-PTPortuguese (Portugal)

Default Behavior

If no locale is specified, the Drop-in uses en-GB as the default.

TypeScript

type LocaleCode =
| "de-AT"
| "de-CH"
| "de-DE"
| "en-GB"
| "en-US"
| "es-ES"
| "fr-FR"
| "it-CH"
| "it-IT"
| "nl-BE"
| "nl-NL"
| "pt-BR"
| "pt-PT";

Next Steps