@blendsdk/react-year-planner
    Preparing search index...

    Function formatPluralMessage

    • Selects and formats one plural message.

      The locale drives Intl.PluralRules; an unknown locale falls back to the other form. This keeps every language usable even when a runtime has incomplete plural data.

      Parameters

      • message: PluralMessage

        Plural forms.

      • count: number

        Number that selects the form.

      • locale: string

        Active locale.

      Returns string

      The formatted message.

      formatPluralMessage({ one: "{count} day", other: "{count} days" }, 1, "en-US");
      // "1 day"