Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for custom Contextual Consent dialog messages #357

Open
roseg43 opened this issue Jan 18, 2021 · 1 comment
Open

Allow for custom Contextual Consent dialog messages #357

roseg43 opened this issue Jan 18, 2021 · 1 comment
Labels
enhancement New feature or request feature-request

Comments

@roseg43
Copy link

roseg43 commented Jan 18, 2021

The problem
Currently you can't set custom messages to be shown within the contextual consent dialog. This limits the application of the feature solely to external resources like iframe embeds, content embeds, etc. I'd like to be able to use contextual consent for components like forms that use captchas, using descriptive messages such as "We use spam protection on our forms that requires us to store cookies on your system. Would you like to load this form?"

Proposed solution
Add extra settings to the config translations object for contextualConsent translations. If set, this should be used instead of the default text. Field names from the example are taken from the global translations.

Example:

{
    services: [
        {
            purposes: ['security'],
            name: 'recaptcha',
            translations: {
               zz: {
                   contextualConsent: {
                       acceptAlways: "Always allow ReCaptcha",
                       acceptOnce: "I understand, load form",
                       description: 
                        "This form uses third-party spam protection that stores cookies to assist in \
                        verifying that you are not a bot."
                   }
               } 
            }
        }
    ]
}

Additional context
I understand that this can be done using watchers, but this strikes me as something that should be supported by the feature, seeing as how other service-related content supports custom translations and content.

@adewes
Copy link
Contributor

adewes commented Feb 22, 2021

Hi @roseg43! Ah I see, you want to make the translations configurable for every service? I think that should be doable.

@adewes adewes added enhancement New feature or request feature-request labels Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature-request
Projects
None yet
Development

No branches or pull requests

2 participants