MessageProps interface


export interface MessageProps 


Property Modifiers Type Description
children?   unknown (Optional) 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[] (Optional) The key or key path of the message.
locale?   string | string[] (Optional) If set, overrides the locale of the nearest MessageProvider.
params?   unknown (Optional) 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.