View as Markdown

API reference: @salmonui/core/format

LocaleMessagetype

import type { LocaleMessage } from '@salmonui/core/format';
type LocaleMessage = string | {
    readonly zero?: string;
    readonly one?: string;
    readonly two?: string;
    readonly few?: string;
    readonly many?: string;
    readonly other: string;
};

A message: a {param} template, or plural forms chosen by Intl.PluralRules for count (other is required).