Localisation
Last updated: 26-Jul-2022
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 |
---|---|
English | en |
French | fr |
German | de |
Finnish | fi |
Hebrew | he |
Russian | ru |
Norwegian | no |
Swedish | sv |
Polish | pl |
Danish | da |
Portuguese | pt |
Latvian | lv |
Lithuanian | lt |
Estonian | et |
Arabic | ar |
Icelandic | is |
Italian | it |
Dutch | nl-be |
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: