Localization
Learn more about all possible languages and formats.
Unzer UI components support localization with the locale
parameter.
You can set it on initialization on the client side.
If no value is passed, then the client’s browser language is used.
// Creating an unzer instance with your public key
var unzerInstance = new unzer('s-pub-xxxxxxxxxx', {locale: 'de-DE'});
<unzer-payment
id="unzer-payment"
publicKey="s-pub-xxxxxxxxxx"
locale="de-DE">
</unzer-payment>
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 |
JavaScript UI Components v2/ Payment Pages v2 | locale | Default: browser language/en (en-US )German: de , de-DE Dutch: nl , nl-NL English: en (en-US ), en-GB Danish: da |
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.