docs: correct useTranslation import in i18n docs (#8645)
This commit is contained in:
@@ -195,7 +195,7 @@ export const customTranslations: Config['i18n']['translations'] = {
|
||||
},
|
||||
}
|
||||
|
||||
export type CustomTranslationsObject = typeof customTranslationsObject.en
|
||||
export type CustomTranslationsObject = typeof customTranslations.en
|
||||
export type CustomTranslationsKeys = NestedKeysStripped<CustomTranslationsObject>
|
||||
```
|
||||
|
||||
@@ -224,7 +224,7 @@ Import the shared translation types to use in your [Custom Component](../admin/c
|
||||
|
||||
'use client'
|
||||
import type React from 'react'
|
||||
import { useTranslation } from '@payloadcms/ui/providers/Translation'
|
||||
import { useTranslation } from '@payloadcms/ui'
|
||||
|
||||
import type { CustomTranslationsObject, CustomTranslationsKeys } from '../custom-translations'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user