68publishers / cookie-consent

:cookie: Cookie-consent widget with GTM, GCM & CMP integration
MIT License
113 stars 28 forks source link

Document language not working with cz-CZ #29

Closed AlkoKod closed 2 years ago

AlkoKod commented 2 years ago

Hello, I am trying to change the language by document html language:

In Tag manager I have this:

image

In HTML:

<html lang="cs-CZ" class="show--consent"> <html lang="en-US" class="show--consent">

but it doesn't change at all. What should I do?

jelen07 commented 2 years ago

Hi Aleš! As mentioned in README, the language codes have to be ISO 639-1. If you're using different codes, use them as translation keys as well.

AlkoKod commented 2 years ago

Hello Vojtěch. I would like to use default translation for some small websites, but currently I cannot modify the HTML lang attribute from cs-CZ to cs (using WordPress CMS).

tg666 commented 2 years ago

@AlkoKod Hello, I already released the version v0.3.3 that "fixes" it.

Just update the package version and define your locales in a tag configuration:

Snímek obrazovky 2022-01-05 v 19 11 08

Default translations will be used.

AlkoKod commented 2 years ago

@AlkoKod Hello, I already released the version v0.3.3 that "fixes" it.

Just update the package version and define your locales in a tag configuration:

Snímek obrazovky 2022-01-05 v 19 11 08

Default translations will be used.

Thank you very very much! ♥️🌶️