Link Search Menu Expand Document

MessageProps interface

Signature:

export interface MessageProps 

Properties

Property Type Description
children any If a function, will be called with the found message. In this case, params will be ignored and id is optional. If some other type of non-empty renderable node, it will be used as a fallback value if the message is not found.
id string | string[] The key or key path of the message.
locale string | string[] If set, overrides the locale of the nearest MessageProvider.
params any Parameters to pass to function messages as their first and only argument. params will override msgParams, to allow for data keys such as key and locale.