How to force the language of my banner to match the language of my website?

When a user comes to your website, your banner may match the language of the user's browser and not the language of your website. It's the behavior by default (see Languages section in the "Look & feel" step)

You can change this setting and choose to keep the language of your website on your banner, regardless of the user's browser language.

Here is the process:

  1. Go to your source code.
  2. Insert the element didomiConfig.languages.
  3. Add the enabled element.
  4. Insert the language your want to force on your banner in brackets.
Language ID
Arabic ar
Bulgarian bg
Catalan ca
Croatian hr
Czech cs
Danish da
Dutch nl
English en
Estonian et
Finnish fi
French fr
German de
Greek el
Hungarian hu
Italian it
Japanese ja
Korean ko
Latvian lv
Lithuanian lt
Malaysian ms
Polish pl
Portuguese pt
Romanian ro
Russian ru
Serbian sr
Simplified Chinese zh-CN
Slovak sk
Slovenian sl
Spanish es
Swedish sv
Thai th
Traditional Chinese zh-TW
Turkish tr
Ukrainian uk
Vietnamese vi
 
  • If you want to force French on your banner, here is an example:
window.didomiConfig = {
languages: {
default: 'fr',
enabled: ['fr']
}
};