Cldr.Message.canonical_message
You're seeing just the function
canonical_message
, go back to Cldr.Message module for more information.
Formats a message into a canonical form.
This allows for messages to be compared
directly, or using Cldr.Message.jaro_distance/3
.
Arguments
message
is a CLDR message in binary formoptions
is a keyword list of options. The default is[]
Options
:trim
determines if the message is trimmed of whitespace before formatting. The default istrue
.:pretty
determines if the message if formatted with indentation to aid readability. The default isfalse
.
Returns
{ok, canonical_message}
wherecanonical_message
is a binary or{:error, {exception, reason}}