Resolving from a list of requested locales (via Accept-Languages header for example) to a list of supported locales for a certain website. See vercel/next.js#18676 for example.
Existing locale matching libraries are fairly rudimentary (exact match only). We already have LookupMatcher/BestAvailableLocale/ResolveLocale abstract operations that take into account extensions as well so IMO we should make a top level API for this.
Resolving from a list of requested locales (via
Accept-Languagesheader for example) to a list of supported locales for a certain website. See vercel/next.js#18676 for example.Existing locale matching libraries are fairly rudimentary (exact match only). We already have
LookupMatcher/BestAvailableLocale/ResolveLocaleabstract operations that take into account extensions as well so IMO we should make a top level API for this.