useTranslations
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: