SoftBank.Cldr.Number.Format.all_formats_for
You're seeing just the function
all_formats_for
, go back to SoftBank.Cldr.Number.Format module for more information.
Specs
all_formats_for(Cldr.LanguageTag.t() | Cldr.Locale.locale_name()) :: {:ok, map()} | {:error, {module(), String.t()}}
Returns the decimal formats defined for a given locale.
Arguments
locale
is any valid locale name returned bySoftBank.Cldr.known_locale_names/0
or aCldr.LanguageTag
struct returned bySoftBank.Cldr.Locale.new!/1
. The default isSoftBank.Cldr.get_locale/0
Returns
{:ok, map}
where map is a map of decimal formats keyed by number system or{:error, {exception, message}}