Soluling home Document home
If you use standard sprintf function, you might have something like this.
str = sprintf("%d files", count);
"%d files" with
"%d file;%d files". The modified code is
str = Plural.pluralSprintf("one;%d file;other;%d files", count, count);
See <data-dir>\Samples\HTML\Plural sample.
<data-dir>\Samples\HTML contains following samples:
|Sport||A static HTML page that contains images.|
Note! You can find Angular samples here, Rect samples here, Vue samples here, and Svelte samples here.