Cldr.Message.format

You're seeing just the function format, go back to Cldr.Message module for more information.
Link to this function

format(message, args \\ [], options \\ [])

View Source

Specs

format(String.t(), arguments(), options()) ::
  {:ok, String.t()} | {:error, {module(), String.t()}}

Format a message in the ICU Message Format

The ICU Message Format uses message "pattern" strings with variable-element placeholders enclosed in {curly braces}. The argument syntax can include formatting details, otherwise a default format is used.

Arguments

  • args is a list of map of arguments that are used to replace placeholders in the message

  • options is a keyword list of options

Options

  • :backend

  • :locale

  • :trim

  • :allow_positional_args

  • All other aptions are passed to the to_string/2 function of a formatting module

Returns

Examples