mwg API
    Preparing search index...

    Interface MessageParams

    interface MessageParams {
        count?: number;
        [token: string]: string | number | MessageParams | undefined;
    }

    Indexable

    • [token: string]: string | number | MessageParams | undefined

      A placeholder's value: a string or a number for {token}, or a record a dotted {token.path} walks into. Passing state as the tree it already is beats flattening it into names first - t('hit', { side }) with a message of {side.stored.hitpoints} - and a path that names nothing (a step missing, or an object where a value belongs) leaves the placeholder as written rather than rendering an object.

    Index
    count?: number

    picks the plural form, when the message has more than one