Skip to content

Cldr version 2.47.4

Latest

Choose a tag to compare

@kipcole9 kipcole9 released this 10 May 23:55
· 2 commits to main since this release

Bug Fixes

  • Cldr.Locale.Match.best_match/2 is significantly faster. Distance scoring now uses a trie (Cldr.Locale.DistanceTrie) baked at compile time from the ICU language-matching rules, replacing the per-call reduce over the full rule list.

  • Cldr.Locale.Match.validate/3 short-circuits through the backend's precomputed validate_locale/1 for known locale names, eliminating the per-supported-locale canonicalisation cost that previously dominated best_match on backends with many supported locales.