MessageFormat.formatToParts() method

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.

Signature:

formatToParts(msgParams?: Record<string, unknown>, onError?: (error: unknown) => void): MessagePart[];

Parameters

Parameter Type Description
msgParams Record<string, unknown> (Optional)
onError (error: unknown) => void (Optional)

Returns:

MessagePart[]