fix label i18n - add new relationship tooltip

This commit is contained in:
Supakarn Laorattanakul
2022-12-15 02:29:55 +07:00
parent d9c45f62b1
commit 36c1008a22

View File

@@ -111,7 +111,7 @@ export const AddNewRelation: React.FC<Props> = ({ path, hasMany, relationTo, val
className={`${baseClass}__tooltip`}
show={showTooltip}
>
{t('addNewLabel', { label: relatedCollections[0].labels.singular })}
{t('addNewLabel', { label: getTranslation(relatedCollections[0].labels.singular, i18n) })}
</Tooltip>
<Plus />
</DocumentDrawerToggler>