parseMessage() function

A MessageFormat 2 parser for message formatting.

Parses the source syntax representation of a message into its corresponding data model representation. Throws on syntax errors, but does not check for data model errors.

Signature:

export declare function parseMessage(source: string, opt?: MessageParserOptions): Model.Message;

Parameters

Parameter Type Description
source string  
opt MessageParserOptions (Optional)

Returns:

Model.Message