this repo has no description
fork

Configure Feed

Select the types of activity you want to include in your feed.

Refactor RelativeTimeFormat

+151 -149
+1 -1
src/components/compose.jsx
··· 42 42 import pmem from '../utils/pmem'; 43 43 import prettyBytes from '../utils/pretty-bytes'; 44 44 import { fetchRelationships } from '../utils/relationships'; 45 + import RTF from '../utils/relative-time-format'; 45 46 import shortenNumber from '../utils/shorten-number'; 46 47 import showToast from '../utils/show-toast'; 47 48 import states, { saveStatus } from '../utils/states'; ··· 196 197 } 197 198 198 199 // const rtf = new Intl.RelativeTimeFormat(); 199 - const RTF = mem((locale) => new Intl.RelativeTimeFormat(locale || undefined)); 200 200 const LF = mem((locale) => new Intl.ListFormat(locale || undefined)); 201 201 202 202 const CUSTOM_EMOJIS_COUNT = 100;
+1 -3
src/components/relative-time.jsx
··· 3 3 import { useEffect, useMemo, useReducer } from 'preact/hooks'; 4 4 5 5 import DateTimeFormat from '../utils/date-time-format'; 6 - import mem from '../utils/mem'; 6 + import RTF from '../utils/relative-time-format'; 7 7 8 8 function isValidDate(value) { 9 9 if (value instanceof Date) { ··· 13 13 return !isNaN(date.getTime()); 14 14 } 15 15 } 16 - 17 - const RTF = mem((locale) => new Intl.RelativeTimeFormat(locale || undefined)); 18 16 19 17 const minute = 60; 20 18 const hour = 60 * minute;
+1 -2
src/components/status.jsx
··· 61 61 import niceDateTime from '../utils/nice-date-time'; 62 62 import openCompose from '../utils/open-compose'; 63 63 import pmem from '../utils/pmem'; 64 + import RTF from '../utils/relative-time-format'; 64 65 import safeBoundingBoxPadding from '../utils/safe-bounding-box-padding'; 65 66 import shortenNumber from '../utils/shorten-number'; 66 67 import showCompose from '../utils/show-compose'; ··· 107 108 const isIOS = 108 109 window.ontouchstart !== undefined && 109 110 /iPad|iPhone|iPod/.test(navigator.userAgent); 110 - 111 - const RTF = mem((locale) => new Intl.RelativeTimeFormat(locale || undefined)); 112 111 113 112 const REACTIONS_LIMIT = 80; 114 113
+143 -143
src/locales/en.po
··· 34 34 35 35 #: src/components/account-block.jsx:190 36 36 #: src/components/account-info.jsx:710 37 - #: src/components/status.jsx:749 37 + #: src/components/status.jsx:748 38 38 msgid "Group" 39 39 msgstr "" 40 40 ··· 108 108 #: src/components/compose.jsx:2812 109 109 #: src/components/media-alt-modal.jsx:55 110 110 #: src/components/media-modal.jsx:363 111 - #: src/components/status.jsx:1997 112 - #: src/components/status.jsx:2014 113 - #: src/components/status.jsx:2145 114 - #: src/components/status.jsx:2769 115 - #: src/components/status.jsx:2772 111 + #: src/components/status.jsx:1996 112 + #: src/components/status.jsx:2013 113 + #: src/components/status.jsx:2144 114 + #: src/components/status.jsx:2768 115 + #: src/components/status.jsx:2771 116 116 #: src/pages/account-statuses.jsx:539 117 117 #: src/pages/accounts.jsx:118 118 118 #: src/pages/hashtag.jsx:203 ··· 217 217 msgstr "" 218 218 219 219 #: src/components/account-info.jsx:978 220 - #: src/components/status.jsx:2554 220 + #: src/components/status.jsx:2553 221 221 #: src/pages/catchup.jsx:71 222 222 #: src/pages/catchup.jsx:1448 223 223 #: src/pages/catchup.jsx:2061 ··· 343 343 msgstr "" 344 344 345 345 #: src/components/account-info.jsx:1522 346 - #: src/components/status.jsx:1419 346 + #: src/components/status.jsx:1418 347 347 msgid "Link copied" 348 348 msgstr "" 349 349 350 350 #: src/components/account-info.jsx:1525 351 - #: src/components/status.jsx:1422 351 + #: src/components/status.jsx:1421 352 352 msgid "Unable to copy link" 353 353 msgstr "" 354 354 355 355 #: src/components/account-info.jsx:1531 356 356 #: src/components/shortcuts-settings.jsx:1059 357 - #: src/components/status.jsx:1428 358 - #: src/components/status.jsx:3547 357 + #: src/components/status.jsx:1427 358 + #: src/components/status.jsx:3546 359 359 msgid "Copy" 360 360 msgstr "" 361 361 362 362 #: src/components/account-info.jsx:1546 363 363 #: src/components/shortcuts-settings.jsx:1077 364 - #: src/components/status.jsx:1444 364 + #: src/components/status.jsx:1443 365 365 msgid "Sharing doesn't seem to work." 366 366 msgstr "" 367 367 368 368 #: src/components/account-info.jsx:1552 369 - #: src/components/status.jsx:1450 369 + #: src/components/status.jsx:1449 370 370 msgid "Share…" 371 371 msgstr "" 372 372 ··· 480 480 #: src/components/shortcuts-settings.jsx:230 481 481 #: src/components/shortcuts-settings.jsx:583 482 482 #: src/components/shortcuts-settings.jsx:783 483 - #: src/components/status.jsx:3271 484 - #: src/components/status.jsx:3511 485 - #: src/components/status.jsx:4020 483 + #: src/components/status.jsx:3270 484 + #: src/components/status.jsx:3510 485 + #: src/components/status.jsx:4019 486 486 #: src/pages/accounts.jsx:45 487 487 #: src/pages/catchup.jsx:1584 488 488 #: src/pages/filters.jsx:225 ··· 732 732 msgstr "Attachment #{i} failed" 733 733 734 734 #: src/components/compose.jsx:1215 735 - #: src/components/status.jsx:2329 735 + #: src/components/status.jsx:2328 736 736 #: src/components/timeline.jsx:1015 737 737 msgid "Content warning" 738 738 msgstr "" ··· 742 742 msgstr "Content warning or sensitive media" 743 743 744 744 #: src/components/compose.jsx:1267 745 - #: src/components/status.jsx:100 745 + #: src/components/status.jsx:101 746 746 #: src/pages/settings.jsx:318 747 747 msgid "Public" 748 748 msgstr "" ··· 750 750 #: src/components/compose.jsx:1272 751 751 #: src/components/nav-menu.jsx:349 752 752 #: src/components/shortcuts-settings.jsx:165 753 - #: src/components/status.jsx:101 753 + #: src/components/status.jsx:102 754 754 msgid "Local" 755 755 msgstr "" 756 756 757 757 #: src/components/compose.jsx:1276 758 - #: src/components/status.jsx:102 758 + #: src/components/status.jsx:103 759 759 #: src/pages/settings.jsx:321 760 760 msgid "Unlisted" 761 761 msgstr "" 762 762 763 763 #: src/components/compose.jsx:1279 764 - #: src/components/status.jsx:103 764 + #: src/components/status.jsx:104 765 765 #: src/pages/settings.jsx:324 766 766 msgid "Followers only" 767 767 msgstr "" 768 768 769 769 #: src/components/compose.jsx:1282 770 - #: src/components/status.jsx:104 771 - #: src/components/status.jsx:2209 770 + #: src/components/status.jsx:105 771 + #: src/components/status.jsx:2208 772 772 msgid "Private mention" 773 773 msgstr "" 774 774 ··· 805 805 806 806 #: src/components/compose.jsx:1671 807 807 #: src/components/keyboard-shortcuts-help.jsx:155 808 - #: src/components/status.jsx:1191 808 + #: src/components/status.jsx:1190 809 + #: src/components/status.jsx:1976 809 810 #: src/components/status.jsx:1977 810 - #: src/components/status.jsx:1978 811 - #: src/components/status.jsx:2673 811 + #: src/components/status.jsx:2672 812 812 msgid "Reply" 813 813 msgstr "" 814 814 ··· 1030 1030 1031 1031 #: src/components/drafts.jsx:126 1032 1032 #: src/components/list-add-edit.jsx:188 1033 - #: src/components/status.jsx:1594 1033 + #: src/components/status.jsx:1593 1034 1034 #: src/pages/filters.jsx:603 1035 1035 #: src/pages/scheduled-posts.jsx:368 1036 1036 msgid "Delete…" ··· 1239 1239 msgstr "" 1240 1240 1241 1241 #: src/components/keyboard-shortcuts-help.jsx:176 1242 - #: src/components/status.jsx:1199 1243 - #: src/components/status.jsx:2700 1242 + #: src/components/status.jsx:1198 1243 + #: src/components/status.jsx:2699 1244 + #: src/components/status.jsx:2722 1244 1245 #: src/components/status.jsx:2723 1245 - #: src/components/status.jsx:2724 1246 1246 msgid "Boost" 1247 1247 msgstr "" 1248 1248 ··· 1251 1251 msgstr "" 1252 1252 1253 1253 #: src/components/keyboard-shortcuts-help.jsx:184 1254 - #: src/components/status.jsx:1262 1254 + #: src/components/status.jsx:1261 1255 + #: src/components/status.jsx:2747 1255 1256 #: src/components/status.jsx:2748 1256 - #: src/components/status.jsx:2749 1257 1257 msgid "Bookmark" 1258 1258 msgstr "" 1259 1259 ··· 1318 1318 msgstr "" 1319 1319 1320 1320 #: src/components/media-alt-modal.jsx:67 1321 - #: src/components/status.jsx:1305 1322 - #: src/components/status.jsx:1314 1321 + #: src/components/status.jsx:1304 1322 + #: src/components/status.jsx:1313 1323 1323 #: src/components/translation-block.jsx:239 1324 1324 msgid "Translate" 1325 1325 msgstr "" 1326 1326 1327 1327 #: src/components/media-alt-modal.jsx:78 1328 - #: src/components/status.jsx:1333 1328 + #: src/components/status.jsx:1332 1329 1329 msgid "Speak" 1330 1330 msgstr "" 1331 1331 ··· 1362 1362 msgstr "" 1363 1363 1364 1364 #: src/components/media-post.jsx:133 1365 - #: src/components/status.jsx:3850 1366 - #: src/components/status.jsx:3946 1367 - #: src/components/status.jsx:4024 1365 + #: src/components/status.jsx:3849 1366 + #: src/components/status.jsx:3945 1367 + #: src/components/status.jsx:4023 1368 1368 #: src/components/timeline.jsx:1004 1369 1369 #: src/pages/catchup.jsx:75 1370 1370 #: src/pages/catchup.jsx:1880 ··· 1676 1676 msgstr "" 1677 1677 1678 1678 #: src/components/notification.jsx:451 1679 - #: src/components/status.jsx:1276 1680 - #: src/components/status.jsx:1286 1679 + #: src/components/status.jsx:1275 1680 + #: src/components/status.jsx:1285 1681 1681 msgid "Boosted/Liked by…" 1682 1682 msgstr "" 1683 1683 ··· 1703 1703 msgstr "View #Wrapstodon" 1704 1704 1705 1705 #: src/components/notification.jsx:801 1706 - #: src/components/status.jsx:487 1706 + #: src/components/status.jsx:486 1707 1707 msgid "Read more →" 1708 1708 msgstr "" 1709 1709 ··· 1786 1786 1787 1787 #. Relative time in seconds, as short as possible 1788 1788 #. placeholder {0}: seconds < 1 ? 1 : Math.floor(seconds) 1789 - #: src/components/relative-time.jsx:47 1789 + #: src/components/relative-time.jsx:45 1790 1790 msgid "{0}s" 1791 1791 msgstr "" 1792 1792 1793 1793 #. Relative time in minutes, as short as possible 1794 1794 #. placeholder {0}: Math.floor(seconds / minute) 1795 - #: src/components/relative-time.jsx:52 1795 + #: src/components/relative-time.jsx:50 1796 1796 msgid "{0}m" 1797 1797 msgstr "" 1798 1798 1799 1799 #. Relative time in hours, as short as possible 1800 1800 #. placeholder {0}: Math.floor(seconds / hour) 1801 - #: src/components/relative-time.jsx:57 1801 + #: src/components/relative-time.jsx:55 1802 1802 msgid "{0}h" 1803 1803 msgstr "" 1804 1804 ··· 2030 2030 msgstr "" 2031 2031 2032 2032 #: src/components/shortcuts-settings.jsx:379 2033 - #: src/components/status.jsx:1556 2033 + #: src/components/status.jsx:1555 2034 2034 #: src/pages/list.jsx:195 2035 2035 msgid "Edit" 2036 2036 msgstr "" ··· 2229 2229 msgid "Import/export settings from/to instance server (Very experimental)" 2230 2230 msgstr "" 2231 2231 2232 - #: src/components/status.jsx:352 2232 + #: src/components/status.jsx:351 2233 2233 msgid "Unable to format math" 2234 2234 msgstr "Unable to format math" 2235 2235 2236 - #: src/components/status.jsx:366 2236 + #: src/components/status.jsx:365 2237 2237 msgid "Math expressions found." 2238 2238 msgstr "Math expressions found." 2239 2239 2240 2240 #. Action to switch from rendered math back to raw (LaTeX) markup 2241 - #: src/components/status.jsx:369 2241 + #: src/components/status.jsx:368 2242 2242 msgid "Show markup" 2243 2243 msgstr "Show markup" 2244 2244 2245 2245 #. Action to render math expressions from raw (LaTeX) markup 2246 - #: src/components/status.jsx:374 2246 + #: src/components/status.jsx:373 2247 2247 msgid "Format math" 2248 2248 msgstr "Format math" 2249 2249 2250 - #: src/components/status.jsx:773 2250 + #: src/components/status.jsx:772 2251 2251 msgid "<0/> <1>boosted</1>" 2252 2252 msgstr "<0/> <1>boosted</1>" 2253 2253 2254 - #: src/components/status.jsx:876 2254 + #: src/components/status.jsx:875 2255 2255 msgid "Sorry, your current logged-in instance can't interact with this post from another instance." 2256 2256 msgstr "" 2257 2257 2258 2258 #. placeholder {0}: username || acct 2259 - #: src/components/status.jsx:1030 2259 + #: src/components/status.jsx:1029 2260 2260 msgid "Unliked @{0}'s post" 2261 2261 msgstr "" 2262 2262 2263 2263 #. placeholder {0}: username || acct 2264 - #: src/components/status.jsx:1031 2264 + #: src/components/status.jsx:1030 2265 2265 msgid "Liked @{0}'s post" 2266 2266 msgstr "Liked @{0}'s post" 2267 2267 2268 2268 #. placeholder {0}: username || acct 2269 - #: src/components/status.jsx:1070 2269 + #: src/components/status.jsx:1069 2270 2270 msgid "Unbookmarked @{0}'s post" 2271 2271 msgstr "Unbookmarked @{0}'s post" 2272 2272 2273 2273 #. placeholder {0}: username || acct 2274 - #: src/components/status.jsx:1071 2274 + #: src/components/status.jsx:1070 2275 2275 msgid "Bookmarked @{0}'s post" 2276 2276 msgstr "Bookmarked @{0}'s post" 2277 2277 2278 - #: src/components/status.jsx:1168 2278 + #: src/components/status.jsx:1167 2279 2279 msgid "Some media have no descriptions." 2280 2280 msgstr "" 2281 2281 2282 2282 #. placeholder {0}: rtf.format(-statusMonthsAgo, 'month') 2283 - #: src/components/status.jsx:1175 2283 + #: src/components/status.jsx:1174 2284 2284 msgid "Old post (<0>{0}</0>)" 2285 2285 msgstr "" 2286 2286 2287 - #: src/components/status.jsx:1199 2288 - #: src/components/status.jsx:1239 2289 - #: src/components/status.jsx:2700 2290 - #: src/components/status.jsx:2723 2287 + #: src/components/status.jsx:1198 2288 + #: src/components/status.jsx:1238 2289 + #: src/components/status.jsx:2699 2290 + #: src/components/status.jsx:2722 2291 2291 msgid "Unboost" 2292 2292 msgstr "" 2293 2293 2294 - #: src/components/status.jsx:1215 2295 - #: src/components/status.jsx:2715 2294 + #: src/components/status.jsx:1214 2295 + #: src/components/status.jsx:2714 2296 2296 msgid "Quote" 2297 2297 msgstr "" 2298 2298 2299 2299 #. placeholder {0}: username || acct 2300 - #: src/components/status.jsx:1227 2301 - #: src/components/status.jsx:1693 2300 + #: src/components/status.jsx:1226 2301 + #: src/components/status.jsx:1692 2302 2302 msgid "Unboosted @{0}'s post" 2303 2303 msgstr "Unboosted @{0}'s post" 2304 2304 2305 2305 #. placeholder {0}: username || acct 2306 - #: src/components/status.jsx:1228 2307 - #: src/components/status.jsx:1694 2306 + #: src/components/status.jsx:1227 2307 + #: src/components/status.jsx:1693 2308 2308 msgid "Boosted @{0}'s post" 2309 2309 msgstr "Boosted @{0}'s post" 2310 2310 2311 - #: src/components/status.jsx:1240 2311 + #: src/components/status.jsx:1239 2312 2312 msgid "Boost…" 2313 2313 msgstr "" 2314 2314 2315 - #: src/components/status.jsx:1252 2316 - #: src/components/status.jsx:1987 2317 - #: src/components/status.jsx:2736 2315 + #: src/components/status.jsx:1251 2316 + #: src/components/status.jsx:1986 2317 + #: src/components/status.jsx:2735 2318 2318 msgid "Unlike" 2319 2319 msgstr "" 2320 2320 2321 - #: src/components/status.jsx:1253 2321 + #: src/components/status.jsx:1252 2322 + #: src/components/status.jsx:1986 2322 2323 #: src/components/status.jsx:1987 2323 - #: src/components/status.jsx:1988 2324 + #: src/components/status.jsx:2735 2324 2325 #: src/components/status.jsx:2736 2325 - #: src/components/status.jsx:2737 2326 2326 msgid "Like" 2327 2327 msgstr "" 2328 2328 2329 - #: src/components/status.jsx:1262 2330 - #: src/components/status.jsx:2748 2329 + #: src/components/status.jsx:1261 2330 + #: src/components/status.jsx:2747 2331 2331 msgid "Unbookmark" 2332 2332 msgstr "" 2333 2333 2334 - #: src/components/status.jsx:1345 2334 + #: src/components/status.jsx:1344 2335 2335 msgid "Post text copied" 2336 2336 msgstr "Post text copied" 2337 2337 2338 - #: src/components/status.jsx:1348 2338 + #: src/components/status.jsx:1347 2339 2339 msgid "Unable to copy post text" 2340 2340 msgstr "Unable to copy post text" 2341 2341 2342 - #: src/components/status.jsx:1354 2342 + #: src/components/status.jsx:1353 2343 2343 msgid "Copy post text" 2344 2344 msgstr "Copy post text" 2345 2345 2346 2346 #. placeholder {0}: username || acct 2347 - #: src/components/status.jsx:1372 2347 + #: src/components/status.jsx:1371 2348 2348 msgid "View post by <0>@{0}</0>" 2349 2349 msgstr "" 2350 2350 2351 - #: src/components/status.jsx:1393 2351 + #: src/components/status.jsx:1392 2352 2352 msgid "Show Edit History" 2353 2353 msgstr "" 2354 2354 2355 - #: src/components/status.jsx:1396 2355 + #: src/components/status.jsx:1395 2356 2356 msgid "Edited: {editedDateText}" 2357 2357 msgstr "" 2358 2358 2359 - #: src/components/status.jsx:1463 2360 - #: src/components/status.jsx:3516 2359 + #: src/components/status.jsx:1462 2360 + #: src/components/status.jsx:3515 2361 2361 msgid "Embed post" 2362 2362 msgstr "" 2363 2363 2364 - #: src/components/status.jsx:1477 2364 + #: src/components/status.jsx:1476 2365 2365 msgid "Conversation unmuted" 2366 2366 msgstr "" 2367 2367 2368 - #: src/components/status.jsx:1477 2368 + #: src/components/status.jsx:1476 2369 2369 msgid "Conversation muted" 2370 2370 msgstr "" 2371 2371 2372 - #: src/components/status.jsx:1483 2372 + #: src/components/status.jsx:1482 2373 2373 msgid "Unable to unmute conversation" 2374 2374 msgstr "" 2375 2375 2376 - #: src/components/status.jsx:1484 2376 + #: src/components/status.jsx:1483 2377 2377 msgid "Unable to mute conversation" 2378 2378 msgstr "" 2379 2379 2380 - #: src/components/status.jsx:1493 2380 + #: src/components/status.jsx:1492 2381 2381 msgid "Unmute conversation" 2382 2382 msgstr "" 2383 2383 2384 - #: src/components/status.jsx:1500 2384 + #: src/components/status.jsx:1499 2385 2385 msgid "Mute conversation" 2386 2386 msgstr "" 2387 2387 2388 - #: src/components/status.jsx:1516 2388 + #: src/components/status.jsx:1515 2389 2389 msgid "Post unpinned from profile" 2390 2390 msgstr "" 2391 2391 2392 - #: src/components/status.jsx:1517 2392 + #: src/components/status.jsx:1516 2393 2393 msgid "Post pinned to profile" 2394 2394 msgstr "" 2395 2395 2396 - #: src/components/status.jsx:1522 2396 + #: src/components/status.jsx:1521 2397 2397 msgid "Unable to unpin post" 2398 2398 msgstr "" 2399 2399 2400 - #: src/components/status.jsx:1522 2400 + #: src/components/status.jsx:1521 2401 2401 msgid "Unable to pin post" 2402 2402 msgstr "" 2403 2403 2404 - #: src/components/status.jsx:1531 2404 + #: src/components/status.jsx:1530 2405 2405 msgid "Unpin from profile" 2406 2406 msgstr "" 2407 2407 2408 - #: src/components/status.jsx:1538 2408 + #: src/components/status.jsx:1537 2409 2409 msgid "Pin to profile" 2410 2410 msgstr "" 2411 2411 2412 - #: src/components/status.jsx:1567 2412 + #: src/components/status.jsx:1566 2413 2413 msgid "Delete this post?" 2414 2414 msgstr "" 2415 2415 2416 - #: src/components/status.jsx:1583 2416 + #: src/components/status.jsx:1582 2417 2417 msgid "Post deleted" 2418 2418 msgstr "" 2419 2419 2420 - #: src/components/status.jsx:1586 2420 + #: src/components/status.jsx:1585 2421 2421 msgid "Unable to delete post" 2422 2422 msgstr "" 2423 2423 2424 - #: src/components/status.jsx:1614 2424 + #: src/components/status.jsx:1613 2425 2425 msgid "Report post…" 2426 2426 msgstr "" 2427 2427 2428 - #: src/components/status.jsx:1988 2429 - #: src/components/status.jsx:2024 2430 - #: src/components/status.jsx:2737 2428 + #: src/components/status.jsx:1987 2429 + #: src/components/status.jsx:2023 2430 + #: src/components/status.jsx:2736 2431 2431 msgid "Liked" 2432 2432 msgstr "" 2433 2433 2434 - #: src/components/status.jsx:2021 2435 - #: src/components/status.jsx:2724 2434 + #: src/components/status.jsx:2020 2435 + #: src/components/status.jsx:2723 2436 2436 msgid "Boosted" 2437 2437 msgstr "" 2438 2438 2439 - #: src/components/status.jsx:2031 2440 - #: src/components/status.jsx:2749 2439 + #: src/components/status.jsx:2030 2440 + #: src/components/status.jsx:2748 2441 2441 msgid "Bookmarked" 2442 2442 msgstr "" 2443 2443 2444 - #: src/components/status.jsx:2035 2444 + #: src/components/status.jsx:2034 2445 2445 msgid "Pinned" 2446 2446 msgstr "" 2447 2447 2448 - #: src/components/status.jsx:2087 2449 - #: src/components/status.jsx:2562 2448 + #: src/components/status.jsx:2086 2449 + #: src/components/status.jsx:2561 2450 2450 msgid "Deleted" 2451 2451 msgstr "" 2452 2452 2453 - #: src/components/status.jsx:2128 2453 + #: src/components/status.jsx:2127 2454 2454 msgid "{repliesCount, plural, one {# reply} other {# replies}}" 2455 2455 msgstr "" 2456 2456 2457 - #: src/components/status.jsx:2292 2458 - #: src/components/status.jsx:2354 2459 - #: src/components/status.jsx:2458 2457 + #: src/components/status.jsx:2291 2458 + #: src/components/status.jsx:2353 2459 + #: src/components/status.jsx:2457 2460 2460 msgid "Show less" 2461 2461 msgstr "" 2462 2462 2463 - #: src/components/status.jsx:2292 2464 - #: src/components/status.jsx:2354 2463 + #: src/components/status.jsx:2291 2464 + #: src/components/status.jsx:2353 2465 2465 msgid "Show content" 2466 2466 msgstr "" 2467 2467 2468 2468 #. placeholder {0}: filterInfo.titlesStr 2469 2469 #. placeholder {0}: filterInfo?.titlesStr 2470 - #: src/components/status.jsx:2454 2470 + #: src/components/status.jsx:2453 2471 2471 #: src/pages/catchup.jsx:1879 2472 2472 msgid "Filtered: {0}" 2473 2473 msgstr "Filtered: {0}" 2474 2474 2475 - #: src/components/status.jsx:2458 2475 + #: src/components/status.jsx:2457 2476 2476 msgid "Show media" 2477 2477 msgstr "" 2478 2478 2479 - #: src/components/status.jsx:2597 2479 + #: src/components/status.jsx:2596 2480 2480 msgid "Edited" 2481 2481 msgstr "" 2482 2482 2483 - #: src/components/status.jsx:2674 2483 + #: src/components/status.jsx:2673 2484 2484 msgid "Comments" 2485 2485 msgstr "" 2486 2486 2487 2487 #. More from [Author] 2488 - #: src/components/status.jsx:2974 2488 + #: src/components/status.jsx:2973 2489 2489 msgid "More from <0/>" 2490 2490 msgstr "More from <0/>" 2491 2491 2492 - #: src/components/status.jsx:3276 2492 + #: src/components/status.jsx:3275 2493 2493 msgid "Edit History" 2494 2494 msgstr "" 2495 2495 2496 - #: src/components/status.jsx:3280 2496 + #: src/components/status.jsx:3279 2497 2497 msgid "Failed to load history" 2498 2498 msgstr "" 2499 2499 2500 - #: src/components/status.jsx:3285 2500 + #: src/components/status.jsx:3284 2501 2501 #: src/pages/annual-report.jsx:45 2502 2502 msgid "Loading…" 2503 2503 msgstr "" 2504 2504 2505 - #: src/components/status.jsx:3521 2505 + #: src/components/status.jsx:3520 2506 2506 msgid "HTML Code" 2507 2507 msgstr "" 2508 2508 2509 - #: src/components/status.jsx:3538 2509 + #: src/components/status.jsx:3537 2510 2510 msgid "HTML code copied" 2511 2511 msgstr "" 2512 2512 2513 - #: src/components/status.jsx:3541 2513 + #: src/components/status.jsx:3540 2514 2514 msgid "Unable to copy HTML code" 2515 2515 msgstr "" 2516 2516 2517 - #: src/components/status.jsx:3553 2517 + #: src/components/status.jsx:3552 2518 2518 msgid "Media attachments:" 2519 2519 msgstr "" 2520 2520 2521 - #: src/components/status.jsx:3575 2521 + #: src/components/status.jsx:3574 2522 2522 msgid "Account Emojis:" 2523 2523 msgstr "" 2524 2524 2525 - #: src/components/status.jsx:3606 2526 - #: src/components/status.jsx:3651 2525 + #: src/components/status.jsx:3605 2526 + #: src/components/status.jsx:3650 2527 2527 msgid "static URL" 2528 2528 msgstr "" 2529 2529 2530 - #: src/components/status.jsx:3620 2530 + #: src/components/status.jsx:3619 2531 2531 msgid "Emojis:" 2532 2532 msgstr "" 2533 2533 2534 - #: src/components/status.jsx:3665 2534 + #: src/components/status.jsx:3664 2535 2535 msgid "Notes:" 2536 2536 msgstr "" 2537 2537 2538 - #: src/components/status.jsx:3669 2538 + #: src/components/status.jsx:3668 2539 2539 msgid "This is static, unstyled and scriptless. You may need to apply your own styles and edit as needed." 2540 2540 msgstr "" 2541 2541 2542 - #: src/components/status.jsx:3675 2542 + #: src/components/status.jsx:3674 2543 2543 msgid "Polls are not interactive, becomes a list with vote counts." 2544 2544 msgstr "" 2545 2545 2546 - #: src/components/status.jsx:3680 2546 + #: src/components/status.jsx:3679 2547 2547 msgid "Media attachments can be images, videos, audios or any file types." 2548 2548 msgstr "" 2549 2549 2550 - #: src/components/status.jsx:3686 2550 + #: src/components/status.jsx:3685 2551 2551 msgid "Post could be edited or deleted later." 2552 2552 msgstr "" 2553 2553 2554 - #: src/components/status.jsx:3692 2554 + #: src/components/status.jsx:3691 2555 2555 msgid "Preview" 2556 2556 msgstr "" 2557 2557 2558 - #: src/components/status.jsx:3701 2558 + #: src/components/status.jsx:3700 2559 2559 msgid "Note: This preview is lightly styled." 2560 2560 msgstr "" 2561 2561 2562 2562 #. [Name] [Visibility icon] boosted 2563 - #: src/components/status.jsx:3954 2563 + #: src/components/status.jsx:3953 2564 2564 msgid "<0/> <1/> boosted" 2565 2565 msgstr "<0/> <1/> boosted" 2566 2566 2567 - #: src/components/status.jsx:4056 2567 + #: src/components/status.jsx:4055 2568 2568 msgid "Post hidden by your filters" 2569 2569 msgstr "Post hidden by your filters" 2570 2570 2571 - #: src/components/status.jsx:4057 2571 + #: src/components/status.jsx:4056 2572 2572 msgid "Post pending" 2573 2573 msgstr "Post pending" 2574 2574 2575 + #: src/components/status.jsx:4057 2575 2576 #: src/components/status.jsx:4058 2576 2577 #: src/components/status.jsx:4059 2577 2578 #: src/components/status.jsx:4060 2578 - #: src/components/status.jsx:4061 2579 2579 msgid "Post unavailable" 2580 2580 msgstr "Post unavailable" 2581 2581
+5
src/utils/relative-time-format.js
··· 1 + import mem from './mem.js'; 2 + 3 + export default mem( 4 + (locale) => new Intl.RelativeTimeFormat(locale || undefined), 5 + );