Demos
Documentation
API
More Samples
Download Wijmo

Pluralization

In some cases you may want to display custom messages that depend on item counts. 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: