When the attribute 'data-culture' is applied to the Cookiebot script tags, the banner and declaration will display in the language defined in the attribute value as a two-letter ISO language-code.
To set the language dynamically by your content management system (CMS), use the built in CMS function to get the language of the current page.
Example on implementing language match in Wordpress CMS header template file:
<?php $curLang = substr(get_locale(), 0, 2); ?>
In the Cookiebot manager you must create a language variant for each language used on your website. If no language variant has been created for the language applied in data-culture, the language of the banner and declaration will show in the default language selected in the Cookiebot manager.
Using the data-culture attribute overrides the configuration of default language and auto-detection of the individual user's preferred language.
Last updated: 2 May 2018