MyApp.Cldr.Number.validate_number_system

You're seeing just the function validate_number_system, go back to MyApp.Cldr.Number module for more information.
Link to this function

validate_number_system(locale, number_system)

View Source

Specs

Return a valid number system from a provided locale and number system name or type.

The number system or number system type must be valid for the given locale. If a number system type is provided, the underlying number system is returned.

Arguments

Examples

iex> MyApp.Cldr.Number.validate_number_system "en", :latn
{:ok, :latn}

iex> MyApp.Cldr.Number.validate_number_system "en", :default
{:ok, :latn}

iex> MyApp.Cldr.Number.validate_number_system "en", :unknown
{:error,
 {Cldr.UnknownNumberSystemError, "The number system :unknown is unknown"}}

iex> MyApp.Cldr.Number.validate_number_system "zz", :default
{:error, {Cldr.UnknownLocaleError, "The locale \"zz\" is not known."}}