Skip to main content Link Menu Expand (external link) Document Search Copy Copied


This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Constructs a new instance of the MessageFormat class


constructor(source: string | Message, locales?: string | string[], options?: MessageFormatOptions);


Parameter Type Description
source string | Message  
locales string | string[] (Optional)
options MessageFormatOptions (Optional)