← Back to release summary

Intl BestFitMatcher by using ICU LocaleMatcher

Category
JavaScript
Type
No developer-visible change
Status
In developer trial (Behind a flag) (Chrome 93)
Intent stage
Prepare to ship

Summary

Use the ICU LocaleMatcher to implement the BestFitMatcher of ECMA402 in v8 JavaScript engine. ECMA402 defined the BestFitMatcher abstract operation to allow browser implementation to implement a better way to match locale data. UTS35 sec "4.4 Language Matching" details a data driven algorithm to use CLDR. ICU 67.1 (launched in April 2020) comes with an improved icu::LocaleMatcher API and implementation . This document shows how we implement v8's BestFitMatcher to use such API.

Standards & signals

Docs: https://docs.google.com/document/d/1cPGfiihn76yj2iAomKcspPFyLLcnk3WkCiqceBQPQyk/edit#

View on chromestatus.com