useTranslations
Access the current language's translations for building custom consent UI.
useTranslations() returns the Translations object for the currently active language. Use it when building custom consent UI that needs translated text.
Translation Sections
The returned Translations object has these sections:
Loading…
With setLanguage
Translations update automatically when the language changes: