Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

I use polyfills for Intl APIs for React Native. Every Intl constructor uses LocaleMatcher internally, which has terrible performance.

I noticed though that the lookup algorithm is quite fast (as opposed to best fit), and it fits my use case. Can we have an option to specify locale matching strategy for all Intl constructors? E.g.

<IntlProvider locale={localeCode} defaultLocale="en" localeMatcher="lookup">
 {/* ... */}
</IntlProvider>
You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
💡
Ideas
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.