Cldr.Message (Cldr Messages v0.5.0) View Source

Implements the ICU Message Format with functions to parse and interpolate messages.

Link to this section Summary

Link to this section Types

Specs

arguments() :: list() | map()

Specs

message() :: binary()

Specs

options() :: Keyword.t()

Link to this section Functions

Link to this function

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

View Source

Specs

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

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

View Source

Specs

format!(String.t(), arguments(), options()) :: String.t() | no_return()
Link to this function

format_list(message, args, options)

View Source

See Cldr.Message.Interpreter.format_list/3.

Link to this function

jaro_distance(message1, message2, options \\ [])

View Source