localeMatcher
localeMatcher is an option in the ECMAScript Internationalization API that controls how user-preferred locales are matched against the set of locales an application can use. It is part of the locale negotiation process used by Intl constructors and related methods to determine which locale should be applied for formatting, sorting, and other locale-sensitive operations.
The option accepts two values: lookup and best fit. The lookup algorithm is a straightforward, step-by-step matching
Defaults and usage: The default value for localeMatcher can vary by implementation, but many environments treat
Examples: new Intl.DateTimeFormat(['en-GB', 'fr-FR'], { localeMatcher: 'lookup' }) applies the lookup strategy, returning the first acceptable locale from
See also: ECMAScript Internationalization API (ECMA-402), Intl.DateTimeFormat, Intl.NumberFormat, Intl.Collator, BCP 47 language tags, and locale negotiation