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

When a user comes to your website, your banner will 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 the web page's source code where you want to force the language (you'll be looking for the index.html file or equivalent)
  2. Insert the element didomiConfig.languages, before the Didomi's SDK script
  3. Add the enabled and default parameters
  4. Insert the language ID you want to force on your banner like below

For example, if you want to force French on your banner:
<script type="text/javascript">
window.didomiConfig = {
  languages: {
  enabled: ['fr'],
  default: 'fr'


Here you can find the ID of the languages we support:

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