Cldr.Locale.first_match

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

first_match(language_tag, fun, omit_singular_script? \\ false)

View Source

Execute a function for a locale returning the first match on language, script, territory, and variant combination.

A match is determined when the fun/1 returns a truthy value.

Arguments

  • language_tag is any language tag returned by Cldr.Locale.new/2.

  • fun/1 is single-arity function that takes a string locale name. The locale name is a built from the language, script, territory and variant combinations of language_tag.

Returns

  • The first truthy value returned by fun/1 or nil if no match is made.