Cldr.Number.Format.short_format_styles_for
You're seeing just the function
short_format_styles_for
, go back to Cldr.Number.Format module for more information.
Specs
short_format_styles_for( Cldr.LanguageTag.t() | Cldr.Locale.locale_name(), binary() | atom(), Cldr.backend() ) :: {:ok, [atom()]} | {:error, {module(), String.t()}}
Returns the short formats available for a locale.
Arguments
locale
is any valid locale name returned byCldr.known_locale_names/1
or aCldr.LanguageTag
struct returned byCldr.Locale.new!/2
. The default isCldr.get_locale/1
number_system
is any valid number system or number system type returned byCldr.Number.System.number_systems_for/2
backend
is anyCldr
backend. That is, any module that containsuse Cldr
Example
iex> Cldr.Number.Format.short_format_styles_for("he", :latn, MyApp.Cldr)
{:ok, [:currency_short, :decimal_long, :decimal_short]}