MessageFormat class

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.

Create a new message formatter.

Signature:

export declare class MessageFormat 

Constructors

Constructor Modifiers Description
(constructor)(source, locales, options)   (BETA) Constructs a new instance of the MessageFormat class

Methods

Method Modifiers Description
format(msgParams, onError)   (BETA)
formatToParts(msgParams, onError)   (BETA)
resolvedOptions()   (BETA)