Ability to change display language from code.

Comments

4 comments

  • Hey Scott,

    Yes, this is possible. Check a bit more information here: https://support.cookiebot.com/hc/en-us/articles/360003793394-How-do-I-set-the-language-of-the-consent-banner-dialog-

    First add all languages in the cookiebot manager that you want to use. Then wherever you are calling the scripts you can pass a dynamic value to the data-culture attribute with the locale of the current page and this will display the necessary language.

    Regards,
    Martin

    0
    Comment actions Permalink
  • Avatar
    Scott Ashmore

    Thanks for your response Martin!

    But if our client sets all the copy for CookieBot within our cms, how do we pass that copy to CookieBot?

    I don't want to just set the language for CookieBot I want to pass custom copy to it via a script or otherwise.

    Our client has partners all over the world who are responsible for translating the cookie copy so having 47 different people log into our cookiebot account and update the copy there isn't really a viable option I think.

    Hopefully you understand what I'm trying to achieve : )

    Regards,

    Scott

    0
    Comment actions Permalink
  • Hey Scott,

    From Cookiebot admin panel you could set a custom copy in all different languages you want, but it needs to be done manually through the cookiebot manager (admin panel). 
    Unfortunately, there is not an option to create a custom copy which to be passed to Cookiebot using script with dynamic value. I hope that this answer your question. 

    Regards,
    Spas

    0
    Comment actions Permalink
  • Avatar
    Scott Ashmore

    Hello Spas,

    That answers my question perfectly. Thanks for you help!

    Regards,

    Scott

    0
    Comment actions Permalink

Please sign in to leave a comment.