Implementations for :number, :string, and other default functions, along with some utilities for building custom function handlers.
import { MessageFormat } from 'messageformat';import { DraftFunctions } from 'messageformat/functions';const mf = new MessageFormat(locale, msgSrc, { functions: DraftFunctions }); Copy
import { MessageFormat } from 'messageformat';import { DraftFunctions } from 'messageformat/functions';const mf = new MessageFormat(locale, msgSrc, { functions: DraftFunctions });
Implementations for :number, :string, and other default functions, along with some utilities for building custom function handlers.