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

Multilanguage link - privacyPolicy

Open BitchCO opened this issue 6 years ago • 3 comments

Hi! First of all - thanks for great plugin!

I serach in examples, but with no luck, so my question is: How to link a page with "Privacy settings" depending on language?

Example

     // Put a link to your privacy policy here (relative or absolute).
    privacyPolicy: 'https://domain.tld/privacy-policy/'

and for some other language should be: privacyPolicy: 'https://domain.tld/hr/pravila-privatnosti/'

I tried something like this, but with no luck

translations: {
        hr: {
            privacyPolicy: 'https://domain.tld/hr/pravila-privatnosti/',
            consentModal: {
            ...

Thanks in advance for the answer!

BitchCO avatar Oct 17 '18 13:10 BitchCO

Good idea, we'll add this in one of the next releases.

adewes avatar Dec 10 '18 15:12 adewes

@BitchCO I just created a PR which addresses your issue #161

gutschik avatar Jan 28 '20 15:01 gutschik

Uhh, I already forgot about this... I'm doing a new multilingual project at the moment so I'm looking forward to trying it out! ;)

BitchCO avatar Jan 29 '20 12:01 BitchCO