Skip to content

Commit 77f96a4

Browse files
authored
docs: remove unused variable from custom field label translation (#14911)
### What? There is an unused variable in one of the i18n custom translation examples. ### Why? Improve overall readability of documentation. ### How? Remove the unused variable.
1 parent 848ea65 commit 77f96a4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/configuration/i18n.mdx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,7 @@ Additionally, Payload exposes the `t` function in various places, for example in
262262
```ts
263263
// <rootDir>/fields/myField.ts
264264

265-
import type {
266-
DefaultTranslationKeys,
267-
TFunction,
268-
} from '@payloadcms/translations'
265+
import type { TFunction } from '@payloadcms/translations'
269266
import type { Field } from 'payload'
270267

271268
import { CustomTranslationsKeys } from '../custom-translations'

0 commit comments

Comments
 (0)