Hooks

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:

Warning: ExtractedTypeTable: Could not extract "Translations" from "./packages/translations/src/types.ts" using base path "/vercel/path0/apps/c15t-docs/.leadtype/c15t". Verify the path/name and that the file is included by your tsconfig.

Loading…

With setLanguage

Translations update automatically when the language changes: