cb2adaaf9d
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. |
||
---|---|---|
.. | ||
actions | ||
components | ||
containers | ||
features | ||
locales | ||
middleware | ||
reducers | ||
selectors | ||
service_worker | ||
storage | ||
store | ||
utils | ||
api.js | ||
base_polyfills.js | ||
common.js | ||
compare_id.js | ||
extra_polyfills.js | ||
initial_state.js | ||
is_mobile.js | ||
load_keyboard_extensions.js | ||
load_polyfills.js | ||
main.js | ||
performance.js | ||
ready.js | ||
rtl.js | ||
scroll.js | ||
settings.js | ||
stream.js | ||
test_setup.js | ||
uuid.js |