@kkdev92/vscode-ext-kit - v4.1.1
    Preparing search index...
    • Picks the right plural form for count in language and interpolates it.

      Uses Intl.PluralRules for the CLDR category, then substitutes {count} and anything in extra.

      Parameters

      • language: string
      • count: number
      • forms: PluralForms
      • Optionalextra: Readonly<Record<string, string | number>>

      Returns string

      pluralFor('en', 1, { one: '{count} item', other: '{count} items' });
      // '1 item'
      pluralFor('en', 3, { one: '{count} of {total}', other: '{count} of {total}' }, { total: 10 });
      // '3 of 10'