Skip to content

Consistently allow Locale objects in locale list params #52996

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

Merged
merged 2 commits into from
Nov 29, 2023

Conversation

lionel-rowe
Copy link
Contributor

Fixes #52946

I've also removed the type BCP47LanguageTag in favor of UnicodeBCP47LocaleIdentifier — not sure why there were 2 distinct types for this in the first place, especially given that both are just aliases of string. In any case, the correct term is "locale identifier", not "language tag" — BCP 47 locale identifiers are a subset of BCP 47 language tags, and language tags that aren't locale identifiers aren't supported by Intl. BCP47LanguageTag could alternatively be deprecated rather than removed, to mitigate the unlikely case of userland code using the Intl.BCP47LanguageTag type... not sure if that's a necessary consideration, though.

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Feb 27, 2023
@lionel-rowe
Copy link
Contributor Author

@microsoft-github-policy-service agree company="Clearly Local"

@sandersn sandersn self-assigned this Mar 9, 2023
@sandersn sandersn requested review from sandersn and navya9singh March 9, 2023 17:44
@sandersn sandersn added the For Backlog Bug PRs that fix a backlog bug label Mar 9, 2023
@typescript-bot typescript-bot removed the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Mar 9, 2023
@lionel-rowe lionel-rowe force-pushed the fix/locales-argument branch 2 times, most recently from c232d54 to ab8be33 Compare November 22, 2023 02:53
@lionel-rowe
Copy link
Contributor Author

@sandersn Any chance of getting this merged soon? If nothing else, it'd be good to be able to close the attached issue, as it seems to be a magnet for people mistakenly thinking it's about their own Intl-adjacent issues, which usually turn out to be unrelated.

Copy link
Member

@sandersn sandersn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like an improvement. I just have some questions about interface merging and the BC47LanguageTag alias.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Backlog Bug PRs that fix a backlog bug
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Various Intl-related constructors and methods reject Intl.Locale objects in locales parameter
3 participants