Link Search Menu Expand Document

fluent package


Function Description
compileFluentResource(source, locales, options) <p>(BETA) Compile a Fluent resource (i.e. an FTL file) into a Map of MessageFormat instances.</p><p>A runtime provided by getFluentRuntime() is automatically used in these instances.</p>
compileFluentResourceData(src) (BETA) Compile a Fluent resource (i.e. and FTL file) into a Map of Message data objects.
getFluentRuntime(res) <p>(BETA) Build a MessageFormat runtime to use with Fluent messages.</p><p>This builds on top of the default runtime, but uses all-caps names for the DATETIME and NUMBER message formatters. A custom function MESSAGE is also included to support Fluent term and message references.</p>