klaro-js
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
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:
-
if i change this parameter from
translations: { de: {totranslations: { 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. -
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