Cldr.Number.validate_number_system

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

validate_number_system(locale, number_system, backend \\ default_backend())

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> Cldr.Number.validate_number_system "en", :latn, TestBackend.Cldr
{:ok, :latn}

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

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

iex> Cldr.Number.validate_number_system "zz", :default, TestBackend.Cldr
{:error, {Cldr.InvalidLanguageError, "The language \"zz\" is invalid"}}