klaro-js icon indicating copy to clipboard operation
klaro-js copied to clipboard

The consent box on the left box corner don't appear if tou don't set translation to de in the config file

Open queengab opened this issue 4 years ago • 0 comments

Hi,

i'm here again :) Surely i done a mistake in the config.js file, but noticed a srtrange thing:

this is my config:

var klaroConfig = {
  testing: false,
  elementID: 'klaro',
  storageMethod: 'cookie',
  storageName: 'klaro',
  htmlTexts: true,
  cookieDomain: '.mysite.it',
  cookieExpiresAfterDays: 30,
  default: false,
  mustConsent: false,
  acceptAll: true,
  hideDeclineAll: false,
  hideLearnMore: false,
  translations: {
    de: {
      privacyPolicyUrl: '/privacypolicy/',
      purposes: {
        analytics: {
          title: "Statistiche dei visitatori" },
      }
    }
  },
  services: [
    {
      name: 'ga',
      default: true,
      translations: {
        it: {
          title: "Google Analytics",
          description: "text"        }
      },
      purposes: ["analytics"],
      cookies: [
        [/^_ga(.*)/i, '/', '.mysite.it'],
        [/^_gid/i, '/', '.mysite.it'],
      ],
      required: false,
      optOut: false,
      onlyOnce: false,
    },
  ]
};

I noticed to things:

  1. if i change this parameter from translations: { de: { to translations: { it: { the left bottom frame with read more button of the consenus appear only after a click in the privacy policy settings button that i inserted on my footer. I think i made a mistake on my config file but i wanted to report maybe it's something strange.

  2. How can i change the italian translation of the consensu frame in the bottom left corner? It showed a text that i don't write and don't understand how to change it. Maybe it' an automtic google translation?

Thanks anyway Bye Gabriele

queengab avatar Apr 21 '21 11:04 queengab