For Workes & Pages, what is the name of the domain?
a-hr.xyz
What is the error number?
n/a
What is the error message?
n/a
What is the issue or error you’re encountering
Zaraz Consent is calling tranlated version only based on browser language
What are the steps to reproduce the issue?
As far as I understood, in the default set up Zaraz Consent is calling a translated version based on the user browser language.
However, in our case this is a problem as the law in Ukraine demands to display Ukrainian text by default (later the user can select English if they wish to).
We got this sorted for the pages (using CF worker), but I’m struggling to find a way to change the default approach set in Zaraz.
What we are trying to achieve: if the user lands on the Ukrainian page for the first time (the worker makes this happen even if an English version of this page was requested) the consent modal has to be displayed in Ukrainian (regardless of the browser language).
What tools are available:
- pll_language cookie set by Polylang plugin (default value=“ua” on the pages in Ukrainian)
- html lang=“ua” in the page source code
@yoav_zaraz I hope you can suggest if/how we can force the translation to be called as described above.
Since it’s relevant to the topic, I also would like to implement the removal of the value for pll_language cookie if the user selects “reject all” (currently, the value remains stored in the cookie based on the page language).
Many thanks in advance,
Igor