Cldr.Number.Format.format_system_types_for
You're seeing just the function
format_system_types_for
, go back to Cldr.Number.Format module for more information.
Specs
format_system_types_for( Cldr.Locale.locale_name() | Cldr.LanguageTag.t(), Cldr.backend() ) :: {:ok, Keyword.t()} | {:error, {module(), String.t()}}
Returns the number system types 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
backend
is anyCldr
backend. That is, any module that containsuse Cldr
A number system type is an identifier that categorises number systems that comprise a site of digits or rules for transliterating or translating digits and a number system name for determining plural rules and format masks.
If that all sounds a bit complicated then the default number system type
called :default
is probably what you want nearly all the time.
Examples
iex> Cldr.Number.Format.format_system_types_for("pl", MyApp.Cldr)
{:ok, [:default, :native]}
iex> Cldr.Number.Format.format_system_types_for("ru", MyApp.Cldr)
{:ok, [:default, :native]}
iex> Cldr.Number.Format.format_system_types_for("th", MyApp.Cldr)
{:ok, [:default, :native]}