# How to Add a Multilingual Cookie Consent Banner?

> For the complete site index, see [llms.txt](/llms.txt). Every page is also available as Markdown: replace the trailing slash with `.md` (`/pricing/` becomes `/pricing.md`), or send `Accept: text/markdown` to the page URL itself.

Implement a cookie banner in multiple languages for all your website visitors and foolproof compliance with CookieYes!

---

**Categories:** Banner Language, Customization
**Last updated:** June 2, 2025
**URL:** https://www.cookieyes.com/documentation/cookieyes-cookie-banner-for-multilingual-websites/

---

If you have a website that has a multilingual target audience, then it is important that your cookie consent banner is also available in multiple languages. You can display a multilingual cookie consent banner with the CookieYes cookie consent solution.

> **Note:**

> This feature is only available for sites with an **active** **Paid** **Plan** (Basic, Pro, Ultimate).
>

**To get started with CookieYes, **[**create your account and try it for free**](https://app.cookieyes.com/trial?plan=pro-monthly&ref=multilingual_banner)**.**
After you sign up, you will be directed to a setup screen. During the setup, you will be able to select the **Default Language** of your cookie banner.
![language.png](https://assets.cookieyes.com/language_cb442d5255.png)
Your default language is the one in which your cookie banner will be displayed in when users have not set a language preference.
To implement a multilingual banner that is auto-translated as per your visitor’s preferred language, follow the steps below.

## Cookie banner for multilingual websites

**Step 1:** From the top navigation panel of your CookieYes account, select **Languages**.

![Languages tab](https://assets.cookieyes.com/Languages_tab_3e652ad04c.jpg)

**Step 2:** You can see the default language you have selected. You can click on the **+Add Language** to add other languages you want your cookie banner to be displayed in.

![Add Language](https://assets.cookieyes.com/Add_Language_6d7adba6ea.jpg)

**Step 3:** You can select all the languages you need and then click on **Add**.

![add button](https://assets.cookieyes.com/add_button_4ca2c53147.jpg)

**Step 4:** Once you’ve added the required languages, you will see them listed here. You can click on **Edit** **Content** to change/adapt the content of your cookie banner in that language.

![edit content 1](https://assets.cookieyes.com/edit_content_1_d3184d4bbb.jpg)

**Step 5:** On the new screen, you can see your Default Language on the left side and the language you want to **Edit content** in on the right side. You can then edit the content of the auto-translated text under Cookie Notice, Preference Center, Cookie List, Revisit Consent Button and Blocked Content. Additionally, you can add the URL of the translated cookie policy page under the **Edit content** section of the **Cookie** **Notice**.

![language you want to Edit](https://assets.cookieyes.com/language_you_want_to_Edit_a847c8524f.jpg)

> **Note:**

> CookieYes features 41 languages with in-built auto-translated content. You can use the default translation provided or customise the content.
>

**Step 6:** You can then enable **Banner** **Preview** on top and you will be able to preview the banner on your website (as shown below).

![cookie banner](https://assets.cookieyes.com/cookie_banner_8e4938e6fd.jpg)

**Step 7:** When you have made all the required edits, you can click on **Save & Publish** to save these changes.

## Advanced Configurations

The auto-translation works based on the `lang` attributes in the <html> tag. In case your website does not have a `lang` attribute, you can manually assign the language by following the steps below.
You can add the language inside the script tag, which will override both the default language and auto-detection. If you need the default language to be anything other than "en" (English), you can enter the desired 2-character language code instead.

```js
<script>
        window.ckySettings = {
          documentLang: "en"
        };
</script>
```

This snippet should be added above the cookieyes script. 

> **Note:**

> This feature is available only for users on the **Basic**, **Pro** and **Ultimate** plans.
>

Example: To display the French banner on `https://example.com/fr` and the English banner on `https://example.com/` , the above snippet can be modified as follows:

```js
<script>
    if (window.location.pathname.startsWith("/fr")) { 
        window.ckySettings = {
          documentLang: "fr"
       };
    } 
</script>
```

This will set the language as French for `https://example.com/fr`. For ` https://example.com`, the English banner is shown by default as per the customer’s choice. You can set the conditions as per requirement prior to setting the language.
You have now enabled a multilingual cookie banner for your website!
If you are facing any issues with this, please reach out to [technical support](https://www.cookieyes.com/support/?query=troubleshoot).


---

## Structured Data

```json
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Article",
      "headline": "How to Add a Multilingual Cookie Consent Banner?",
      "mainEntityOfPage": {
        "@type": "WebPage",
        "@id": "https://www.cookieyes.com/documentation/cookieyes-cookie-banner-for-multilingual-websites/"
      },
      "url": "https://www.cookieyes.com/documentation/cookieyes-cookie-banner-for-multilingual-websites/",
      "publisher": {
        "@type": "Organization",
        "name": "CookieYes",
        "url": "https://www.cookieyes.com",
        "logo": {
          "@type": "ImageObject",
          "url": "https://www.cookieyes.com/cookieyes-logo.png",
          "width": 2048,
          "height": 2048
        }
      },
      "description": "Implement a cookie banner in multiple languages for all your website visitors and foolproof compliance with CookieYes!",
      "datePublished": "2020-01-22T04:34:34+00:00",
      "dateModified": "2025-06-02T06:13:03+00:00",
      "author": {
        "@type": "Person",
        "name": "CookieYes Doc Team"
      },
      "image": [
        "https://assets.cookieyes.com/Implementing_Cookie_Banner_for_Multilingual_Websites_Using_Cookie_Yes_1_1024x576_78dee920fe.jpg"
      ]
    },
    {
      "@type": "BreadcrumbList",
      "@id": "https://www.cookieyes.com/documentation/cookieyes-cookie-banner-for-multilingual-websites/#breadcrumb",
      "itemListElement": [
        {
          "@type": "ListItem",
          "position": 1,
          "name": "Home",
          "item": "https://www.cookieyes.com/"
        },
        {
          "@type": "ListItem",
          "position": 2,
          "name": "Documentation",
          "item": "https://www.cookieyes.com/documentation/"
        },
        {
          "@type": "ListItem",
          "position": 3,
          "name": "Customization",
          "item": "https://www.cookieyes.com/category/documentation/customization/"
        },
        {
          "@type": "ListItem",
          "position": 4,
          "name": "Banner Language",
          "item": "https://www.cookieyes.com/category/documentation/customization/banner-language/"
        },
        {
          "@type": "ListItem",
          "position": 5,
          "name": "How to Add a Multilingual Cookie Consent Banner?",
          "item": "https://www.cookieyes.com/documentation/cookieyes-cookie-banner-for-multilingual-websites/"
        }
      ]
    },
    {
      "@type": "WebSite",
      "@id": "https://www.cookieyes.com/#website",
      "url": "https://www.cookieyes.com/",
      "name": "CookieYes",
      "description": "CookieYes is a Google-certified consent management platform that helps businesses comply with GDPR, CCPA, and other global privacy laws.",
      "inLanguage": "en-US",
      "publisher": {
        "@id": "https://www.cookieyes.com/#organization"
      },
      "potentialAction": {
        "@type": "SearchAction",
        "target": {
          "@type": "EntryPoint",
          "urlTemplate": "https://www.cookieyes.com/?s={search_term_string}"
        },
        "query-input": {
          "@type": "PropertyValueSpecification",
          "valueRequired": true,
          "valueName": "search_term_string"
        }
      }
    },
    {
      "@type": "Organization",
      "@id": "https://www.cookieyes.com/#organization",
      "name": "CookieYes",
      "url": "https://www.cookieyes.com/",
      "logo": {
        "@type": "ImageObject",
        "@id": "https://www.cookieyes.com/#/schema/logo/image/",
        "inLanguage": "en-US",
        "url": "https://www.cookieyes.com/cookieyes-logo.png",
        "contentUrl": "https://www.cookieyes.com/cookieyes-logo.png",
        "width": 2048,
        "height": 2048,
        "caption": "CookieYes"
      },
      "image": {
        "@id": "https://www.cookieyes.com/#/schema/logo/image/"
      }
    }
  ]
}
```
