Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LocaleMatcher doesn't work on propietary tags #4384

Open
ImUrX opened this issue Apr 5, 2024 · 2 comments
Open

LocaleMatcher doesn't work on propietary tags #4384

ImUrX opened this issue Apr 5, 2024 · 2 comments

Comments

@ImUrX
Copy link

ImUrX commented Apr 5, 2024

Which package?

intl-localematcher

Describe the bug

I was previously using an old version (0.2.32) which properly matched to proprietary tags if they were used but now with the latest version (0.5.4) it doesn't

To Reproduce

const { match } = require('@formatjs/intl-localematcher')
console.log(match(["en-x-owo"], ["en","en-x-owo"], "en")) // outputs "en" on newer version and "en-x-owo" on the old version

Expected behavior

For it to return the proprietary tag if it's the one being matched

@ImUrX ImUrX added the bug label Apr 5, 2024
Copy link

github-actions bot commented May 6, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label May 6, 2024
@ImUrX
Copy link
Author

ImUrX commented May 6, 2024

Why stale issues 😭

@github-actions github-actions bot removed the Stale label May 7, 2024
@longlho longlho added the pinned label May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants