Skip to main content

Internationalization and localization

Flowbox is designed from the ground up to support full localization in many different languages, allowing you to easily support multiple languages and currencies within your application.

Configuring the language

If you want to display your Flow in another language, pass in the locale property. A locale property logically consists of the fields described below.

language

ISO 639 alpha-2 or alpha-3 language code. When a language has both an alpha-2 code and an alpha-3 code, the alpha-2 code must be used. You can find a full list of valid language codes in the IANA Language Subtag Registry ("Type: language"). The language field is case insensitive, but Locale always canonicalizes to lower case.

Example: "en" (English), "sv" (Swedish), "da" (Danish)

country (region)

ISO 3166 alpha-2 country code or UN M.49 numeric-3 area code. You can find a full list of valid country and region codes in the IANA Language Subtag Registry ("Type: region"). The country (region) field is case insensitive, but Locale always canonicalizes to upper case. Well-formed country/region values have the form [a-zA-Z]{2} | [0-9]{3}

Example: "SE" (Sweden), "FR" (France), "DK" (Denmark)

important

The language in your Flow will always default to English and if you pass in an unsupported locale, buttons and text will be displayed in English.

The locale property needs to have both a language and a region code to work correctly: e.g. en-EU (language: English and region: Europe) or da-DK (language: Danish and region: Denmark). In order to get a correct translation, you will have to pick a locale from the list of supported locales.

Example initilization

See the example here for how to pass it into the init method of the window.flowbox function correctly

<div id="js-flowbox-flow"></div>
<script>
window.flowbox('init', {
container: '#js-flowbox-flow',
key: 'Your-Flow-Key',
locale: 'da-DK',
})
</script>

Supported Languages and Regions

Below is a list of all the supported languages and regions in Flowbox

List of supported Languages

Arabic arFinnish fiKorean koSlovak sk
Bulgarian bgFrench frLatvian lvSlovenian sl
Simplified Chinese zhGerman deLithuanian ltSpanish es
Croatian hrGreek elNorwegian Bokmål nbSwedish sv
Czech csHungarian huNorwegian noThai th
Danish daIcelandic isPolish plTurkish tr
Dutch nlIndonesian idPortuguese ptUkrainian uk
English enItalian itRomanian ro
Estonian etJapanese jaRussian ru

List of supported Regions

Australia: -AUEurope: -EULithuania: -LT `Singapore: -SG
Austria: -ATFinland: -FILuxembourg: -LUSlovakia: -SK
Belgium: -BEFrance: -FRMacau: -MOSouth Africa: -ZA
Brazil: -BRGermany: -DEMalta: -MTSouth Korea: -KR
Bulgaria: -BGGreece: -GRMexico: -MXSpain: -ES
Canada: -CAHong Kong: -HKMonaco: -MCSweden: -SE
Chile: -CLHungary: -HUMorocco: -MASwitzerland: -CH
China: -CNIndia: -INNew Zealand: -NZTaiwan: -TW
Colombia: -COIndonesia: -IDNorway: -NOThailand: -TH
Costa Rica: -CRIreland: -IEPhilippines: -PHThe Netherlands: -NL
Croatia: -HRIsrael: -ILPoland: -PLTurkey: -TR
Cyprus: -CYItaly: -ITPortugal: -PTUnited Arab Emirates: -AE
Czechia: -CZJapan: -JPQatar: -QAUnited Kingdom: -GB
Denmark: -DKLatvia: -LVRomania: -ROUnited States: -US
Egypt: -EGLatvia: -LVRussia: -RU
Estonia: -EELebanon: -LBSaudi Arabia: -SA

Currency

Below is a list of all the currencies supported in Flowbox

List of supported currencies

AED (100 د.إ)DKK (100 Kr)LBP (100 ل.ل.)RON (100 LEI)
AUD ($100)EGP (100 EGP)KRW (₩100)RUB (100₽)
BGN (100 Лв)EUR (€100)MAD (100 .د.م.)SAR (100 ﷼)
BRL (R$100)GBP (£100)MOP (MOP$100)SEK (100 Kr)
CAD ($100)HKD (HK$ 100)MXN ($100)SGD (S$ 100)
CHF (CHF 100)HRK (100kn)MYR (RM100)THB (฿100)
CLP ($100)HUF (100 Ft)NOK (100 Kr)TRY (₺100)
CNY (¥100)IDR (Rp100)NZD (NZ$ 100)TWD (NT$ 100)
COP ($100)ILS (₪100)PEN (100 soles)UAH (₴100)
CRC (₡ 100)INR (₹ 100)PHP (₱100)USD ($100)
CZK (100 Kč)ISK (100kr)PLN (100zł)VND (100 ₫)
DHS (Dhs 100)JPY (¥100)QAR (100 ر.ق)ZAR (R 100)