Pluralization
There may be cases where you want to display custom messages based on the item count. This is especially important in certain cultures such as Polish.
The format method supports that by accepting format strings that contain pluralization rules encoded as JSON objects.
For example, choose the number of items and see the formatted output below:
A single item is selected.