Oops, missed this one

This commit is contained in:
Lim Chee Aun 2024-09-06 09:09:51 +08:00
parent 7a5bf25ed6
commit 4f07a7f55f
2 changed files with 21 additions and 10 deletions

View file

@ -1,4 +1,4 @@
import { t, Trans } from '@lingui/macro';
import { plural, t, Trans } from '@lingui/macro';
import { memo } from 'preact/compat';
import {
useCallback,
@ -583,9 +583,12 @@ const TimelineItem = memo(
let fItems = filteredItems(items, filterContext);
let title = '';
if (type === 'boosts') {
title = `${fItems.length} Boosts`;
title = plural(fItems.length, {
one: '# Boost',
other: '# Boosts',
});
} else if (type === 'pinned') {
title = 'Pinned posts';
title = t`Pinned posts`;
}
const isCarousel = type === 'boosts' || type === 'pinned';
if (isCarousel) {

View file

@ -601,7 +601,7 @@ msgstr ""
#: src/components/compose.jsx:1118
#: src/components/status.jsx:1961
#: src/components/timeline.jsx:979
#: src/components/timeline.jsx:982
msgid "Content warning"
msgstr ""
@ -844,13 +844,13 @@ msgstr ""
#: src/components/compose.jsx:3454
#: src/components/media-modal.jsx:387
#: src/components/timeline.jsx:884
#: src/components/timeline.jsx:887
msgid "Previous"
msgstr ""
#: src/components/compose.jsx:3472
#: src/components/media-modal.jsx:406
#: src/components/timeline.jsx:901
#: src/components/timeline.jsx:904
msgid "Next"
msgstr ""
@ -1202,7 +1202,7 @@ msgstr ""
#: src/components/status.jsx:3406
#: src/components/status.jsx:3502
#: src/components/status.jsx:3580
#: src/components/timeline.jsx:968
#: src/components/timeline.jsx:971
#: src/pages/catchup.jsx:75
#: src/pages/catchup.jsx:1859
msgid "Filtered"
@ -2301,13 +2301,21 @@ msgstr ""
msgid "Try again"
msgstr ""
#: src/components/timeline.jsx:941
#: src/components/timeline.jsx:948
#: src/components/timeline.jsx:586
msgid "{0, plural, one {# Boost} other {# Boosts}}"
msgstr "{0, plural, one {# Boost} other {# Boosts}}"
#: src/components/timeline.jsx:591
msgid "Pinned posts"
msgstr "Pinned posts"
#: src/components/timeline.jsx:944
#: src/components/timeline.jsx:951
#: src/pages/catchup.jsx:1876
msgid "Thread"
msgstr ""
#: src/components/timeline.jsx:963
#: src/components/timeline.jsx:966
msgid "<0>Filtered</0>: <1>{0}</1>"
msgstr ""