Link Search Menu Expand Document

MessageFormatOptions interface

Options for the MessageFormat constructor


export interface MessageFormatOptions


Property Type Description
biDiSupport? boolean (Optional) Add Unicode control characters to all input parts to preserve the integrity of the output when mixing LTR and RTL textDefault: false
currency? string (Optional) The currency to use when formatting {V, number, currency}Default: USD
customFormatters? { [key: string]: (value: any, locale: string, arg: string | null) => string; } (Optional) Map of custom formatting functions to include. See Custom Formatters for more details.
requireAllArguments? boolean (Optional) Require all message arguments to be set with a defined valueDefault: false
returnType? ‘string’ | ‘values’ (Optional) Return type of compiled functions; either a concatenated string or an array (possibly hierarchical) of valuesDefault: 'string'
strictNumberSign? boolean (Optional) Allow # only directly within a plural or selectordinal case, rather than in any inner select case as well.Default: false