> 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/avis-de-consentement/forcer-la-langue-de-lavis-de-consentement-a-correspondre-au-site-web.md).

# Forcer la langue de l'avis 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
