Cldr.Locale.first_match
You're seeing just the function
first_match
, go back to Cldr.Locale module for more information.
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 byCldr.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 oflanguage_tag
.
Returns
- The first
truthy
value returned byfun/1
ornil
if no match is made.