javascriptangularangular16cookieconsent

Klaro integration text change "Let me choose"


I have configured klaro cookie package in my Angular project with all the required configurations, but I want to change the text "Let me choose":

klaro-example-let-me-choose-text

What kind of configuration I have to change to change the text?


Solution

  • We need to set the translation manually, the path for this is consentNotice.learnMore!

    Klaro Github translations List

    export const klaroConfig = {
      translations: {
        en: {
          googleAnalytics: {
            title: 'Google Analytics',
            description:
              'The analytics service ran by a most definitely non-evil company.',
          },
          purposes: {
            analytics: 'Analytics',
            styling: 'Styling',
          },
          consentNotice: {
            learnMore: 'let me choose it!'
          }
        },
      },
      ...
    

    Stackblitz Demo