# Set the widget language

## Supported languages

The cookie widget currently supports these languages, in the given jurisdictions:

| Language              | Supported in jurisdiction | Option value     |
| --------------------- | ------------------------- | ---------------- |
| English (EN)          | All jurisdictions         | None, or `en-us` |
| Danish (DA)           | Denmark (DK)              | `da-dk`          |
| Dutch (NL)            | Netherlands (NL)\*        | `nl-nl`          |
| German (DE)           | Germany (DE)\*            | `de-de`          |
| Norwegian (NO)        | Norway (NO)\*             | `no-no`          |
| Norwegian Bokmål (NB) | Norway (NO)\*             | `nb-no`          |
| Swedish (SV)          | Sweden (SE)\*             | `sv-se`          |
| Spanish (ES)          | Spain (ES)\*              | `es-es`          |
| French (FR)           | France (FR)\*             | `fr-fr`          |
| Finnish (FI)          | Finland (FI)\*            | `fi-fi`          |
| Lithuanian (LT)       | Lithuania (LT)\*          | `lt-lt`          |
| Polish (PL)           | Poland (PL)\*             | `pl-pl`          |

\**Our widget currently uses the rules from Denmark (DK) for this jurisdiction, with specific support for local rules planned for a future version.*

Additional jurisdictions and languages will be added over time.

{% hint style="info" %}
If you do not specify a language, or if the language you set is not supported by us **in the visitor's jurisdiction**, English will be used. The table above lists the supported combinations.
{% endhint %}

## Setting the display language

To set the display language, initialize your widget with the `locale` option set to the value for the language you desire. For example, to use Danish when the jurisdiction is Denmark, your widget's initialization would look similar to this:

```javascript
legal.widget({
    type: "cookie",
    widgetPublicKey: "...",
    locale: "da-dk",
});
```

## Handling multiple languages:

If you need to handle multiple languages, please visit this guide in our documentation:

{% content-ref url="/pages/sZAcdaJFZVaVKYMY5tWa" %}
[Using projects to handle multiple languages](/docs/general-openli-guides/using-projects-to-handle-multiple-languages.md)
{% endcontent-ref %}


---

# Agent Instructions: 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:

```
GET https://docs.openli.com/docs/cookie-consent-management/cookie-widget/setup-widget-language.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
