mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-24 16:58:47 +01:00
Oops, missed this one
This commit is contained in:
parent
7a5bf25ed6
commit
4f07a7f55f
2 changed files with 21 additions and 10 deletions
|
@ -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) {
|
||||
|
|
|
@ -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 ""
|
||||
|
||||
|
|
Loading…
Reference in a new issue