Localisation
Last updated: 01-Nov-2023
Overview
The text displayed on the Checkout page can be rendered in multiple languages.
It is possible to allow the customer to select a language on the page and to set a preferred language to be used by default. It is also possible to only display a single language and remove the option for the cardholder to select a different language.
The i18n
field in the create checkout request is used to configure the localisation settings.
- default_language - Default language is used for displaying the page. Any customer language choice would override this option.
- fallback_language - Fallback language is used when default_language is invalid. Any customer language choice would override this option.
- show_language_options - Indicates whether a language selection option should be shown to the customer on the Checkout page or not
Supported languages
Language | Abbreviation |
---|---|
Arabic | ar |
Danish | da |
Dutch | nl-be |
English | en |
Estonian | et |
Finnish | fi |
French | fr |
German | de |
Greek | el |
Hebrew | he |
Icelandic | is |
Italian | it |
Latvian | lv |
Lithuanian | lt |
Norwegian | no |
Polish | pl |
Portuguese | pt |
Russian | ru |
Swedish | sv |
Spanish | es |
Language setting
Setting a language and not allowing the user to change the language:
{
...
"i18n":{
"default_language": "en",
"fallback_language": "en"
"show_language_options": false,
}
...
}
Setting a language and allowing the user to change the language:
{
...
"i18n":{
"default_language": "en",
"show_language_options": true,
}
...
}
As an example, French language with an option to change the language and fallback to English would be configured like this:
{
...
"i18n":{
"default_language": "fr",
"fallback_language":"en"
"show_language_options": true,
}
...
}
Rate this article: