fluent package

Functions

Function Description
fluentToMessage(ast, { detectNumberSelection }) (BETA) Compile a Fluent.Pattern (i.e. the value of a Fluent message or an attribute) into a Message data object.
fluentToResource(source, locales, options) (BETA) Compile a Fluent resource (i.e. an FTL file) into a Map of MessageFormat instances.
fluentToResourceData(source, options) (BETA) Compile a Fluent resource (i.e. an FTL file) into a Map of Message data objects.
getFluentFunctions(res) (BETA) Build a MessageFormat runtime to use with Fluent messages.
messageToFluent(msg, defaultKey, functionMap) (BETA) Convert a Message data object into a Fluent.Pattern (i.e. the value of a Fluent message or an attribute).
resourceToFluent(resource, template, functionMap) (BETA) Convert a Map of Message data objects into a Fluent.Resource.

Variables

Variable Description
defaultFunctionMap (BETA) Default value for the messageToFluent() functionMap option.
FluentMessageRef (BETA) Symbol used to identify a custom function for Fluent message/term references.

Type Aliases

Type Alias Description
FluentMessageResource (BETA) A Map of MessageFormat instances.
FluentMessageResourceData (BETA) A Map of Message data structures.
FluentToMessageOptions (BETA)