diff --git a/src/sections/dataset/dataset-files/files-table/file-info/file-info-cell/file-info-data/FileDate.tsx b/src/sections/dataset/dataset-files/files-table/file-info/file-info-cell/file-info-data/FileDate.tsx index 1aa10a0a3..b0622d43e 100644 --- a/src/sections/dataset/dataset-files/files-table/file-info/file-info-cell/file-info-data/FileDate.tsx +++ b/src/sections/dataset/dataset-files/files-table/file-info/file-info-cell/file-info-data/FileDate.tsx @@ -1,13 +1,17 @@ -import { FileDate as FileDateModel } from '../../../../../../../files/domain/models/FileMetadata' import { useTranslation } from 'react-i18next' +import { FileDate as FileDateModel } from '../../../../../../../files/domain/models/FileMetadata' import { DateHelper } from '../../../../../../../shared/helpers/DateHelper' export function FileDate({ date }: { date: FileDateModel }) { const { t } = useTranslation('files') + return (
- {t(`table.date.${date.type}`)} + {t(`table.date.${date.type}`)}{' '} +
) diff --git a/src/sections/file/file-embargo/FileEmbargoDate.tsx b/src/sections/file/file-embargo/FileEmbargoDate.tsx index 6bbbcc818..65294f11e 100644 --- a/src/sections/file/file-embargo/FileEmbargoDate.tsx +++ b/src/sections/file/file-embargo/FileEmbargoDate.tsx @@ -24,7 +24,13 @@ export function FileEmbargoDate({
{t(embargoTypeOfDate(embargo.isActive, datasetPublishingStatus))}{' '} -