Cookie Consent on Multi Language

Hey bubblers :slightly_smiling_face:

I have an issue with Cookie Consent on multi language app…
I would like to show cookie notification on different language depending on Current language.
I have tried to use simple HTML element with script and Run Script workflow when page is loaded for cookie consent script with App Text (?). But id doesn’t load every time when you change the page without accepting the cookies…
If I use Script/meta tags in header in Settings, I cannot set up multiple languages string (conditions or App text (?)).

Do you know an elegant solution?

Code for Coookie consent is simple:

window.addEventListener("load", function(){
window.cookieconsent.initialise({
  "palette": {
    "popup": {
      "background": "#fff6f6",
      "text": "#268696"
    },
    "button": {
      "background": "transparent",
      "text": "#268696",
      "border": "#268696"
    }
  },
  "position": "bottom-right",
  "type": "opt-in",
  "content": {
    "message": "Um unsere Webseite für Sie optimal zu gestalten und fortlaufend verbessern zu können, verwenden wir Cookies. Durch die weitere Nutzung der Webseite stimmen Sie der Verwendung von Cookies zu. Weitere Informationen zu Cookies erhalten Sie in unserer",
    "dismiss": "Nur notwendige Cookies erlauben",
    "allow": "OK",
    "link": "Datenschutzerklärung",
    "href": "/datenschutz"
  }
})});
1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.