MF1 (v3) docsGitHub
  • Preparing search index...
  • The search index is not available
Unicode MessageFormat for JavaScript
  • Unicode MessageFormat for JavaScript
  • @messageformat/fluent
  • fluentToMessage

Function fluentToMessage

  • fluentToMessage(
        ast: Pattern,
        options?: { detectNumberSelection?: boolean },
    ): PatternMessage | Model.SelectMessage

    Compile a Fluent.Pattern (i.e. the value of a Fluent message or an attribute) into a Model.Message data object.

    Parameters

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

        Set false to disable number selector detection based on keys.

    Returns PatternMessage | Model.SelectMessage

    • Defined in fluent/src/fluent-to-message.ts:237

Settings

Member Visibility
MF1 (v3) docsGitHub
Unicode MessageFormat for JavaScript
  • Loading...