core package

The core MessageFormat-to-JavaScript compiler

Classes

Class Description
MessageFormat The core MessageFormat-to-JavaScript compiler

Functions

Function Description
compileModule(messageformat, messages) Compile a collection of messages into an ES module

Interfaces

Interface Description
MessageFormatOptions Options for the MessageFormat constructor
PluralFunction Function used to define the pluralisation for a locale
ResolvedMessageFormatOptions Returned by MessageFormat.resolvedOptions()
StringStructure A hierarchical structure of ICU MessageFormat strings

Type Aliases

Type Alias Description
CustomFormatter A custom formatter function. See Custom Formatters for more details.
MessageFunction A compiled message function, which may accept an object parameter
MessageModule The type of the generated ES module, once executed