MessageFormat.(constructor)

This API is provided as a beta 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

Signature:

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

Parameters

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