Embed
Locale
Overview
Embed can be configured to use a different language using the locale
property.
By default, this will be set to en
(English). Embed accepts a
ISO 639-1 Language Code (e.g.
en
or fr
) and an optional
ISO 3166 Country Code (e.g.
AU
or GB
). The country code allows us to provide a localized version of the
language based on a specific country, e.g. fr-CA
would represent Canadian
French.
Usage
The locale can be set to any of the supported Locales. The locale property will fall back to English if a locale is not provided, is incorrect or not supported.
Embed currently does not automatically detect the buyer’s locale. The locale
will always be set to en
when not provided.
<Embed currency="AUD" amount="2300" locale="en-AU" />
Locales
We currently support the following locales.
Locale Name | Language Code (ISO 639-1) | Country Code (ISO 3166) | Locale |
---|---|---|---|
American English | en | US | en-US |
British English | en | GB | en-GB |
Brazilian Portuguese | pt | BR | pt-BR |
Croatian | hr | hr | |
Dutch | nl | nl | |
French | fr | fr | |
German | de | de | |
Indonesian | id | id | |
Italian | it | it | |
Malay | ms | ms | |
Portuguese | pt | pt | |
Romanian | ro | ro | |
Spanish | es | es | |
Thai | th | th |