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

fluent package

Functions

Function Description
fluentToMessage(ast) (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) (BETA) Compile a Fluent resource (i.e. an FTL file) into a Map of Message data objects.
getFluentRuntime(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.