Skip to content

Commit e3d560c

Browse files
committed
fix: trans component usage
1 parent d905208 commit e3d560c

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

src/sections/file/file-metadata/FileMetadata.tsx

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,20 @@ export function FileMetadata({
9090
<strong>{t('metadata.fields.downloadUrl.title')}</strong>
9191
</Col>
9292
<Col>
93-
<Trans i18nKey="metadata.fields.downloadUrl.description">
94-
<p className={styles['help-text']}>
95-
Use the Download URL in a Wget command or a download manager to avoid
96-
interrupted downloads, time outs or other failures.{' '}
97-
<a href="https://guides.dataverse.org/en/6.1/user/find-use-data.html#downloading-via-url">
98-
User Guide - Downloading via URL
99-
</a>
100-
</p>
101-
</Trans>
93+
<p className={styles['help-text']}>
94+
<Trans
95+
t={t}
96+
i18nKey="metadata.fields.downloadUrl.description"
97+
components={{
98+
1: (
99+
<a
100+
href="https://guides.dataverse.org/en/6.1/user/find-use-data.html#downloading-via-url"
101+
target="_blank"
102+
rel="noreferrer"></a>
103+
)
104+
}}
105+
/>
106+
</p>
102107
<code className={styles.code}>
103108
{appConfig.backendUrl}
104109
{removeQueryParams(metadata.downloadUrls.original)}

0 commit comments

Comments
 (0)