Usercentrics - PUBLIC

How can I adapt the language programatically according to the websites language after using the websites "language switch" (V2)

If you want to show the Usercentrics CMP Banner always in the language your website is shown - even after the "language switch" on your website was used - you can learn here how to do so.

If you want to show the Usercentrics CMP Banner always in the language your website is shown - even after the "language switch" on your website was used - you can learn here how to do so.

Let's assume your website is available in several languages with a switch for the user to select the language.

For this case, it is recommended to use the “automatic / strict mode” (whichever suits you best) to initially get the language of the user. Then you can build a logic yourself via the method UC_UI.updateLanguage();.

If a user now uses that language switch on the website, you can change the language of the banner via that method programmatically.


Do you need further help?

How can I get help with technical questions?

 

Usercentrics - PUBLIC