Link Search Menu Expand Document

compileMF1MessageData() function

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.

Compile an ICU MessageFormat 1 message into a Message data object.

Signature:

export declare function compileMF1MessageData(src: string, locale: string, { strict }?: MF1Options): Message;

Parameters

Parameter Type Description
src string A Fluent resource, as the string contents of an FTL file.
locale string The locale code to use for the message.
{ strict } MF1Options (Optional)

Returns:

Message