Localization (v2)
BetaLearn more about all possible languages and formats.
Unzer UI components support localization with the locale
parameter. You can set it when initializing the <unzer-payment>
component on the client side. If no value is passed, then the client’s browser language is used.
<unzer-payment
id="unzer-payment"
publicKey="s-pub-xyz"
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 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.