Unicode MessageFormat for JavaScript
    Preparing search index...

    Interface SelectMessage

    SelectMessage generalises the plural, selectordinal and select argument types of MessageFormat 1. Each case is defined by a key of one or more string identifiers, and selection between them is made according to the values of a corresponding number of selectors.

    Pattern Selection picks the best match among the variants. The result of the selection is always a single Pattern.

    interface SelectMessage {
        comment?: string;
        declarations: Model.Declaration[];
        selectors: Model.VariableRef[];
        type: "select";
        variants: Model.Variant[];
    }
    Index

    Properties

    comment?: string
    declarations: Model.Declaration[]
    selectors: Model.VariableRef[]
    type: "select"
    variants: Model.Variant[]