diff --git a/src/frontend/components/property-type/default-type/default-property-value.tsx b/src/frontend/components/property-type/default-type/default-property-value.tsx index 56faea447..82838a115 100644 --- a/src/frontend/components/property-type/default-type/default-property-value.tsx +++ b/src/frontend/components/property-type/default-type/default-property-value.tsx @@ -12,7 +12,7 @@ const DefaultPropertyValue: FC = ({ resource: { id: resourceId }, }) => { const rawValue = record?.params[path] - const { translateProperty } = useTranslation() + const { tl } = useTranslation() if (typeof rawValue === 'undefined') return null @@ -23,7 +23,7 @@ const DefaultPropertyValue: FC = ({ const label = option.label || rawValue return ( - {translateProperty(`${propertyPath}.${label}`, resourceId, { + {tl(`${propertyPath}.${label}`, resourceId, { defaultValue: startCase(label), })}