---
title: useTranslations
description: The useTranslations hook provides access to the consent manager's translations.
lastModified: 2025-08-20
availableIn:
  - framework: 'next'
    url: '/docs/frameworks/next/hooks/use-translations'
    title: 'Next.js'
  - framework: 'react'
    url: '/docs/frameworks/react/hooks/use-translations'
    title: 'React'
---
The `useTranslations` hook provides access to the consent manager's translations found in the store and updates when the translations change.

## Usage

```tsx
function MyComponent() {
  const translations = useTranslations();
  
  const title = translations.cookieBanner.title;
  // Use the translations in your component
  return <h1>{title}</h1>;
}
```

## Returns

The `useTranslations` hook returns the translations object.

### Translations

| Property             | Type                                                                                                                                                                                                                                                                                                                    | Description | Default |  Required  |
| :------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :---------- | :------ | :--------: |
| common               | Partial\<CommonTranslations>                                                                                                                                                                                                                                                                                            |             | -       | ✅ Required |
| cookieBanner         | Partial\<CookieBannerTranslations>                                                                                                                                                                                                                                                                                      |             | -       | ✅ Required |
| consentManagerDialog | Partial\<ConsentManagerDialogTranslations>                                                                                                                                                                                                                                                                              |             | -       | ✅ Required |
| consentTypes         | \{ experience?: Partial\<ConsentTypeTranslations> \| undefined; functionality?: Partial\<ConsentTypeTranslations> \| undefined; marketing?: Partial\<ConsentTypeTranslations> \| undefined; measurement?: Partial\<ConsentTypeTranslations> \| undefined; necessary?: Partial\<ConsentTypeTranslations> \| undefined; } |             | -       | ✅ Required |
| frame                | Partial\<FrameTranslations> \| undefined                                                                                                                                                                                                                                                                                |             | -       |  Optional  |
| legalLinks           | Partial\<LegalLinksTranslations> \| undefined                                                                                                                                                                                                                                                                           |             | -       |  Optional  |

### CommonTranslations

| Property  | Type   | Description | Default |  Required  |
| :-------- | :----- | :---------- | :------ | :--------: |
| acceptAll | string |             | -       | ✅ Required |
| rejectAll | string |             | -       | ✅ Required |
| customize | string |             | -       | ✅ Required |
| save      | string |             | -       | ✅ Required |

### CookieBannerTranslations

| Property    | Type   | Description | Default |  Required  |
| :---------- | :----- | :---------- | :------ | :--------: |
| title       | string |             | -       | ✅ Required |
| description | string |             | -       | ✅ Required |

### ConsentManagerDialogTranslations

| Property    | Type   | Description | Default |  Required  |
| :---------- | :----- | :---------- | :------ | :--------: |
| title       | string |             | -       | ✅ Required |
| description | string |             | -       | ✅ Required |

### ConsentTypeTranslations

| Property    | Type   | Description | Default |  Required  |
| :---------- | :----- | :---------- | :------ | :--------: |
| title       | string |             | -       | ✅ Required |
| description | string |             | -       | ✅ Required |
