Cldr.Message.V2.Print (Cldr Messages v2.0.0)

Copy Markdown View Source

Converts a MessageFormat 2 AST back to its canonical string form.

Used by Cldr.Message.canonical_message/2 for V2 messages.

Summary

Functions

Converts a parsed MF2 AST back to a canonical message string.

Functions

to_string(ast, options \\ [])

@spec to_string(list() | tuple(), Keyword.t()) :: String.t()

Converts a parsed MF2 AST back to a canonical message string.

Arguments

  • ast is a parsed MF2 message AST as returned by Cldr.Message.V2.Parser.parse/1.

  • options is a keyword list of options (currently unused but reserved for future use).

Returns

  • A canonical message string.