diff --git a/apps/desktop/src/routes/activty/components/activityRepost.tsx b/apps/desktop/src/routes/activty/components/activityRepost.tsx index 3386ba6d1..cc577bd0f 100644 --- a/apps/desktop/src/routes/activty/components/activityRepost.tsx +++ b/apps/desktop/src/routes/activty/components/activityRepost.tsx @@ -1,8 +1,11 @@ import { User } from "@lume/ark"; import { NDKEvent } from "@nostr-dev-kit/ndk"; +import { useTranslation } from "react-i18next"; import { Link } from "react-router-dom"; export function ActivityRepost({ event }: { event: NDKEvent }) { + const { t } = useTranslation(); + return (
reposted
+{t("activity.repost")}
mention you
+{t("activity.mention")}
- zapped {compactNumber.format(invoice.amount)} sats + {t("activity.zap")} {compactNumber.format(invoice.amount)} sats
diff --git a/apps/desktop/src/routes/activty/components/list.tsx b/apps/desktop/src/routes/activty/components/list.tsx index 61755fa5e..02d6ff2f4 100644 --- a/apps/desktop/src/routes/activty/components/list.tsx +++ b/apps/desktop/src/routes/activty/components/list.tsx @@ -4,6 +4,7 @@ import { FETCH_LIMIT } from "@lume/utils"; import { NDKEvent, NDKKind } from "@nostr-dev-kit/ndk"; import { useInfiniteQuery, useQueryClient } from "@tanstack/react-query"; import { useCallback, useMemo } from "react"; +import { useTranslation } from "react-i18next"; import { ActivityRepost } from "./activityRepost"; import { ActivityText } from "./activityText"; import { ActivityZap } from "./activityZap"; @@ -12,6 +13,7 @@ export function ActivityList() { const ark = useArk(); const queryClient = useQueryClient(); + const { t } = useTranslation(); const { data, hasNextPage, isLoading, isFetchingNextPage, fetchNextPage } = useInfiniteQuery({ queryKey: ["activity"], @@ -86,7 +88,7 @@ export function ActivityList() { ) : !allEvents.length ? (🎉
-Yo! Nothing new yet.
+{t("activity.empty")}
- @ Someone has reposted to your note + {t("activity.boostSubtitle")}
- @ Someone has replied to your note + {t("activity.conversationSubtitle")}
New reply
++ {t("activity.newReply")} +