3 contexts of "Following"

This commit is contained in:
Lim Chee Aun 2024-10-14 22:55:52 +08:00
parent 9d5494e1c7
commit bcd7507603
5 changed files with 204 additions and 183 deletions

View file

@ -413,7 +413,7 @@ function AccountInfo({
<span></span> <Trans>Followers</Trans> <span></span> <Trans>Followers</Trans>
</div> </div>
<div> <div>
<span></span> <Trans>Following</Trans> <span></span> <Trans id="following.stats">Following</Trans>
</div> </div>
<div> <div>
<span></span> <Trans>Posts</Trans> <span></span> <Trans>Posts</Trans>
@ -739,7 +739,10 @@ function AccountInfo({
// states.showAccount = false; // states.showAccount = false;
setTimeout(() => { setTimeout(() => {
states.showGenericAccounts = { states.showGenericAccounts = {
heading: t`Following`, heading: t({
id: 'following.stats',
message: 'Following',
}),
fetchAccounts: fetchFollowing, fetchAccounts: fetchFollowing,
instance, instance,
excludeRelationshipAttrs: isSelf ? ['following'] : [], excludeRelationshipAttrs: isSelf ? ['following'] : [],
@ -753,7 +756,7 @@ function AccountInfo({
<span title={followingCount}> <span title={followingCount}>
{shortenNumber(followingCount)} {shortenNumber(followingCount)}
</span>{' '} </span>{' '}
<Trans>Following</Trans> <Trans id="following.stats">Following</Trans>
<br /> <br />
</LinkOrDiv> </LinkOrDiv>
<LinkOrDiv <LinkOrDiv

View file

@ -190,7 +190,7 @@ function NavMenu(props) {
<MenuLink to="/following"> <MenuLink to="/following">
<Icon icon="following" size="l" />{' '} <Icon icon="following" size="l" />{' '}
<span> <span>
<Trans>Following</Trans> <Trans id="following.title">Following</Trans>
</span> </span>
</MenuLink> </MenuLink>
)} )}

View file

@ -134,7 +134,10 @@ const fetchAccountTitle = pmem(async ({ id }) => {
export const SHORTCUTS_META = { export const SHORTCUTS_META = {
following: { following: {
id: 'home', id: 'home',
title: (_, index) => (index === 0 ? t`Home` : t`Following`), title: (_, index) =>
index === 0
? t`Home`
: t({ id: 'following.title', message: 'Following' }),
path: '/', path: '/',
icon: 'home', icon: 'home',
}, },

360
src/locales/en.po generated
View file

@ -42,24 +42,17 @@ msgid "Mutual"
msgstr "" msgstr ""
#: src/components/account-block.jsx:182 #: src/components/account-block.jsx:182
#: src/components/account-info.jsx:1677 #: src/components/account-info.jsx:1680
msgid "Requested" msgid "Requested"
msgstr "" msgstr ""
#: src/components/account-block.jsx:186 #: src/components/account-block.jsx:186
#: src/components/account-info.jsx:416 #: src/components/account-info.jsx:1671
#: src/components/account-info.jsx:742
#: src/components/account-info.jsx:756
#: src/components/account-info.jsx:1668
#: src/components/nav-menu.jsx:193
#: src/components/shortcuts-settings.jsx:137
#: src/pages/following.jsx:20
#: src/pages/following.jsx:134
msgid "Following" msgid "Following"
msgstr "" msgstr ""
#: src/components/account-block.jsx:190 #: src/components/account-block.jsx:190
#: src/components/account-info.jsx:1059 #: src/components/account-info.jsx:1062
msgid "Follows you" msgid "Follows you"
msgstr "" msgstr ""
@ -73,7 +66,7 @@ msgid "Verified"
msgstr "" msgstr ""
#: src/components/account-block.jsx:222 #: src/components/account-block.jsx:222
#: src/components/account-info.jsx:777 #: src/components/account-info.jsx:780
msgid "Joined <0>{0}</0>" msgid "Joined <0>{0}</0>"
msgstr "" msgstr ""
@ -95,8 +88,15 @@ msgstr ""
msgid "Followers" msgid "Followers"
msgstr "" msgstr ""
#. js-lingui-explicit-id
#: src/components/account-info.jsx:416
#: src/components/account-info.jsx:742
#: src/components/account-info.jsx:759
msgid "following.stats"
msgstr "Following"
#: src/components/account-info.jsx:419 #: src/components/account-info.jsx:419
#: src/components/account-info.jsx:773 #: src/components/account-info.jsx:776
#: src/pages/account-statuses.jsx:484 #: src/pages/account-statuses.jsx:484
#: src/pages/search.jsx:237 #: src/pages/search.jsx:237
#: src/pages/search.jsx:384 #: src/pages/search.jsx:384
@ -104,7 +104,7 @@ msgid "Posts"
msgstr "" msgstr ""
#: src/components/account-info.jsx:427 #: src/components/account-info.jsx:427
#: src/components/account-info.jsx:1115 #: src/components/account-info.jsx:1118
#: src/components/compose.jsx:2488 #: src/components/compose.jsx:2488
#: src/components/media-alt-modal.jsx:45 #: src/components/media-alt-modal.jsx:45
#: src/components/media-modal.jsx:283 #: src/components/media-modal.jsx:283
@ -128,17 +128,17 @@ msgid "<0>{displayName}</0> has indicated that their new account is now:"
msgstr "" msgstr ""
#: src/components/account-info.jsx:584 #: src/components/account-info.jsx:584
#: src/components/account-info.jsx:1273 #: src/components/account-info.jsx:1276
msgid "Handle copied" msgid "Handle copied"
msgstr "" msgstr ""
#: src/components/account-info.jsx:587 #: src/components/account-info.jsx:587
#: src/components/account-info.jsx:1276 #: src/components/account-info.jsx:1279
msgid "Unable to copy handle" msgid "Unable to copy handle"
msgstr "" msgstr ""
#: src/components/account-info.jsx:593 #: src/components/account-info.jsx:593
#: src/components/account-info.jsx:1282 #: src/components/account-info.jsx:1285
msgid "Copy handle" msgid "Copy handle"
msgstr "" msgstr ""
@ -159,28 +159,28 @@ msgid "In Memoriam"
msgstr "" msgstr ""
#: src/components/account-info.jsx:709 #: src/components/account-info.jsx:709
#: src/components/account-info.jsx:747 #: src/components/account-info.jsx:750
msgid "This user has chosen to not make this information available." msgid "This user has chosen to not make this information available."
msgstr "" msgstr ""
#: src/components/account-info.jsx:802 #: src/components/account-info.jsx:805
msgid "{0} original posts, {1} replies, {2} boosts" msgid "{0} original posts, {1} replies, {2} boosts"
msgstr "" msgstr ""
#: src/components/account-info.jsx:818 #: src/components/account-info.jsx:821
msgid "{0, plural, one {{1, plural, one {Last 1 post in the past 1 day} other {Last 1 post in the past {2} days}}} other {{3, plural, one {Last {4} posts in the past 1 day} other {Last {5} posts in the past {6} days}}}}" msgid "{0, plural, one {{1, plural, one {Last 1 post in the past 1 day} other {Last 1 post in the past {2} days}}} other {{3, plural, one {Last {4} posts in the past 1 day} other {Last {5} posts in the past {6} days}}}}"
msgstr "" msgstr ""
#: src/components/account-info.jsx:831 #: src/components/account-info.jsx:834
msgid "{0, plural, one {Last 1 post in the past year(s)} other {Last {1} posts in the past year(s)}}" msgid "{0, plural, one {Last 1 post in the past year(s)} other {Last {1} posts in the past year(s)}}"
msgstr "" msgstr ""
#: src/components/account-info.jsx:855 #: src/components/account-info.jsx:858
#: src/pages/catchup.jsx:70 #: src/pages/catchup.jsx:70
msgid "Original" msgid "Original"
msgstr "" msgstr ""
#: src/components/account-info.jsx:859 #: src/components/account-info.jsx:862
#: src/components/status.jsx:2233 #: src/components/status.jsx:2233
#: src/pages/catchup.jsx:71 #: src/pages/catchup.jsx:71
#: src/pages/catchup.jsx:1445 #: src/pages/catchup.jsx:1445
@ -190,7 +190,7 @@ msgstr ""
msgid "Replies" msgid "Replies"
msgstr "" msgstr ""
#: src/components/account-info.jsx:863 #: src/components/account-info.jsx:866
#: src/pages/catchup.jsx:72 #: src/pages/catchup.jsx:72
#: src/pages/catchup.jsx:1447 #: src/pages/catchup.jsx:1447
#: src/pages/catchup.jsx:2068 #: src/pages/catchup.jsx:2068
@ -198,207 +198,207 @@ msgstr ""
msgid "Boosts" msgid "Boosts"
msgstr "" msgstr ""
#: src/components/account-info.jsx:869 #: src/components/account-info.jsx:872
msgid "Post stats unavailable." msgid "Post stats unavailable."
msgstr "" msgstr ""
#: src/components/account-info.jsx:900 #: src/components/account-info.jsx:903
msgid "View post stats" msgid "View post stats"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1063 #: src/components/account-info.jsx:1066
msgid "Last post: <0>{0}</0>" msgid "Last post: <0>{0}</0>"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1077 #: src/components/account-info.jsx:1080
msgid "Muted" msgid "Muted"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1082 #: src/components/account-info.jsx:1085
msgid "Blocked" msgid "Blocked"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1091 #: src/components/account-info.jsx:1094
msgid "Private note" msgid "Private note"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1148 #: src/components/account-info.jsx:1151
msgid "Mention <0>@{username}</0>" msgid "Mention <0>@{username}</0>"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1160 #: src/components/account-info.jsx:1163
msgid "Translate bio" msgid "Translate bio"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1171 #: src/components/account-info.jsx:1174
msgid "Edit private note" msgid "Edit private note"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1171 #: src/components/account-info.jsx:1174
msgid "Add private note" msgid "Add private note"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1191 #: src/components/account-info.jsx:1194
msgid "Notifications enabled for @{username}'s posts." msgid "Notifications enabled for @{username}'s posts."
msgstr "" msgstr ""
#: src/components/account-info.jsx:1192 #: src/components/account-info.jsx:1195
msgid "Notifications disabled for @{username}'s posts." msgid "Notifications disabled for @{username}'s posts."
msgstr "" msgstr ""
#: src/components/account-info.jsx:1204 #: src/components/account-info.jsx:1207
msgid "Disable notifications" msgid "Disable notifications"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1205 #: src/components/account-info.jsx:1208
msgid "Enable notifications" msgid "Enable notifications"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1222 #: src/components/account-info.jsx:1225
msgid "Boosts from @{username} enabled." msgid "Boosts from @{username} enabled."
msgstr "" msgstr ""
#: src/components/account-info.jsx:1223 #: src/components/account-info.jsx:1226
msgid "Boosts from @{username} disabled." msgid "Boosts from @{username} disabled."
msgstr "" msgstr ""
#: src/components/account-info.jsx:1234 #: src/components/account-info.jsx:1237
msgid "Disable boosts" msgid "Disable boosts"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1234 #: src/components/account-info.jsx:1237
msgid "Enable boosts" msgid "Enable boosts"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1250 #: src/components/account-info.jsx:1253
#: src/components/account-info.jsx:1260 #: src/components/account-info.jsx:1263
#: src/components/account-info.jsx:1861 #: src/components/account-info.jsx:1864
msgid "Add/Remove from Lists" msgid "Add/Remove from Lists"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1299 #: src/components/account-info.jsx:1302
#: src/components/status.jsx:1143 #: src/components/status.jsx:1143
msgid "Link copied" msgid "Link copied"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1302 #: src/components/account-info.jsx:1305
#: src/components/status.jsx:1146 #: src/components/status.jsx:1146
msgid "Unable to copy link" msgid "Unable to copy link"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1308 #: src/components/account-info.jsx:1311
#: src/components/shortcuts-settings.jsx:1056 #: src/components/shortcuts-settings.jsx:1059
#: src/components/status.jsx:1152 #: src/components/status.jsx:1152
#: src/components/status.jsx:3219 #: src/components/status.jsx:3219
msgid "Copy" msgid "Copy"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1323 #: src/components/account-info.jsx:1326
#: src/components/shortcuts-settings.jsx:1074 #: src/components/shortcuts-settings.jsx:1077
#: src/components/status.jsx:1168 #: src/components/status.jsx:1168
msgid "Sharing doesn't seem to work." msgid "Sharing doesn't seem to work."
msgstr "" msgstr ""
#: src/components/account-info.jsx:1329 #: src/components/account-info.jsx:1332
#: src/components/status.jsx:1174 #: src/components/status.jsx:1174
msgid "Share…" msgid "Share…"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1349 #: src/components/account-info.jsx:1352
msgid "Unmuted @{username}" msgid "Unmuted @{username}"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1361 #: src/components/account-info.jsx:1364
msgid "Unmute <0>@{username}</0>" msgid "Unmute <0>@{username}</0>"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1377 #: src/components/account-info.jsx:1380
msgid "Mute <0>@{username}</0>…" msgid "Mute <0>@{username}</0>…"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1409 #: src/components/account-info.jsx:1412
msgid "Muted @{username} for {0}" msgid "Muted @{username} for {0}"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1421 #: src/components/account-info.jsx:1424
msgid "Unable to mute @{username}" msgid "Unable to mute @{username}"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1442 #: src/components/account-info.jsx:1445
msgid "Remove <0>@{username}</0> from followers?" msgid "Remove <0>@{username}</0> from followers?"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1462 #: src/components/account-info.jsx:1465
msgid "@{username} removed from followers" msgid "@{username} removed from followers"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1474 #: src/components/account-info.jsx:1477
msgid "Remove follower…" msgid "Remove follower…"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1485 #: src/components/account-info.jsx:1488
msgid "Block <0>@{username}</0>?" msgid "Block <0>@{username}</0>?"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1509 #: src/components/account-info.jsx:1512
msgid "Unblocked @{username}" msgid "Unblocked @{username}"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1517 #: src/components/account-info.jsx:1520
msgid "Blocked @{username}" msgid "Blocked @{username}"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1525 #: src/components/account-info.jsx:1528
msgid "Unable to unblock @{username}" msgid "Unable to unblock @{username}"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1527 #: src/components/account-info.jsx:1530
msgid "Unable to block @{username}" msgid "Unable to block @{username}"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1537 #: src/components/account-info.jsx:1540
msgid "Unblock <0>@{username}</0>" msgid "Unblock <0>@{username}</0>"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1546 #: src/components/account-info.jsx:1549
msgid "Block <0>@{username}</0>…" msgid "Block <0>@{username}</0>…"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1563 #: src/components/account-info.jsx:1566
msgid "Report <0>@{username}</0>…" msgid "Report <0>@{username}</0>…"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1583 #: src/components/account-info.jsx:1586
#: src/components/account-info.jsx:2094 #: src/components/account-info.jsx:2097
msgid "Edit profile" msgid "Edit profile"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1619 #: src/components/account-info.jsx:1622
msgid "Withdraw follow request?" msgid "Withdraw follow request?"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1620 #: src/components/account-info.jsx:1623
msgid "Unfollow @{0}?" msgid "Unfollow @{0}?"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1671 #: src/components/account-info.jsx:1674
msgid "Unfollow…" msgid "Unfollow…"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1680 #: src/components/account-info.jsx:1683
msgid "Withdraw…" msgid "Withdraw…"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1687 #: src/components/account-info.jsx:1690
#: src/components/account-info.jsx:1691 #: src/components/account-info.jsx:1694
#: src/pages/hashtag.jsx:261 #: src/pages/hashtag.jsx:261
msgid "Follow" msgid "Follow"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1802 #: src/components/account-info.jsx:1805
#: src/components/account-info.jsx:1856 #: src/components/account-info.jsx:1859
#: src/components/account-info.jsx:1989 #: src/components/account-info.jsx:1992
#: src/components/account-info.jsx:2089 #: src/components/account-info.jsx:2092
#: src/components/account-sheet.jsx:37 #: src/components/account-sheet.jsx:37
#: src/components/compose.jsx:818 #: src/components/compose.jsx:818
#: src/components/compose.jsx:2444 #: src/components/compose.jsx:2444
@ -414,9 +414,9 @@ msgstr ""
#: src/components/media-modal.jsx:247 #: src/components/media-modal.jsx:247
#: src/components/notification-service.jsx:156 #: src/components/notification-service.jsx:156
#: src/components/report-modal.jsx:75 #: src/components/report-modal.jsx:75
#: src/components/shortcuts-settings.jsx:227 #: src/components/shortcuts-settings.jsx:230
#: src/components/shortcuts-settings.jsx:580 #: src/components/shortcuts-settings.jsx:583
#: src/components/shortcuts-settings.jsx:780 #: src/components/shortcuts-settings.jsx:783
#: src/components/status.jsx:2944 #: src/components/status.jsx:2944
#: src/components/status.jsx:3183 #: src/components/status.jsx:3183
#: src/components/status.jsx:3681 #: src/components/status.jsx:3681
@ -431,88 +431,88 @@ msgstr ""
msgid "Close" msgid "Close"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1807 #: src/components/account-info.jsx:1810
msgid "Translated Bio" msgid "Translated Bio"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1901 #: src/components/account-info.jsx:1904
msgid "Unable to remove from list." msgid "Unable to remove from list."
msgstr "" msgstr ""
#: src/components/account-info.jsx:1902 #: src/components/account-info.jsx:1905
msgid "Unable to add to list." msgid "Unable to add to list."
msgstr "" msgstr ""
#: src/components/account-info.jsx:1921 #: src/components/account-info.jsx:1924
#: src/pages/lists.jsx:104 #: src/pages/lists.jsx:104
msgid "Unable to load lists." msgid "Unable to load lists."
msgstr "" msgstr ""
#: src/components/account-info.jsx:1925 #: src/components/account-info.jsx:1928
msgid "No lists." msgid "No lists."
msgstr "" msgstr ""
#: src/components/account-info.jsx:1936 #: src/components/account-info.jsx:1939
#: src/components/list-add-edit.jsx:37 #: src/components/list-add-edit.jsx:37
#: src/pages/lists.jsx:58 #: src/pages/lists.jsx:58
msgid "New list" msgid "New list"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1994 #: src/components/account-info.jsx:1997
msgid "Private note about <0>@{0}</0>" msgid "Private note about <0>@{0}</0>"
msgstr "" msgstr ""
#: src/components/account-info.jsx:2024 #: src/components/account-info.jsx:2027
msgid "Unable to update private note." msgid "Unable to update private note."
msgstr "" msgstr ""
#: src/components/account-info.jsx:2047 #: src/components/account-info.jsx:2050
#: src/components/account-info.jsx:2217 #: src/components/account-info.jsx:2220
msgid "Cancel" msgid "Cancel"
msgstr "" msgstr ""
#: src/components/account-info.jsx:2052 #: src/components/account-info.jsx:2055
msgid "Save & close" msgid "Save & close"
msgstr "" msgstr ""
#: src/components/account-info.jsx:2145 #: src/components/account-info.jsx:2148
msgid "Unable to update profile." msgid "Unable to update profile."
msgstr "" msgstr ""
#: src/components/account-info.jsx:2152 #: src/components/account-info.jsx:2155
#: src/components/list-add-edit.jsx:102 #: src/components/list-add-edit.jsx:102
msgid "Name" msgid "Name"
msgstr "" msgstr ""
#: src/components/account-info.jsx:2165 #: src/components/account-info.jsx:2168
msgid "Bio" msgid "Bio"
msgstr "" msgstr ""
#: src/components/account-info.jsx:2178 #: src/components/account-info.jsx:2181
msgid "Extra fields" msgid "Extra fields"
msgstr "" msgstr ""
#: src/components/account-info.jsx:2184 #: src/components/account-info.jsx:2187
msgid "Label" msgid "Label"
msgstr "" msgstr ""
#: src/components/account-info.jsx:2187 #: src/components/account-info.jsx:2190
msgid "Content" msgid "Content"
msgstr "" msgstr ""
#: src/components/account-info.jsx:2220 #: src/components/account-info.jsx:2223
#: src/components/list-add-edit.jsx:147 #: src/components/list-add-edit.jsx:147
#: src/components/shortcuts-settings.jsx:712 #: src/components/shortcuts-settings.jsx:715
#: src/pages/filters.jsx:554 #: src/pages/filters.jsx:554
#: src/pages/notifications.jsx:934 #: src/pages/notifications.jsx:934
msgid "Save" msgid "Save"
msgstr "" msgstr ""
#: src/components/account-info.jsx:2273 #: src/components/account-info.jsx:2276
msgid "username" msgid "username"
msgstr "" msgstr ""
#: src/components/account-info.jsx:2277 #: src/components/account-info.jsx:2280
msgid "server domain name" msgid "server domain name"
msgstr "" msgstr ""
@ -526,7 +526,7 @@ msgstr ""
#: src/components/columns.jsx:19 #: src/components/columns.jsx:19
#: src/components/nav-menu.jsx:184 #: src/components/nav-menu.jsx:184
#: src/components/shortcuts-settings.jsx:137 #: src/components/shortcuts-settings.jsx:139
#: src/components/timeline.jsx:437 #: src/components/timeline.jsx:437
#: src/pages/catchup.jsx:876 #: src/pages/catchup.jsx:876
#: src/pages/filters.jsx:89 #: src/pages/filters.jsx:89
@ -626,7 +626,7 @@ msgstr ""
#: src/components/compose.jsx:1196 #: src/components/compose.jsx:1196
#: src/components/nav-menu.jsx:386 #: src/components/nav-menu.jsx:386
#: src/components/shortcuts-settings.jsx:162 #: src/components/shortcuts-settings.jsx:165
#: src/components/status.jsx:94 #: src/components/status.jsx:94
msgid "Local" msgid "Local"
msgstr "" msgstr ""
@ -737,7 +737,7 @@ msgstr ""
#: src/components/compose.jsx:2408 #: src/components/compose.jsx:2408
#: src/components/compose.jsx:2658 #: src/components/compose.jsx:2658
#: src/components/shortcuts-settings.jsx:723 #: src/components/shortcuts-settings.jsx:726
#: src/pages/catchup.jsx:1074 #: src/pages/catchup.jsx:1074
#: src/pages/filters.jsx:412 #: src/pages/filters.jsx:412
msgid "Remove" msgid "Remove"
@ -812,7 +812,7 @@ msgid "Search accounts"
msgstr "" msgstr ""
#: src/components/compose.jsx:2975 #: src/components/compose.jsx:2975
#: src/components/shortcuts-settings.jsx:712 #: src/components/shortcuts-settings.jsx:715
#: src/pages/list.jsx:359 #: src/pages/list.jsx:359
msgid "Add" msgid "Add"
msgstr "" msgstr ""
@ -1070,7 +1070,7 @@ msgstr ""
#: src/components/nav-menu.jsx:374 #: src/components/nav-menu.jsx:374
#: src/components/search-form.jsx:72 #: src/components/search-form.jsx:72
#: src/components/shortcuts-settings.jsx:52 #: src/components/shortcuts-settings.jsx:52
#: src/components/shortcuts-settings.jsx:176 #: src/components/shortcuts-settings.jsx:179
#: src/pages/search.jsx:39 #: src/pages/search.jsx:39
#: src/pages/search.jsx:209 #: src/pages/search.jsx:209
msgid "Search" msgid "Search"
@ -1244,6 +1244,14 @@ msgstr ""
msgid "New update available…" msgid "New update available…"
msgstr "" msgstr ""
#. js-lingui-explicit-id
#: src/components/nav-menu.jsx:193
#: src/components/shortcuts-settings.jsx:140
#: src/pages/following.jsx:22
#: src/pages/following.jsx:141
msgid "following.title"
msgstr "Following"
#: src/components/nav-menu.jsx:200 #: src/components/nav-menu.jsx:200
#: src/pages/catchup.jsx:871 #: src/pages/catchup.jsx:871
msgid "Catch-up" msgid "Catch-up"
@ -1251,7 +1259,7 @@ msgstr ""
#: src/components/nav-menu.jsx:207 #: src/components/nav-menu.jsx:207
#: src/components/shortcuts-settings.jsx:58 #: src/components/shortcuts-settings.jsx:58
#: src/components/shortcuts-settings.jsx:143 #: src/components/shortcuts-settings.jsx:146
#: src/pages/home.jsx:224 #: src/pages/home.jsx:224
#: src/pages/mentions.jsx:20 #: src/pages/mentions.jsx:20
#: src/pages/mentions.jsx:167 #: src/pages/mentions.jsx:167
@ -1262,7 +1270,7 @@ msgstr ""
#: src/components/nav-menu.jsx:214 #: src/components/nav-menu.jsx:214
#: src/components/shortcuts-settings.jsx:49 #: src/components/shortcuts-settings.jsx:49
#: src/components/shortcuts-settings.jsx:149 #: src/components/shortcuts-settings.jsx:152
#: src/pages/filters.jsx:24 #: src/pages/filters.jsx:24
#: src/pages/home.jsx:84 #: src/pages/home.jsx:84
#: src/pages/home.jsx:184 #: src/pages/home.jsx:184
@ -1282,7 +1290,7 @@ msgstr ""
#: src/components/nav-menu.jsx:241 #: src/components/nav-menu.jsx:241
#: src/components/nav-menu.jsx:268 #: src/components/nav-menu.jsx:268
#: src/components/shortcuts-settings.jsx:50 #: src/components/shortcuts-settings.jsx:50
#: src/components/shortcuts-settings.jsx:155 #: src/components/shortcuts-settings.jsx:158
#: src/pages/list.jsx:126 #: src/pages/list.jsx:126
#: src/pages/lists.jsx:16 #: src/pages/lists.jsx:16
#: src/pages/lists.jsx:50 #: src/pages/lists.jsx:50
@ -1297,7 +1305,7 @@ msgstr ""
#: src/components/nav-menu.jsx:276 #: src/components/nav-menu.jsx:276
#: src/components/shortcuts-settings.jsx:54 #: src/components/shortcuts-settings.jsx:54
#: src/components/shortcuts-settings.jsx:192 #: src/components/shortcuts-settings.jsx:195
#: src/pages/bookmarks.jsx:11 #: src/pages/bookmarks.jsx:11
#: src/pages/bookmarks.jsx:23 #: src/pages/bookmarks.jsx:23
msgid "Bookmarks" msgid "Bookmarks"
@ -1305,7 +1313,7 @@ msgstr ""
#: src/components/nav-menu.jsx:296 #: src/components/nav-menu.jsx:296
#: src/components/shortcuts-settings.jsx:55 #: src/components/shortcuts-settings.jsx:55
#: src/components/shortcuts-settings.jsx:198 #: src/components/shortcuts-settings.jsx:201
#: src/pages/catchup.jsx:1446 #: src/pages/catchup.jsx:1446
#: src/pages/catchup.jsx:2062 #: src/pages/catchup.jsx:2062
#: src/pages/favourites.jsx:11 #: src/pages/favourites.jsx:11
@ -1357,13 +1365,13 @@ msgstr ""
#: src/components/nav-menu.jsx:380 #: src/components/nav-menu.jsx:380
#: src/components/shortcuts-settings.jsx:57 #: src/components/shortcuts-settings.jsx:57
#: src/components/shortcuts-settings.jsx:169 #: src/components/shortcuts-settings.jsx:172
#: src/pages/trending.jsx:441 #: src/pages/trending.jsx:441
msgid "Trending" msgid "Trending"
msgstr "" msgstr ""
#: src/components/nav-menu.jsx:392 #: src/components/nav-menu.jsx:392
#: src/components/shortcuts-settings.jsx:162 #: src/components/shortcuts-settings.jsx:165
msgid "Federated" msgid "Federated"
msgstr "" msgstr ""
@ -1771,239 +1779,239 @@ msgstr ""
msgid "Media only" msgid "Media only"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:232 #: src/components/shortcuts-settings.jsx:235
#: src/components/shortcuts.jsx:186 #: src/components/shortcuts.jsx:186
msgid "Shortcuts" msgid "Shortcuts"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:240 #: src/components/shortcuts-settings.jsx:243
msgid "beta" msgid "beta"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:246 #: src/components/shortcuts-settings.jsx:249
msgid "Specify a list of shortcuts that'll appear as:" msgid "Specify a list of shortcuts that'll appear as:"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:252 #: src/components/shortcuts-settings.jsx:255
msgid "Floating button" msgid "Floating button"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:257 #: src/components/shortcuts-settings.jsx:260
msgid "Tab/Menu bar" msgid "Tab/Menu bar"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:262 #: src/components/shortcuts-settings.jsx:265
msgid "Multi-column" msgid "Multi-column"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:329 #: src/components/shortcuts-settings.jsx:332
msgid "Not available in current view mode" msgid "Not available in current view mode"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:348 #: src/components/shortcuts-settings.jsx:351
msgid "Move up" msgid "Move up"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:364 #: src/components/shortcuts-settings.jsx:367
msgid "Move down" msgid "Move down"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:376 #: src/components/shortcuts-settings.jsx:379
#: src/components/status.jsx:1280 #: src/components/status.jsx:1280
#: src/pages/list.jsx:170 #: src/pages/list.jsx:170
msgid "Edit" msgid "Edit"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:397 #: src/components/shortcuts-settings.jsx:400
msgid "Add more than one shortcut/column to make this work." msgid "Add more than one shortcut/column to make this work."
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:408 #: src/components/shortcuts-settings.jsx:411
msgid "No columns yet. Tap on the Add column button." msgid "No columns yet. Tap on the Add column button."
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:409 #: src/components/shortcuts-settings.jsx:412
msgid "No shortcuts yet. Tap on the Add shortcut button." msgid "No shortcuts yet. Tap on the Add shortcut button."
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:412 #: src/components/shortcuts-settings.jsx:415
msgid "Not sure what to add?<0/>Try adding <1>Home / Following and Notifications</1> first." msgid "Not sure what to add?<0/>Try adding <1>Home / Following and Notifications</1> first."
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:440 #: src/components/shortcuts-settings.jsx:443
msgid "Max {SHORTCUTS_LIMIT} columns" msgid "Max {SHORTCUTS_LIMIT} columns"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:441 #: src/components/shortcuts-settings.jsx:444
msgid "Max {SHORTCUTS_LIMIT} shortcuts" msgid "Max {SHORTCUTS_LIMIT} shortcuts"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:455 #: src/components/shortcuts-settings.jsx:458
msgid "Import/export" msgid "Import/export"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:465 #: src/components/shortcuts-settings.jsx:468
msgid "Add column…" msgid "Add column…"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:466 #: src/components/shortcuts-settings.jsx:469
msgid "Add shortcut…" msgid "Add shortcut…"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:513 #: src/components/shortcuts-settings.jsx:516
msgid "Specific list is optional. For multi-column mode, list is required, else the column will not be shown." msgid "Specific list is optional. For multi-column mode, list is required, else the column will not be shown."
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:514 #: src/components/shortcuts-settings.jsx:517
msgid "For multi-column mode, search term is required, else the column will not be shown." msgid "For multi-column mode, search term is required, else the column will not be shown."
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:515 #: src/components/shortcuts-settings.jsx:518
msgid "Multiple hashtags are supported. Space-separated." msgid "Multiple hashtags are supported. Space-separated."
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:584 #: src/components/shortcuts-settings.jsx:587
msgid "Edit shortcut" msgid "Edit shortcut"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:584 #: src/components/shortcuts-settings.jsx:587
msgid "Add shortcut" msgid "Add shortcut"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:620 #: src/components/shortcuts-settings.jsx:623
msgid "Timeline" msgid "Timeline"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:646 #: src/components/shortcuts-settings.jsx:649
msgid "List" msgid "List"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:785 #: src/components/shortcuts-settings.jsx:788
msgid "Import/Export <0>Shortcuts</0>" msgid "Import/Export <0>Shortcuts</0>"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:795 #: src/components/shortcuts-settings.jsx:798
msgid "Import" msgid "Import"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:803 #: src/components/shortcuts-settings.jsx:806
msgid "Paste shortcuts here" msgid "Paste shortcuts here"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:819 #: src/components/shortcuts-settings.jsx:822
msgid "Downloading saved shortcuts from instance server…" msgid "Downloading saved shortcuts from instance server…"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:848 #: src/components/shortcuts-settings.jsx:851
msgid "Unable to download shortcuts" msgid "Unable to download shortcuts"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:851 #: src/components/shortcuts-settings.jsx:854
msgid "Download shortcuts from instance server" msgid "Download shortcuts from instance server"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:909 #: src/components/shortcuts-settings.jsx:912
msgid "* Exists in current shortcuts" msgid "* Exists in current shortcuts"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:914 #: src/components/shortcuts-settings.jsx:917
msgid "List may not work if it's from a different account." msgid "List may not work if it's from a different account."
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:924 #: src/components/shortcuts-settings.jsx:927
msgid "Invalid settings format" msgid "Invalid settings format"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:932 #: src/components/shortcuts-settings.jsx:935
msgid "Append to current shortcuts?" msgid "Append to current shortcuts?"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:935 #: src/components/shortcuts-settings.jsx:938
msgid "Only shortcuts that dont exist in current shortcuts will be appended." msgid "Only shortcuts that dont exist in current shortcuts will be appended."
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:957 #: src/components/shortcuts-settings.jsx:960
msgid "No new shortcuts to import" msgid "No new shortcuts to import"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:972 #: src/components/shortcuts-settings.jsx:975
msgid "Shortcuts imported. Exceeded max {SHORTCUTS_LIMIT}, so the rest are not imported." msgid "Shortcuts imported. Exceeded max {SHORTCUTS_LIMIT}, so the rest are not imported."
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:973 #: src/components/shortcuts-settings.jsx:976
#: src/components/shortcuts-settings.jsx:997 #: src/components/shortcuts-settings.jsx:1000
msgid "Shortcuts imported" msgid "Shortcuts imported"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:983 #: src/components/shortcuts-settings.jsx:986
msgid "Import & append…" msgid "Import & append…"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:991 #: src/components/shortcuts-settings.jsx:994
msgid "Override current shortcuts?" msgid "Override current shortcuts?"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:992 #: src/components/shortcuts-settings.jsx:995
msgid "Import shortcuts?" msgid "Import shortcuts?"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:1006 #: src/components/shortcuts-settings.jsx:1009
msgid "or override…" msgid "or override…"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:1006 #: src/components/shortcuts-settings.jsx:1009
msgid "Import…" msgid "Import…"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:1015 #: src/components/shortcuts-settings.jsx:1018
msgid "Export" msgid "Export"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:1030 #: src/components/shortcuts-settings.jsx:1033
msgid "Shortcuts copied" msgid "Shortcuts copied"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:1033 #: src/components/shortcuts-settings.jsx:1036
msgid "Unable to copy shortcuts" msgid "Unable to copy shortcuts"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:1047 #: src/components/shortcuts-settings.jsx:1050
msgid "Shortcut settings copied" msgid "Shortcut settings copied"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:1050 #: src/components/shortcuts-settings.jsx:1053
msgid "Unable to copy shortcut settings" msgid "Unable to copy shortcut settings"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:1080 #: src/components/shortcuts-settings.jsx:1083
msgid "Share" msgid "Share"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:1119 #: src/components/shortcuts-settings.jsx:1122
msgid "Saving shortcuts to instance server…" msgid "Saving shortcuts to instance server…"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:1126 #: src/components/shortcuts-settings.jsx:1129
msgid "Shortcuts saved" msgid "Shortcuts saved"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:1131 #: src/components/shortcuts-settings.jsx:1134
msgid "Unable to save shortcuts" msgid "Unable to save shortcuts"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:1134 #: src/components/shortcuts-settings.jsx:1137
msgid "Sync to instance server" msgid "Sync to instance server"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:1142 #: src/components/shortcuts-settings.jsx:1145
msgid "{0, plural, one {# character} other {# characters}}" msgid "{0, plural, one {# character} other {# characters}}"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:1154 #: src/components/shortcuts-settings.jsx:1157
msgid "Raw Shortcuts JSON" msgid "Raw Shortcuts JSON"
msgstr "" msgstr ""
#: src/components/shortcuts-settings.jsx:1167 #: src/components/shortcuts-settings.jsx:1170
msgid "Import/export settings from/to instance server (Very experimental)" msgid "Import/export settings from/to instance server (Very experimental)"
msgstr "" msgstr ""
@ -2899,11 +2907,11 @@ msgstr ""
msgid "No hashtags followed yet." msgid "No hashtags followed yet."
msgstr "" msgstr ""
#: src/pages/following.jsx:136 #: src/pages/following.jsx:143
msgid "Nothing to see here." msgid "Nothing to see here."
msgstr "" msgstr ""
#: src/pages/following.jsx:137 #: src/pages/following.jsx:144
#: src/pages/list.jsx:108 #: src/pages/list.jsx:108
msgid "Unable to load posts." msgid "Unable to load posts."
msgstr "" msgstr ""

View file

@ -17,7 +17,14 @@ import useTitle from '../utils/useTitle';
const LIMIT = 20; const LIMIT = 20;
function Following({ title, path, id, ...props }) { function Following({ title, path, id, ...props }) {
useTitle(title || t`Following`, path || '/following'); useTitle(
title ||
t({
id: 'following.title',
message: 'Following',
}),
path || '/following',
);
const { masto, streaming, instance } = api(); const { masto, streaming, instance } = api();
const snapStates = useSnapshot(states); const snapStates = useSnapshot(states);
const homeIterator = useRef(); const homeIterator = useRef();
@ -131,7 +138,7 @@ function Following({ title, path, id, ...props }) {
return ( return (
<Timeline <Timeline
title={title || t`Following`} title={title || t({ id: 'following.title', message: 'Following' })}
id={id || 'following'} id={id || 'following'}
emptyText={t`Nothing to see here.`} emptyText={t`Nothing to see here.`}
errorText={t`Unable to load posts.`} errorText={t`Unable to load posts.`}