Unicode MessageFormat for JavaScript
    Preparing search index...

    Function fluentToResourceData

    • Compile a Fluent resource (i.e. an FTL file) into a Map of Model.Message data objects.

      Parameters

      • source: string | Resource

        A Fluent resource, as the string contents of an FTL file or as a Fluent.Resource

      • Optionaloptions: { detectNumberSelection?: boolean }
        • OptionaldetectNumberSelection?: boolean

          Set false to disable number selector detection based on keys.

      Returns { comments: string; data: FluentMessageResourceData }

      An object containing the messages as data and any resource-level comments of the resource.