The standard template text for the cookie consent banner is currently available in 46 different languages. All languages are supported by Cookiebot and you can easily add any additional languages beyond these existing templates.
How to add languages?
Premium subscribers can add an unlimited number of languages in which they want to display their cookie banner and cookie declaration.
Adding new languages can be done by following these steps:
- Log into the Admin.
- Select "Configuration" from the left-hand menu.
- Select the "Content" tab and click the "Add language" button.
- A search field will be displayed, as soon as you begin typing a list of matches is displayed. The number of options will be reduced as you type more.
- Click the desired language to add it.
- If you want this new language to be the new default, you can specify this in the "Default language" drop-down menu above.
How to manually assign the language?
You can display the consent dialog in a specific language to all visitors by adding the attribute data-culture to the Cookiebot script tag embedded in your website, by setting the value to the two-letter ISO language-code that appears in the tab-title of the language variant you have created.
This practice is appropriate in a scenario where you want to ensure that the banner is displayed in a specific language, instead of letting the browser's language preference settings determine this.
Each language version of your website should have a matching data-culture attribute on the Cookiebot script tag.
Using this attribute overrides both the default language and auto-detect.
Example: Always displaying the banner in Spanish:
<script
id="Cookiebot"
data-culture="es"
type="text/javascript"
src="https://consent.cookiebot.com/uc.js"
data-cbid="12345678-90ab-cdef-1234-567890abcdef"
data-blockingmode="auto"
></script>
You can use the same method with the Cookie Declaration script, eg.:
<script id="CookieDeclaration"
data-culture="es" type="text/javascript" src="https://consent.cookiebot.com/12345678-90ab-cdef-1234-567890abcdef/cd.js" async ></script>
How to determine the appropriate language from the URL?
It is also possible to lock the language per subdirectory, subdomain or domain extension. For example domain.com/es, es.domain.com or domain.es.
For detailed instructions on how to set this up, please see: Changing the link of the banner based on the URL.
If you have any questions regarding your banner language settings or are otherwise in need of assistance; feel free to reach out to our support team via the support form.
Comments
0 comments
Please sign in to leave a comment.