Cldr.Number.System.number_systems_like
number_systems_like
, go back to Cldr.Number.System module for more information.
Specs
number_systems_like( Cldr.LanguageTag.t() | Cldr.Locale.locale_name(), system_name(), Cldr.backend() ) :: {:ok, list()} | {:error, {module(), String.t()}}
Returns locale and number systems that have the same digits and separators as the supplied one.
Arguments
locale
is any valid locale name returned byCldr.known_locale_names/0
or aCldr.LanguageTag
struct returned byCldr.Locale.new!/2
system_name
is any number system name returned byCldr.known_number_systems/0
or a number system type returned byCldr.known_number_system_types/0
backend
is anyCldr
backend. That is, any module that containsuse Cldr
Returns
Notes
Transliterating between locale & number systems is expensive. To avoid unncessary transliteration we look for locale and number systems that have the same digits and separators. Typically we are comparing to locale "en" and number system "latn" since this is what the number formatting routines use as placeholders.