You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/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.
5 years ago
..
chewy Fix searchable status without explicitly mentioning it (#13829) 5 years ago
controllers Add user notes on accounts (#14148) 5 years ago
helpers Add a visibility icon to status (#14123) 5 years ago
javascript Replace shortNumberFormat with <ShortNumber> (#14061) 5 years ago
lib Change Redis#exists calls to Redis#exists? to avoid deprecation warning (#14191) 5 years ago
mailers Add e-mail-based sign in challenge for users with disabled 2FA (#14013) 5 years ago
models Add color extraction for audio thumbnails (#14209) 5 years ago
policies
presenters Add user notes on accounts (#14148) 5 years ago
serializers Add user notes on accounts (#14148) 5 years ago
services Add customizable thumbnails for audio and video attachments (#14145) 5 years ago
validators Add E2EE API (#13820) 5 years ago
views Add color extraction for audio thumbnails (#14209) 5 years ago
workers Add color extraction for audio thumbnails (#14209) 5 years ago