bastodon/app/javascript/mastodon/features
Sasha Sorokin cb2adaaf9d
Replace shortNumberFormat with <ShortNumber> (#14061)
This commit introduces new utility component - ShortNumber. It should
work almost the same way as original shortNumberFormat function,
though it also localizes units and accepts one more prop - renderer.

Renderer is a function that takes rendered short formatted number
and also ready-to-pluralize number to format display result accordingly.
Ready-to-pluralize number allows to correctly select plural for
compactly notated numbers, respecting thousands and other units.

Issue #12451 accurately describes the issue with using raw numbers
when replacing counter with short version. In short, it doesn't work
with languages such as Russian, that require different plurals,
according to the unit number was compacted to.

All previous usages of shortNumberFormat were replaced with new
function, and as it became unused, it was removed to avoid misleading.
2020-07-06 14:27:32 +02:00
..
account Replace shortNumberFormat with <ShortNumber> (#14061) 2020-07-06 14:27:32 +02:00
account_gallery
account_timeline Fix the conditions for incomplete remote content (#14195) 2020-07-01 23:38:44 +02:00
audio Add color extraction for audio thumbnails (#14209) 2020-07-05 18:28:25 +02:00
blocks Fix WebUI pagination of following, followers, follow requests, blocks and mutes lists (#13445) 2020-04-12 13:38:00 +02:00
bookmarked_statuses Add bookmarks (#7107) 2019-11-13 23:02:10 +01:00
community_timeline Fix unread toot indicator not honoring onlyMedia in public and community timelines (#12330) 2019-11-11 00:05:02 +02:00
compose Improve wording of the “Add media” button tooltip (#13954) 2020-06-26 00:14:29 +02:00
direct_timeline Improve toot clicking areas (#13327) 2020-03-31 19:40:23 +02:00
directory Replace shortNumberFormat with <ShortNumber> (#14061) 2020-07-06 14:27:32 +02:00
domain_blocks Change the string "hidden" to "blocked" in WebUI (#13221) 2020-03-09 09:13:21 +01:00
emoji Fixed emoji detection problem to append border (#14020) 2020-06-10 21:56:14 +02:00
favourited_statuses
favourites Code style improvements in JavaScript (#13159) 2020-03-08 16:02:36 +01:00
follow_requests Fix WebUI pagination of following, followers, follow requests, blocks and mutes lists (#13445) 2020-04-12 13:38:00 +02:00
followers Fix the conditions for incomplete remote content (#14195) 2020-07-01 23:38:44 +02:00
following Fix the conditions for incomplete remote content (#14195) 2020-07-01 23:38:44 +02:00
generic_not_found
getting_started Fix frontend crash when deleting announcements (#13312) 2020-03-25 22:39:55 +01:00
hashtag_timeline Fix local streaming of hashtag timelines (#13827) 2020-05-23 05:46:29 +02:00
home_timeline Change how unread announcements are handled (#13020) 2020-02-03 01:53:09 +01:00
introduction
keyboard_shortcuts Add hotkey for toggling content warning composer field (#13987) 2020-06-09 10:32:32 +02:00
list_adder
list_editor
list_timeline
lists Code style improvements in JavaScript (#13159) 2020-03-08 16:02:36 +01:00
mutes Fix WebUI pagination of following, followers, follow requests, blocks and mutes lists (#13445) 2020-04-12 13:38:00 +02:00
notifications Add follow_request notification type (#12198) 2019-12-01 17:25:29 +01:00
pinned_statuses
public_timeline Add remote only to public timeline (#13504) 2020-05-10 10:36:18 +02:00
reblogs Code style improvements in JavaScript (#13159) 2020-03-08 16:02:36 +01:00
report
search
standalone Add local only to hashtag timeline (#13502) 2020-04-18 21:52:39 +02:00
status Add color extraction for audio thumbnails (#14209) 2020-07-05 18:28:25 +02:00
ui Add color extraction for audio thumbnails (#14209) 2020-07-05 18:28:25 +02:00
video Fix various issues around OpenGraph representation of media (#14133) 2020-06-25 01:33:01 +02:00