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
| Code | Language |
|---|---|
de-AT | German (Austria) |
de-CH | German (Switzerland) |
de-DE | German (Germany) |
en-GB | English (United Kingdom) |
en-US | English (United States) |
es-ES | Spanish (Spain) |
fr-FR | French (France) |
it-CH | Italian (Switzerland) |
it-IT | Italian (Italy) |
nl-BE | Dutch (Belgium) |
nl-NL | Dutch (Netherlands) |
pt-BR | Portuguese (Brazil) |
pt-PT | Portuguese (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
- Theming — Customize colors and fonts
- API Reference — Complete API documentation