Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

preferencesDialogTemplate won't replace default value #190

Closed
sephi-dev opened this issue Nov 15, 2021 · 4 comments
Closed

preferencesDialogTemplate won't replace default value #190

sephi-dev opened this issue Nov 15, 2021 · 4 comments

Comments

@sephi-dev
Copy link

I am currently trying to replace default values for preferencesDialogTemplate following the doc :

  • I copy paste the default one
  • Here is the new :
const dialogPreference = {
    headings: {
      allowValue: "Autoriser",
      categoryValue: "Categorie",
      purposeValue: "But",
      toolsValue: "Outils",
    },
    checkboxes: {
      noValue: "Non",
      yesValue: "Oui",
    },
    actionButtons: {
      cancelValue: "Annuler",
      saveValue: "Sauvegarder",
    },
    cancelDialogButtons: {
      cancelValue: "Oui, Annuler",
      backValue: "Retour",
    },
    categories: [
      {
        key: "functionnal",
        name: t("cookie-consent-functional-title"),
        description: t("cookie-consent-functional-content"),
      },
      {
        key: "marketing",
        name: t("cookie-consent-market-title"),
        description: t("cookie-consent-market-content"),
      },
      {
        key: "advertising",
        name: t("cookie-consent-publicity-title"),
        description: t("cookie-consent-publicity-content"),
      },
      {
        key: "essential",
        name: t("cookie-consent-functional-title"),
        description: t("cookie-consent-functional-content"),
      },
    ],
  };

Capture d’écran 2021-11-15 à 16 57 14

As you can see, nothing happen for anything.

Stack :

"next": "^12.0.2",
"@segment/consent-manager": "^5.1.0",

Any thoughts ?

@felipe-najson-ntf
Copy link
Contributor

Hi @davidvenin, DialogTemplate preference is not enabled in the current version.

For this to be available, we have to release a version of Consent Manager with the new features. I'm waiting for you to approve the pr #184 which is necessary to publish this new version.
Sorry for the delay. Please be patient, in these days we will publish this new version.

Greetings, Segment team.

@nd4p90x
Copy link
Collaborator

nd4p90x commented Dec 8, 2021

Version 5.4.0 closes this issue, thank you

@nd4p90x nd4p90x closed this as completed Dec 8, 2021
@sephi-dev
Copy link
Author

Thank you for the release. Perfect for me.

@bencehusi
Copy link

bencehusi commented Nov 21, 2023

Using https://unpkg.com/@segment/consent-manager@5.3.0/standalone/consent-manager.js I still can't get the default values to override.

And just as I commented saw the version mismatch. It works. Apologies for the confusion.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants