Skip to main content Link Search Menu Expand Document (external link)

getMF1Runtime variable

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.

Build a MessageFormat runtime to use with ICU MessageFormat 1 messages.

The structure of this runtime and the options available for its formatters follow the MF1 specifications, rather than being based on the MF2 default runtime.

Signature:

getMF1Runtime: () => {
    date: RuntimeFunction<MessageDateTime>;
    duration: RuntimeFunction<string>;
    number: RuntimeFunction<MessageNumber>;
    time: RuntimeFunction<MessageDateTime>;
}