1
0
puyopuyotetr.is/app
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
..
chewy Fix searchable status without explicitly mentioning it (#13829) 2020-05-23 05:47:25 +02:00
controllers Add user notes on accounts (#14148) 2020-06-30 19:19:50 +02:00
helpers Add a visibility icon to status (#14123) 2020-06-25 22:43:59 +02:00
javascript Replace shortNumberFormat with <ShortNumber> (#14061) 2020-07-06 14:27:32 +02:00
lib Change Redis#exists calls to Redis#exists? to avoid deprecation warning (#14191) 2020-07-01 19:05:21 +02:00
mailers Add e-mail-based sign in challenge for users with disabled 2FA (#14013) 2020-06-09 10:23:06 +02:00
models Add color extraction for audio thumbnails (#14209) 2020-07-05 18:28:25 +02:00
policies Add ability to delete files uploaded for settings in admin UI (#13192) 2020-03-08 16:00:24 +01:00
presenters Add user notes on accounts (#14148) 2020-06-30 19:19:50 +02:00
serializers Add user notes on accounts (#14148) 2020-06-30 19:19:50 +02:00
services Add customizable thumbnails for audio and video attachments (#14145) 2020-06-29 13:56:55 +02:00
validators Add E2EE API (#13820) 2020-06-02 19:24:53 +02:00
views Add color extraction for audio thumbnails (#14209) 2020-07-05 18:28:25 +02:00
workers Add color extraction for audio thumbnails (#14209) 2020-07-05 18:28:25 +02:00