Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix language fallback in with-react-intl example (vercel#8894)
The call to `accept.languages()` made the fallback not work. When called e.g. with `Accept-Language: es-ES,es;q=0.9`, `locale` would contain `[ 'es-ES', 'es' ]` instead of `en`. (See also: https://www.npmjs.com/package/accepts#languagelanguages )
- Loading branch information