diff --git a/components/HelpTooltip.tsx b/components/HelpTooltip.tsx index ac6d79d..b587adc 100644 --- a/components/HelpTooltip.tsx +++ b/components/HelpTooltip.tsx @@ -1,6 +1,7 @@ 'use client'; import { useState, useRef, useEffect } from 'react'; +import { useTranslations } from 'next-intl'; interface HelpTooltipProps { shortText: string; // Text für Hover @@ -9,6 +10,7 @@ interface HelpTooltipProps { } export default function HelpTooltip({ shortText, longText, position = 'top' }: HelpTooltipProps) { + const t = useTranslations('CuratorHelp'); const [showHover, setShowHover] = useState(false); const [showModal, setShowModal] = useState(false); const tooltipRef = useRef(null); @@ -143,7 +145,7 @@ export default function HelpTooltip({ shortText, longText, position = 'top' }: H onClick={(e) => e.stopPropagation()} >
-

Hilfe

+

{t('modalTitle')}