diff --git a/src/components/Note/Highlight.tsx b/src/components/Note/Highlight.tsx index 17f8e28e..80cd93f2 100644 --- a/src/components/Note/Highlight.tsx +++ b/src/components/Note/Highlight.tsx @@ -7,6 +7,7 @@ import { cn } from '@/lib/utils' import { useSecondaryPage } from '@/PageManager' import { Event } from 'nostr-tools' import { useMemo } from 'react' +import { useTranslation } from 'react-i18next' import Content from '../Content' import ContentPreview from '../ContentPreview' import UserAvatar from '../UserAvatar' @@ -27,6 +28,7 @@ export default function Highlight({ event, className }: { event: Event; classNam } function HighlightSource({ event }: { event: Event }) { + const { t } = useTranslation() const { push } = useSecondaryPage() const sourceTag = useMemo(() => { let sourceTag: string[] | undefined @@ -84,7 +86,7 @@ function HighlightSource({ event }: { event: Event }) { if (sourceTag[0] === 'r') { return (
- {'From '} + {t('From')}{' '} -
{'From'}
+
{t('From')}
{pubkey && } {referenceEvent && isSupportedKind(referenceEvent.kind) ? (