i18n-js v5.0.0-alpha.1
    Preparing search index...

    Variable defaultPluralizerConst

    defaultPluralizer: Pluralizer = ...

    The default pluralizer.

    It's pretty straightforward:

    • when count is 0, then the possible keys are either zero for other; this allows having translations like "You have no messages", defaulting to "You have 0 messages".
    • when count is 1, then the key is one.
    • when greater than 1, then the key is other.

    The I18n's instance.

    The number that's being analyzed.

    The list of possible translation scopes.