This would give more control over how the output is formatted. For example, if someone wanted to use numberToHuman instead of numberToDelimited.
Alternatives you considered
There’s no alternative to this as far as I can tell, given how count is parsed when a string is pluralized via zero, one, few, many, and other. Happy to be proven wrong. 🙂
Description
Numbers passed to
pluralize
viacount
are not delimited. For example, inen-US
:…should be:
Describe the solution
A possible solution is to pass an optional
displayCount
string that overrides the numericcount
in the output. For example:This would give more control over how the output is formatted. For example, if someone wanted to use
numberToHuman
instead ofnumberToDelimited
.Alternatives you considered
There’s no alternative to this as far as I can tell, given how
count
is parsed when a string is pluralized viazero
,one
,few
,many
, andother
. Happy to be proven wrong. 🙂Additional context
This is how pluralization works for FBT via
PluralOptions.value
.Thanks for all your work on this library!