Intl.LocaleMatcher ponyfill providing comprehensive locale matching algorithms with support for 'lookup' and 'best fit' strategies
94
Supported locales filtering and lookup
LookupSupportedLocales usage
25%
100%
Correct parameter order
100%
100%
Return value handling
66%
100%
Package import
100%
100%
Test coverage
100%
100%
Basic locale matching with configurable algorithms
Import match function
100%
100%
Call match function
100%
100%
Pass requested locales
100%
100%
Pass available locales
100%
100%
Configure default locale
100%
100%
Configure algorithm option
100%
100%
Handle empty inputs
100%
100%
CLDR-based language distance calculation with 2600+ rules
Uses match() function
100%
100%
Best fit algorithm
100%
100%
Proper parameter usage
100%
100%
Handles test cases
100%
100%
Lookup vs Best Fit algorithm selection
Import match function
100%
100%
Lookup algorithm usage
100%
100%
Best fit algorithm usage
100%
100%
Algorithm selection logic
100%
100%
Function signature correctness
100%
100%
Return value handling
100%
100%
Unicode extension processing (calendar, numbering, hour cycle)
Locale object creation
60%
80%
Calendar extraction
100%
66%
Numbering system extraction
100%
66%
Hour cycle extraction
100%
66%
Options priority
100%
100%
Null handling
100%
100%
Locale maximization using CLDR likely subtags
Intl.Locale instantiation
100%
100%
maximize() method usage
100%
100%
Locale string extraction
100%
100%
Single locale processing
100%
100%
Multiple locale processing
100%
100%
Error handling
100%
100%
Region-based matching with CLDR containment data
Imports match function
100%
100%
Uses match function
100%
100%
Best fit algorithm
100%
100%
Correct parameter order
100%
100%
Handles test scenarios
100%
100%
Advanced locale resolution with Unicode extensions
ResolveLocale usage
100%
100%
Extension key processing
100%
100%
Locale data integration
100%
100%
Options override handling
80%
100%
Result structure extraction
66%
100%
Basic locale matching
100%
100%
Three-tier matching optimization (439x performance improvement)
Uses match function
20%
60%
Handles exact matches
20%
33%
Supports maximization
15%
25%
Position-based preference
100%
100%
Caching strategy
33%
66%
Default locale handling
100%
100%
BestAvailableLocale progressive fallback algorithm
Package Import
53%
100%
Locale Matching Usage
16%
100%
Progressive Fallback
100%
100%
Efficient Lookups
100%
100%
Test Compliance
100%
100%
Install with Tessl CLI
npx tessl i tessl/npm-formatjs--intl-localematcher