MyApp.Cldr.Number.Format.default_grouping_for
You're seeing just the function
default_grouping_for
, go back to MyApp.Cldr.Number.Format module for more information.
Specs
default_grouping_for(Cldr.LanguageTag.t() | Cldr.Locale.locale_name()) :: {:ok, map()} | {:error, {module(), String.t()}}
Returns the default grouping for a locale as a map.
Arguments
locale
is any valid locale name returned byCldr.known_locale_names/0
or aCldr.LanguageTag
struct returned byMyApp.Cldr.Locale.new!/1
. The default isMyApp.Cldr.get_locale/0
Returns
{:ok, grouping}
or{:error, {exception, message}}
Examples
iex> MyApp.Cldr.Number.Format.default_grouping_for("en")
{:ok, %{fraction: %{first: 0, rest: 0}, integer: %{first: 3, rest: 3}}}