klaro-js
klaro-js copied to clipboard
Some fallback copy translations don't work
Howdy chaps 👋
Firstly thanks so much for all your work on this fantastic package thus far. I just wanted to make you aware of an issue with copy fallbacks, some work and some don't using the latest version ATTOW (0.7.18)
Partial config
const config = {
translations: {
zz: {
consentNotice: {
description: "doesn't work",
},
consentModal: {
title: "doesn't work",
description: "doesn't work",
},
purposes: {
analytics: {
description: "works",
},
security: {
description: "works",
},
},
},
},
};
Current behaviour
As noted in config, consentNotice and consentModal fallbacks don't work using the zz key but purposes do. Switch zz to en and they all work fine, but I'd rather define as global fallbacks.
Expected behaviour
I expected anything that could be defined using the en key would work with the zz key as a global fallback.