Skip to main content

Type Alias: FormatMessage

FormatMessage = (descriptor, values?, opts?) => string

Function type for formatting internationalized messages. Handles variable substitution and formatting in localized strings, ensuring consistent text presentation across languages.

Parameters​

descriptor​

MessageDescriptor

values?​

Record<string, MessagePrimitiveType | FormatXMLElementFn<string, string>>

opts?​

IntlMessageFormatOptions

Returns​

string