Add "30 days" for profile mute

This commit is contained in:
Lim Chee Aun 2024-11-15 09:43:35 +08:00
parent dc2d441119
commit 75ceff12c0
2 changed files with 115 additions and 113 deletions

View file

@ -51,6 +51,7 @@ const MUTE_DURATIONS = [
60 * 60 * 24, // 1 day 60 * 60 * 24, // 1 day
60 * 60 * 24 * 3, // 3 days 60 * 60 * 24 * 3, // 3 days
60 * 60 * 24 * 7, // 1 week 60 * 60 * 24 * 7, // 1 week
60 * 60 * 24 * 30, // 30 days
0, // forever 0, // forever
]; ];
const MUTE_DURATIONS_LABELS = { const MUTE_DURATIONS_LABELS = {
@ -62,6 +63,7 @@ const MUTE_DURATIONS_LABELS = {
86_400: i18nDuration(1, 'day'), 86_400: i18nDuration(1, 'day'),
259_200: i18nDuration(3, 'day'), 259_200: i18nDuration(3, 'day'),
604_800: i18nDuration(1, 'week'), 604_800: i18nDuration(1, 'week'),
2592_000: i18nDuration(30, 'day'),
}; };
const LIMIT = 80; const LIMIT = 80;

226
src/locales/en.po generated
View file

@ -26,12 +26,12 @@ msgid "Last posted: {0}"
msgstr "" msgstr ""
#: src/components/account-block.jsx:161 #: src/components/account-block.jsx:161
#: src/components/account-info.jsx:634 #: src/components/account-info.jsx:636
msgid "Automated" msgid "Automated"
msgstr "" msgstr ""
#: src/components/account-block.jsx:168 #: src/components/account-block.jsx:168
#: src/components/account-info.jsx:639 #: src/components/account-info.jsx:641
#: src/components/status.jsx:498 #: src/components/status.jsx:498
msgid "Group" msgid "Group"
msgstr "" msgstr ""
@ -41,17 +41,17 @@ msgid "Mutual"
msgstr "" msgstr ""
#: src/components/account-block.jsx:182 #: src/components/account-block.jsx:182
#: src/components/account-info.jsx:1680 #: src/components/account-info.jsx:1682
msgid "Requested" msgid "Requested"
msgstr "" msgstr ""
#: src/components/account-block.jsx:186 #: src/components/account-block.jsx:186
#: src/components/account-info.jsx:1671 #: src/components/account-info.jsx:1673
msgid "Following" msgid "Following"
msgstr "" msgstr ""
#: src/components/account-block.jsx:190 #: src/components/account-block.jsx:190
#: src/components/account-info.jsx:1062 #: src/components/account-info.jsx:1064
msgid "Follows you" msgid "Follows you"
msgstr "" msgstr ""
@ -60,50 +60,50 @@ msgid "{followersCount, plural, one {# follower} other {# followers}}"
msgstr "" msgstr ""
#: src/components/account-block.jsx:207 #: src/components/account-block.jsx:207
#: src/components/account-info.jsx:680 #: src/components/account-info.jsx:682
msgid "Verified" msgid "Verified"
msgstr "" msgstr ""
#: src/components/account-block.jsx:222 #: src/components/account-block.jsx:222
#: src/components/account-info.jsx:780 #: src/components/account-info.jsx:782
msgid "Joined <0>{0}</0>" msgid "Joined <0>{0}</0>"
msgstr "" msgstr ""
#: src/components/account-info.jsx:57 #: src/components/account-info.jsx:58
msgid "Forever" msgid "Forever"
msgstr "" msgstr ""
#: src/components/account-info.jsx:377 #: src/components/account-info.jsx:379
msgid "Unable to load account." msgid "Unable to load account."
msgstr "" msgstr ""
#: src/components/account-info.jsx:385 #: src/components/account-info.jsx:387
msgid "Go to account page" msgid "Go to account page"
msgstr "" msgstr ""
#: src/components/account-info.jsx:413 #: src/components/account-info.jsx:415
#: src/components/account-info.jsx:702 #: src/components/account-info.jsx:704
#: src/components/account-info.jsx:732 #: src/components/account-info.jsx:734
msgid "Followers" msgid "Followers"
msgstr "" msgstr ""
#. js-lingui-explicit-id #. js-lingui-explicit-id
#: src/components/account-info.jsx:416 #: src/components/account-info.jsx:418
#: src/components/account-info.jsx:742 #: src/components/account-info.jsx:744
#: src/components/account-info.jsx:759 #: src/components/account-info.jsx:761
msgid "following.stats" msgid "following.stats"
msgstr "Following" msgstr "Following"
#: src/components/account-info.jsx:419 #: src/components/account-info.jsx:421
#: src/components/account-info.jsx:776 #: src/components/account-info.jsx:778
#: src/pages/account-statuses.jsx:484 #: src/pages/account-statuses.jsx:484
#: src/pages/search.jsx:312 #: src/pages/search.jsx:312
#: src/pages/search.jsx:459 #: src/pages/search.jsx:459
msgid "Posts" msgid "Posts"
msgstr "" msgstr ""
#: src/components/account-info.jsx:427 #: src/components/account-info.jsx:429
#: src/components/account-info.jsx:1118 #: src/components/account-info.jsx:1120
#: 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:357 #: src/components/media-modal.jsx:357
@ -122,64 +122,64 @@ msgstr ""
msgid "More" msgid "More"
msgstr "" msgstr ""
#: src/components/account-info.jsx:439 #: src/components/account-info.jsx:441
msgid "<0>{displayName}</0> has indicated that their new account is now:" 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:586
#: src/components/account-info.jsx:1276 #: src/components/account-info.jsx:1278
msgid "Handle copied" msgid "Handle copied"
msgstr "" msgstr ""
#: src/components/account-info.jsx:587 #: src/components/account-info.jsx:589
#: src/components/account-info.jsx:1279 #: src/components/account-info.jsx:1281
msgid "Unable to copy handle" msgid "Unable to copy handle"
msgstr "" msgstr ""
#: src/components/account-info.jsx:593 #: src/components/account-info.jsx:595
#: src/components/account-info.jsx:1285 #: src/components/account-info.jsx:1287
msgid "Copy handle" msgid "Copy handle"
msgstr "" msgstr ""
#: src/components/account-info.jsx:599 #: src/components/account-info.jsx:601
msgid "Go to original profile page" msgid "Go to original profile page"
msgstr "" msgstr ""
#: src/components/account-info.jsx:606 #: src/components/account-info.jsx:608
msgid "View profile image" msgid "View profile image"
msgstr "" msgstr ""
#: src/components/account-info.jsx:612 #: src/components/account-info.jsx:614
msgid "View profile header" msgid "View profile header"
msgstr "" msgstr ""
#: src/components/account-info.jsx:629 #: src/components/account-info.jsx:631
msgid "In Memoriam" msgid "In Memoriam"
msgstr "" msgstr ""
#: src/components/account-info.jsx:709 #: src/components/account-info.jsx:711
#: src/components/account-info.jsx:750 #: src/components/account-info.jsx:752
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:805 #: src/components/account-info.jsx:807
msgid "{0} original posts, {1} replies, {2} boosts" msgid "{0} original posts, {1} replies, {2} boosts"
msgstr "" msgstr ""
#: src/components/account-info.jsx:821 #: src/components/account-info.jsx:823
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:834 #: src/components/account-info.jsx:836
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:858 #: src/components/account-info.jsx:860
#: src/pages/catchup.jsx:70 #: src/pages/catchup.jsx:70
msgid "Original" msgid "Original"
msgstr "" msgstr ""
#: src/components/account-info.jsx:862 #: src/components/account-info.jsx:864
#: src/components/status.jsx:2252 #: src/components/status.jsx:2252
#: src/pages/catchup.jsx:71 #: src/pages/catchup.jsx:71
#: src/pages/catchup.jsx:1445 #: src/pages/catchup.jsx:1445
@ -189,7 +189,7 @@ msgstr ""
msgid "Replies" msgid "Replies"
msgstr "" msgstr ""
#: src/components/account-info.jsx:866 #: src/components/account-info.jsx:868
#: 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
@ -197,207 +197,207 @@ msgstr ""
msgid "Boosts" msgid "Boosts"
msgstr "" msgstr ""
#: src/components/account-info.jsx:872 #: src/components/account-info.jsx:874
msgid "Post stats unavailable." msgid "Post stats unavailable."
msgstr "" msgstr ""
#: src/components/account-info.jsx:903 #: src/components/account-info.jsx:905
msgid "View post stats" msgid "View post stats"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1066 #: src/components/account-info.jsx:1068
msgid "Last post: <0>{0}</0>" msgid "Last post: <0>{0}</0>"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1080 #: src/components/account-info.jsx:1082
msgid "Muted" msgid "Muted"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1085 #: src/components/account-info.jsx:1087
msgid "Blocked" msgid "Blocked"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1094 #: src/components/account-info.jsx:1096
msgid "Private note" msgid "Private note"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1151 #: src/components/account-info.jsx:1153
msgid "Mention <0>@{username}</0>" msgid "Mention <0>@{username}</0>"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1163 #: src/components/account-info.jsx:1165
msgid "Translate bio" msgid "Translate bio"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1174 #: src/components/account-info.jsx:1176
msgid "Edit private note" msgid "Edit private note"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1174 #: src/components/account-info.jsx:1176
msgid "Add private note" msgid "Add private note"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1194 #: src/components/account-info.jsx:1196
msgid "Notifications enabled for @{username}'s posts." msgid "Notifications enabled for @{username}'s posts."
msgstr "" msgstr ""
#: src/components/account-info.jsx:1195 #: src/components/account-info.jsx:1197
msgid "Notifications disabled for @{username}'s posts." msgid "Notifications disabled for @{username}'s posts."
msgstr "" msgstr ""
#: src/components/account-info.jsx:1207 #: src/components/account-info.jsx:1209
msgid "Disable notifications" msgid "Disable notifications"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1208 #: src/components/account-info.jsx:1210
msgid "Enable notifications" msgid "Enable notifications"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1225 #: src/components/account-info.jsx:1227
msgid "Boosts from @{username} enabled." msgid "Boosts from @{username} enabled."
msgstr "" msgstr ""
#: src/components/account-info.jsx:1226 #: src/components/account-info.jsx:1228
msgid "Boosts from @{username} disabled." msgid "Boosts from @{username} disabled."
msgstr "" msgstr ""
#: src/components/account-info.jsx:1237 #: src/components/account-info.jsx:1239
msgid "Disable boosts" msgid "Disable boosts"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1237 #: src/components/account-info.jsx:1239
msgid "Enable boosts" msgid "Enable boosts"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1253 #: src/components/account-info.jsx:1255
#: src/components/account-info.jsx:1263 #: src/components/account-info.jsx:1265
#: src/components/account-info.jsx:1864 #: src/components/account-info.jsx:1866
msgid "Add/Remove from Lists" msgid "Add/Remove from Lists"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1302 #: src/components/account-info.jsx:1304
#: src/components/status.jsx:1161 #: src/components/status.jsx:1161
msgid "Link copied" msgid "Link copied"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1305 #: src/components/account-info.jsx:1307
#: src/components/status.jsx:1164 #: src/components/status.jsx:1164
msgid "Unable to copy link" msgid "Unable to copy link"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1311 #: src/components/account-info.jsx:1313
#: src/components/shortcuts-settings.jsx:1059 #: src/components/shortcuts-settings.jsx:1059
#: src/components/status.jsx:1170 #: src/components/status.jsx:1170
#: src/components/status.jsx:3251 #: src/components/status.jsx:3251
msgid "Copy" msgid "Copy"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1326 #: src/components/account-info.jsx:1328
#: src/components/shortcuts-settings.jsx:1077 #: src/components/shortcuts-settings.jsx:1077
#: src/components/status.jsx:1186 #: src/components/status.jsx:1186
msgid "Sharing doesn't seem to work." msgid "Sharing doesn't seem to work."
msgstr "" msgstr ""
#: src/components/account-info.jsx:1332 #: src/components/account-info.jsx:1334
#: src/components/status.jsx:1192 #: src/components/status.jsx:1192
msgid "Share…" msgid "Share…"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1352 #: src/components/account-info.jsx:1354
msgid "Unmuted @{username}" msgid "Unmuted @{username}"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1364 #: src/components/account-info.jsx:1366
msgid "Unmute <0>@{username}</0>" msgid "Unmute <0>@{username}</0>"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1380 #: src/components/account-info.jsx:1382
msgid "Mute <0>@{username}</0>…" msgid "Mute <0>@{username}</0>…"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1412 #: src/components/account-info.jsx:1414
msgid "Muted @{username} for {0}" msgid "Muted @{username} for {0}"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1424 #: src/components/account-info.jsx:1426
msgid "Unable to mute @{username}" msgid "Unable to mute @{username}"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1445 #: src/components/account-info.jsx:1447
msgid "Remove <0>@{username}</0> from followers?" msgid "Remove <0>@{username}</0> from followers?"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1465 #: src/components/account-info.jsx:1467
msgid "@{username} removed from followers" msgid "@{username} removed from followers"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1477 #: src/components/account-info.jsx:1479
msgid "Remove follower…" msgid "Remove follower…"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1488 #: src/components/account-info.jsx:1490
msgid "Block <0>@{username}</0>?" msgid "Block <0>@{username}</0>?"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1512 #: src/components/account-info.jsx:1514
msgid "Unblocked @{username}" msgid "Unblocked @{username}"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1520 #: src/components/account-info.jsx:1522
msgid "Blocked @{username}" msgid "Blocked @{username}"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1528 #: src/components/account-info.jsx:1530
msgid "Unable to unblock @{username}" msgid "Unable to unblock @{username}"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1530 #: src/components/account-info.jsx:1532
msgid "Unable to block @{username}" msgid "Unable to block @{username}"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1540 #: src/components/account-info.jsx:1542
msgid "Unblock <0>@{username}</0>" msgid "Unblock <0>@{username}</0>"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1549 #: src/components/account-info.jsx:1551
msgid "Block <0>@{username}</0>…" msgid "Block <0>@{username}</0>…"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1566 #: src/components/account-info.jsx:1568
msgid "Report <0>@{username}</0>…" msgid "Report <0>@{username}</0>…"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1586 #: src/components/account-info.jsx:1588
#: src/components/account-info.jsx:2097 #: src/components/account-info.jsx:2099
msgid "Edit profile" msgid "Edit profile"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1622 #: src/components/account-info.jsx:1624
msgid "Withdraw follow request?" msgid "Withdraw follow request?"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1623 #: src/components/account-info.jsx:1625
msgid "Unfollow @{0}?" msgid "Unfollow @{0}?"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1674 #: src/components/account-info.jsx:1676
msgid "Unfollow…" msgid "Unfollow…"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1683 #: src/components/account-info.jsx:1685
msgid "Withdraw…" msgid "Withdraw…"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1690 #: src/components/account-info.jsx:1692
#: src/components/account-info.jsx:1694 #: src/components/account-info.jsx:1696
#: src/pages/hashtag.jsx:261 #: src/pages/hashtag.jsx:261
msgid "Follow" msgid "Follow"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1805 #: src/components/account-info.jsx:1807
#: src/components/account-info.jsx:1859 #: src/components/account-info.jsx:1861
#: src/components/account-info.jsx:1992 #: src/components/account-info.jsx:1994
#: src/components/account-info.jsx:2092 #: src/components/account-info.jsx:2094
#: 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
@ -430,76 +430,76 @@ msgstr ""
msgid "Close" msgid "Close"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1810 #: src/components/account-info.jsx:1812
msgid "Translated Bio" msgid "Translated Bio"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1904 #: src/components/account-info.jsx:1906
msgid "Unable to remove from list." msgid "Unable to remove from list."
msgstr "" msgstr ""
#: src/components/account-info.jsx:1905 #: src/components/account-info.jsx:1907
msgid "Unable to add to list." msgid "Unable to add to list."
msgstr "" msgstr ""
#: src/components/account-info.jsx:1924 #: src/components/account-info.jsx:1926
#: 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:1928 #: src/components/account-info.jsx:1930
msgid "No lists." msgid "No lists."
msgstr "" msgstr ""
#: src/components/account-info.jsx:1939 #: src/components/account-info.jsx:1941
#: src/components/list-add-edit.jsx:39 #: src/components/list-add-edit.jsx:39
#: src/pages/lists.jsx:58 #: src/pages/lists.jsx:58
msgid "New list" msgid "New list"
msgstr "" msgstr ""
#: src/components/account-info.jsx:1997 #: src/components/account-info.jsx:1999
msgid "Private note about <0>@{0}</0>" msgid "Private note about <0>@{0}</0>"
msgstr "" msgstr ""
#: src/components/account-info.jsx:2027 #: src/components/account-info.jsx:2029
msgid "Unable to update private note." msgid "Unable to update private note."
msgstr "" msgstr ""
#: src/components/account-info.jsx:2050 #: src/components/account-info.jsx:2052
#: src/components/account-info.jsx:2220 #: src/components/account-info.jsx:2222
msgid "Cancel" msgid "Cancel"
msgstr "" msgstr ""
#: src/components/account-info.jsx:2055 #: src/components/account-info.jsx:2057
msgid "Save & close" msgid "Save & close"
msgstr "" msgstr ""
#: src/components/account-info.jsx:2148 #: src/components/account-info.jsx:2150
msgid "Unable to update profile." msgid "Unable to update profile."
msgstr "" msgstr ""
#: src/components/account-info.jsx:2155 #: src/components/account-info.jsx:2157
#: src/components/list-add-edit.jsx:104 #: src/components/list-add-edit.jsx:104
msgid "Name" msgid "Name"
msgstr "" msgstr ""
#: src/components/account-info.jsx:2168 #: src/components/account-info.jsx:2170
msgid "Bio" msgid "Bio"
msgstr "" msgstr ""
#: src/components/account-info.jsx:2181 #: src/components/account-info.jsx:2183
msgid "Extra fields" msgid "Extra fields"
msgstr "" msgstr ""
#: src/components/account-info.jsx:2187 #: src/components/account-info.jsx:2189
msgid "Label" msgid "Label"
msgstr "" msgstr ""
#: src/components/account-info.jsx:2190 #: src/components/account-info.jsx:2192
msgid "Content" msgid "Content"
msgstr "" msgstr ""
#: src/components/account-info.jsx:2223 #: src/components/account-info.jsx:2225
#: src/components/list-add-edit.jsx:149 #: src/components/list-add-edit.jsx:149
#: src/components/shortcuts-settings.jsx:715 #: src/components/shortcuts-settings.jsx:715
#: src/pages/filters.jsx:554 #: src/pages/filters.jsx:554
@ -507,11 +507,11 @@ msgstr ""
msgid "Save" msgid "Save"
msgstr "" msgstr ""
#: src/components/account-info.jsx:2276 #: src/components/account-info.jsx:2278
msgid "username" msgid "username"
msgstr "" msgstr ""
#: src/components/account-info.jsx:2280 #: src/components/account-info.jsx:2282
msgid "server domain name" msgid "server domain name"
msgstr "" msgstr ""