From 1d6eb5c05844723bebd2aaaabfe7fb5924adb0b5 Mon Sep 17 00:00:00 2001 From: Minseo Lee Date: Tue, 3 Sep 2024 17:50:53 +0900 Subject: [PATCH] Update FeedItem.tsx --- src/view/com/notifications/FeedItem.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/view/com/notifications/FeedItem.tsx b/src/view/com/notifications/FeedItem.tsx index 5ecefa8c26..af300070d6 100644 --- a/src/view/com/notifications/FeedItem.tsx +++ b/src/view/com/notifications/FeedItem.tsx @@ -84,7 +84,7 @@ let FeedItem = ({ }): React.ReactNode => { const queryClient = useQueryClient() const pal = usePalette('default') - const {_} = useLingui() + const {_, i18n} = useLingui() const t = useTheme() const [isAuthorsExpanded, setAuthorsExpanded] = useState(false) const itemHref = useMemo(() => { @@ -169,11 +169,11 @@ let FeedItem = ({ } const formattedCount = - authors.length > 1 ? formatCount(authors.length - 1) : '' + authors.length > 1 ? formatCount(i18n, authors.length - 1) : '' const firstAuthorName = sanitizeDisplayName( authors[0].profile.displayName || authors[0].profile.handle, ) - const niceTimestamp = niceDate(item.notification.indexedAt) + const niceTimestamp = niceDate(i18n, item.notification.indexedAt) let a11yAuthor = firstAuthorName let author = (