Skip to content

Commit

Permalink
Oops, missed this one
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeaun committed Sep 6, 2024
1 parent 7a5bf25 commit 4f07a7f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 10 deletions.
9 changes: 6 additions & 3 deletions src/components/timeline.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { t, Trans } from '@lingui/macro';
import { plural, t, Trans } from '@lingui/macro';
import { memo } from 'preact/compat';
import {
useCallback,
Expand Down Expand Up @@ -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) {
Expand Down
22 changes: 15 additions & 7 deletions src/locales/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""

Expand Down Expand Up @@ -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 ""

Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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 ""

Expand Down

0 comments on commit 4f07a7f

Please sign in to comment.