- {t('labelRelationship', {
- // TODO: fix this
- // @ts-ignore-next-line
+ {t('fields:labelRelationship', {
label: getTranslation(relatedCollection.labels.singular, i18n),
})}
@@ -114,7 +111,7 @@ const Component: React.FC
= (props) => {
})
}}
round
- tooltip={t('swapRelationship')}
+ tooltip={t('fields:swapRelationship')}
/>
)}
diff --git a/packages/richtext-lexical/src/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.ts b/packages/richtext-lexical/src/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.ts
index 4feae54848..e01f02da4f 100644
--- a/packages/richtext-lexical/src/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.ts
+++ b/packages/richtext-lexical/src/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.ts
@@ -1,4 +1,4 @@
-import type { i18n } from 'i18next'
+import type { I18n } from '@payloadcms/translations'
import type { LexicalEditor } from 'lexical'
import type { MutableRefObject } from 'react'
import type React from 'react'
@@ -7,7 +7,7 @@ export class SlashMenuOption {
// Icon for display
Icon: () => Promise