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?
You can create an unlimited number of different language versions of the Consent Dialog via "Settings" -> "Content" tab in your Cookiebot Manager. Add a new language by clicking the plus-sign next to the language tab.
The default language variant (selected in the corresponding dropdown list as illustrated above) will be shown to all users unless you configure one of the following options:
If you check "Auto-detect user language" in the Cookiebot Manager, Cookiebot will automatically detect the individual user's preferred browser language and show the dialog in this language if you have created a matching language variant. If not, Cookiebot will show the default language to the user.
- Situation 1: You added English as a banner language.
The user's browser language is set to English.
Upon visiting the website, the user will be presented with the English banner.
- Situation 2: You added English as the default banner language, but have not added French as a banner language.
The user's browsers language is set to French.
Upon visiting the website, the user will be presented with the (default) English banner.
- Situation 3: You have added English as the default banner language, but have also added French as a banner language.
The user's browser language is set to French.
Upon visiting the website, the user will be presented with the French banner.
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:
How to determine the appropriate language from the URL?