Publications / Law and cookies
Cookie banner on a multilingual website – banner language, texts and consent
Visitors have to understand what they agree to – the banner should speak the language of the page. How the module chooses the language, how to translate the texts, and what about the cookie policy and consent on language domains and subdomains.

Latest posts
- Google merged the Google tag with Tag Manager – what it changes for cookie consent
- Advertising on Google or measuring traffic? Check whether you need a cookie banner
- How should a proper cookie banner work?
- How to prepare your website for consetgo – pre-installation checklist
- Cookies in an online shop – a practical checklist
Consent has to be informed – visitors must understand what they agree to. On a website in several languages, the banner should therefore speak the language in which someone is reading the page, and the cookie policy should be available in the same language. Below: how to set this up.
How the banner chooses the language
consetgo reads the lang attribute from the page’s <html> tag – e.g. <html lang="de"> shows the banner in German. The module has ready texts in the 24 languages of the European Union, and in the Texts tab you can add another language (it gets the English texts to translate). If the page has no lang attribute or the language is not on the list, the banner shows in the default language from the module settings (after installation: English).
Check: that every language version of the site has a correct lang in the <html> tag. Multilingual plugins (e.g. for WordPress) usually set it themselves.
Globe – visitors change the language
In the “Centred window with settings tabs” layout (the default for new installations since version 1.3.36) the banner has a globe with a language picker. Visitors can switch the banner itself to another language, and a cookie remembers the choice. You turn off the globe in the Banner appearance tab.
Banner texts in every language
In the Texts tab you choose a language and edit the texts of the banner and the settings window. A few rules:
- The texts in every language must say the same thing – the same categories, purposes and services. Differences between versions can undermine whether consent was informed.
- The “Accept all” and “Reject all” buttons must be equally visible in every language.
- Every save that changes the content, categories or the list of services creates a new content version – visitors are asked for consent again, and old consents stay in the log with the number of their version.
Cookie policy in every language
The Cookie policy tab generates a table of services and cookies in each of the 24 languages. Paste it into the privacy policy in every language version of the site and enter the policy address in the banner settings. If the policy exists in only one language, visitors from other countries do not get the information that consent requires.
Domains, subdomains and consent
| Structure of the language versions | Consent | consetgo licence |
|---|---|---|
| Folders on one domain (shop.com/de/, shop.com/fr/) | one consent for the whole domain | one |
| Subdomains (de.shop.com, fr.shop.com) | separate consent on each subdomain | separate licence for each subdomain (the address with and without www is the same domain) |
| Separate domains (shop.de, shop.fr) | separate consent on each domain | separate licence for each domain |
The law in the different EU countries comes from the same ePrivacy Directive, but national laws and the guidelines of the authorities differ in the details. If you sell in many countries, check the requirements of the data protection authority in each of them – overview: national laws.
Checklist
- Every language version has a correct lang attribute in <html>.
- In a private window the banner shows in the language of the given version of the site.
- Banner texts checked in every language in which the site runs.
- Cookie policy with the services table in every language and linked in the banner.
- With separate domains or subdomains – a banner and a licence on each of them.
You can see what the texts and the language picker look like in the panel in the demo. More about the policy itself: cookie policy and services table.
Questions and answers
Does consent given in one language version apply in another?
Yes, if the language versions are on the same domain (e.g. /en/ and /de/) – the consent cookie is shared by the whole domain. On separate domains or subdomains (de.shop.com) consent is collected separately.
How does the module know which language to show the banner in?
From the lang attribute in the page’s <html> tag (e.g. lang="de"). If the page does not have it or the language is not on the list, the module uses the default language from the settings. In the window layout with tabs, visitors can also change the language with the globe.
This is general information, not legal advice.