You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{match}from"@formatjs/intl-localematcher"// Derived from HTTP header Accept-Language// For example using https://github.com/jshttp/negotiator// const preferredLocales = new Negotiator({ headers }).languages();constpreferredLocales=['*'];constavailableLangs=['nl','fr','de'];constdefaultLang=availableLangs[0];match(preferredLocales,availableLangs,defaultLang);// => 'nl' (defaultLang)
Which package?
@formatjs/intl-localematcher
Describe the bug
The text was updated successfully, but these errors were encountered: