Overrides the language that Elevio uses for localization. The language must be both supported and enabled in your dashboard. By default, Elevio uses the user’s browser language. Also see setTranslations.

Example

window._elev.setLanguage('cs');

Signature

window._elev.setLanguage(code);

code (required)

The ISO 639-1 language code. Supported languages and their codes:

  • ar (اللغة العربية) (Arabic)
  • cs (čeština) (Czech)
  • da (Danske) (Danish)
  • de (Deutsch) (German)
  • el (ελληνικά) (Greek)
  • en (English)
  • es (Español) (Spanish)
  • fa (فارسی) (Persian)
  • fi (Suomi) (Finnish)
  • fr (Français) (French)
  • hu (Magyar) (Hungarian)
  • it (Italiano) (Italian)
  • iw (עִברִית) (Hebrew)
  • ja (日本語) (Japanese)
  • ko (한국어) (Korean)
  • nl (Nederlands) (Dutch)
  • nn (Norsk) (Norwegian)
  • pl (Polski) (Polish)
  • pt (Português) (Portuguese)
  • pt-br (Português do Brasil) (Brazilian Portuguese)
  • ro (Română) (Romanian)
  • ru (русский) (Russian)
  • sk (Slovenčina) (Slovak)
  • sr (српски језик) (Serbian)
  • sv (Svenska) (Swedish)
  • th (ภาษาไทย) (Thai)
  • tr (Türk) (Turkish)
  • uk (український) (Ukrainian)
  • vi (Tiếng Việt) (Vietnamese)
  • zh (简体中文) (Simplified Chinese)
  • zh-hant (繁体中文) (Traditional Chinese)

N.B. Suggestions are not currently supported in Vietnamese, Slovak, and Serbian.


See also

  • setSettings
  • setTranslations