> For the complete documentation index, see [llms.txt](https://doc.dastra.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.dastra.eu/nl/features/cookies/integration/languages.md).

# Taalbeheer

Deze pagina legt uit hoe u de talen van de toestemmingsbanner beheert.

## Talen aan de banner toevoegen

1. Klik in het menu op **Toestemming voor cookies** > **Banners** en klik daarna op uw banner.
2. Klap de sectie **Teksten en vertalingen** uit.
3. Klik op **Taal toevoegen**, kies de taal in de lijst en klik opnieuw op **Taal toevoegen**.

<figure><img src="https://996651476-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1i0NSpf8ID0PXTpIyycA%2Fuploads%2Fgit-blob-40fc8a4b121341b17c7b855616ea0f2573bd5588%2Fcookies-languages-1.png?alt=media" alt="De sectie Teksten en vertalingen met de lijst van bannertalen en hun badges"><figcaption><p>De sectie "Teksten en vertalingen"</p></figcaption></figure>

De eerste taal in de lijst is de standaardtaal. Klik naast een taal op **Standaard instellen** om een andere taal te kiezen. Klik op **Bewerken** om de teksten van een taal aan te passen.

In de keuzelijst zijn de talen in de groep **Talen met vertalingen** al door Dastra vertaald: Engels (VS), Engels (VK), Frans, Duits, Spaans, Italiaans, Nederlands, Grieks, Pools en Portugees. De andere talen staan in de groep **Talen die niet zijn vertaald**: u voert de teksten zelf in.

Elke taal die u toevoegt, draagt een badge:

* **Vooraf vertaald**: de taal is een van de talen die Dastra vertaalt;
* **Behoefte aan vertaling**: sommige teksten van de taal zijn nog leeg;
* **Volledig vertaald**: alle teksten zijn ingevuld.

Een teller toont het aantal aangepaste teksten ten opzichte van het totale aantal teksten.

## Detectie van de taal van de banner

Standaard gebruikt de banner de taal die is ingesteld in het attribuut `lang` van de `<html>`-tag van de pagina. Ontbreekt dit attribuut, dan gebruikt de banner de taal van de browser.

Staat deze taal (of de hoofdtaal ervan, bijvoorbeeld `fr` voor `fr-FR`) niet in de lijst van de banner, dan verschijnt de banner in de eerste taal van de lijst.

## De taal van de banner forceren

Voeg het attribuut `data-lang` toe aan de `div` van de banner om de taal te forceren:

```html
<div id="dastra-cookie-consent" data-widgetid="{your_widget_id}" data-lang="fr"></div>
```

Laadt u de banner met de methode `loadCookieConsent`, geef dan de optie `lang` mee:

```javascript
dastra.push(['loadCookieConsent', {
    widgetId: {your_widget_id},
    selector: '#cookie-consent',
    lang: 'fr'
}]);
```


---

# 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://doc.dastra.eu/nl/features/cookies/integration/languages.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.
