Localization
Learn more about all possible languages and formats.
Unzer UI components support localization with the locale
parameter. You can set it when initializing the Unzer object on the client side. The default value is auto, which uses the client’s browser language.
// Creating an unzer instance with your public key
var unzerInstance = new unzer('s-pub-xxxxxxxxxx', {locale: 'de-DE'});
curl --location --request GET 'https://api.unzer.com/v1/customers/s-cst-65b81db7b68f' --header 'Accept-Language: de-DE' -u 's-priv-xxxxxxxxxx'
$unzer = new UnzerSDK\Unzer('s-priv-xxxxxxxxxx', 'de-DE');
Unzer unzer = new Unzer("s-priv-xxxxxxxxxx", Locale.GERMANY);
Supported Languages
Integration type | Parameter | Language list |
---|---|---|
JavaScript UI Components/ Payment Pages | locale | Default: browser language/en (en-US )Bulgarian: bg Croatian: hr , hr-HR Czech: cs , cs-CZ Danish: da Dutch: nl , nl-NL English: en (en-US ), en-GB Estonian: et Finnish: fi French: fr , fr-FR German: de , de-DE Greek: el Hungarian: hu , hu-HU Italian: it , it-IT Latvian: lv Lithuanian: lt Polish: pl , pl-PL Portuguese: pt , pt-PT Romanian: ro , ro-RO Russian: ru Slovakian: sk , sk-SK Slovenian: sl Spanish: es , es-ES Swedish: sv Turkish: tr , tr-TR |
Unzer API/SDK | accept language header | Default value: en (en-US )Czech: cs , cs-CZ Dutch: nl , nl-NL English: en , en-US , en-GB French: fr , fr-FR German: de , de-DE Italian: it , it-IT Polish: pl , pl-PL Portuguese: pt , pt-PT Slovakian: sk , sk-SK Spanish: es , es-ES |
Format of the locale values
The locale values are not case sensitive.
The locale values are not case sensitive.