Skip to content

Commit 36c1008

Browse files
committed
fix label i18n - add new relationship tooltip
1 parent d9c45f6 commit 36c1008

File tree

1 file changed

+1
-1
lines changed
  • src/admin/components/forms/field-types/Relationship/AddNew

1 file changed

+1
-1
lines changed

src/admin/components/forms/field-types/Relationship/AddNew/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export const AddNewRelation: React.FC<Props> = ({ path, hasMany, relationTo, val
111111
className={`${baseClass}__tooltip`}
112112
show={showTooltip}
113113
>
114-
{t('addNewLabel', { label: relatedCollections[0].labels.singular })}
114+
{t('addNewLabel', { label: getTranslation(relatedCollections[0].labels.singular, i18n) })}
115115
</Tooltip>
116116
<Plus />
117117
</DocumentDrawerToggler>

0 commit comments

Comments
 (0)