> For the complete documentation index, see [llms.txt](https://docs.didomi.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.didomi.io/fr/plateforme-de-gestion-du-consentement-cmp/notices-de-consentement/forcer-la-langue-de-la-banniere-de-consentement-a-correspondre-au-site-web.md).

# Forcer la langue de la bannière de consentement à correspondre au site web

Lorsqu’un utilisateur arrive sur votre site web, votre bannière correspondra à la langue du navigateur de l’utilisateur, et non à la langue de votre site web. C’est le comportement par défaut ([voir la section Langues à l’étape « Apparence »)](https://developers.didomi.io/cmp/web-sdk/consent-notice/notice/look-and-feel#languages)

Vous pouvez modifier ce paramètre et choisir de conserver la langue de votre site web sur votre bannière, quelle que soit la langue du navigateur de l’utilisateur.\
Voici la procédure :

1. Allez dans le code source de la page web où vous souhaitez forcer la langue (vous chercherez le fichier index.html ou son équivalent)
2. Insérez l’élément **didomiConfig.languages**, avant le script SDK de Didomi
3. Ajoutez les **enabled** et **par défaut** paramètres
4. Insérez l’ID de langue que vous souhaitez forcer sur votre bannière, comme ci-dessous

Par exemple, si vous souhaitez forcer le français sur votre bannière :

```
<script type="text/javascript">
window.didomiConfig = {
  languages: {
    enabled: ['fr'],
    default: 'fr'
  }
};
</script>
```

Notre plateforme de gestion du consentement est disponible [dans 53 langues](https://developers.didomi.io/cmp/web-sdk/consent-notice/notice/look-and-feel#languages) :

| Arabe                      | ar    |
| -------------------------- | ----- |
| Arabe (Jordanie)           | ar-JO |
| Azerbaïdjanais             | az-AZ |
| Bengali                    | bn-IN |
| Brésilien                  | pt-BR |
| Bulgare                    | bg    |
| Catalan                    | ca    |
| Chinois simplifié          | zh-CN |
| Chinois traditionnel       | zh-TW |
| Croate                     | hr    |
| Tchèque                    | cs    |
| Danois                     | da    |
| Néerlandais                | nl    |
| Néerlandais (Belgique)     | nl-BE |
| Anglais                    | en    |
| Anglais (Nouvelle-Zélande) | en-NZ |
| Anglais (Royaume-Uni)      | en-GB |
| Estonien                   | et    |
| Filipino                   | fil   |
| Finnois                    | fi    |
| Français                   | fr    |
| Français (Belgique)        | fr-BE |
| Français (Canada)          | fr-CA |
| Allemand                   | de    |
| Allemand (Autriche)        | de-AT |
| Allemand (Suisse)          | de-CH |
| Grec                       | el    |
| Hébreu                     | he    |
| Hindi                      | hi-IN |
| Hongrois                   | hu    |
| Indonésien                 | id    |
| Italien                    | it    |
| Japonais                   | ja    |
| Coréen                     | ko    |
| Letton                     | lv    |
| Lituanien                  | lt    |
| Macédonien                 | mk-MK |
| Malais                     | ms    |
| Norvégien                  | no    |
| Polonais                   | pl    |
| Portugais                  | pt    |
| Roumain                    | ro    |
| Russe                      | ru    |
| Serbe                      | sr    |
| Slovaque                   | sk    |
| Slovène                    | sl    |
| Espagnol                   | es    |
| Swahili                    | sw    |
| Suédois                    | sv    |
| Thaï                       | th    |
| Turc                       | tr    |
| Ukrainien                  | uk    |
| Vietnamien                 | vi    |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.didomi.io/fr/plateforme-de-gestion-du-consentement-cmp/notices-de-consentement/forcer-la-langue-de-la-banniere-de-consentement-a-correspondre-au-site-web.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
