diff --git a/components/ContentRenderer/components/Attachment/DownloadLink.tsx b/components/ContentRenderer/components/Attachment/DownloadLink.tsx index 0159480b0..c30264a1c 100644 --- a/components/ContentRenderer/components/Attachment/DownloadLink.tsx +++ b/components/ContentRenderer/components/Attachment/DownloadLink.tsx @@ -1,7 +1,7 @@ import { translations } from '@prezly/theme-kit-nextjs'; import classNames from 'classnames'; -import { FormattedMessage } from '@/adapters/client'; +import { FormattedMessage, useLocale } from '@/adapters/client'; import { IconDownload } from '@/icons'; import styles from './DownloadLink.module.scss'; @@ -11,9 +11,11 @@ interface Props { } export function DownloadLink({ className }: Props) { + const locale = useLocale(); + return (
-
-
-
{totalResults ? (
-
-
-