-
Notifications
You must be signed in to change notification settings - Fork 511
fix: Intl.getCanonicalLocales
error message
#2741
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
fix: Intl.getCanonicalLocales
error message
#2741
Conversation
It looks like this is your first pull request. 🎉 Thank you for your contribution! One of the project maintainers will triage and assign the pull request for review. We appreciate your patience. To safeguard the health of the project, please take a moment to read our code of conduct. |
@bsmth Is it because of the browser difference? The error message I get is as follows: The browser version I am using is Edge 121.0.2277.128. |
Yes, I can confirm if you try it with Chrome, you get the following:
And Safari:
|
The error messages of Firefox and Safari are consistent, and the output messages of Chrome and node are consistent. Maybe add both error messages and then mark the running environment? |
We can add both to cover Chrome, Fx and Safari, why not. This can also be verified using eshost
The running environment is the reader's browser in this case, so I don't think we need to do anything else there. |
Co-authored-by: Brian Thomas Smith <brian@smith.berlin>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Do we do this elsewhere? I don't care much for these examples but I also don't think it's helpful when the message has the same meaning anyway. |
We do have a few:
And actually I just spotted we have this in the style guide: https://github.com/mdn/interactive-examples/blob/main/contributing/javascript-style-guide.md#representing-browser-differences
I tend to agree somewhat, my initial decision was to close for this reason, but I can see why some readers might be confused. I would format it like the suggestion in the style guide and merge, unless you have objections, @Josh-Cena. |
That "browser difference" is actual runtime difference, but this one is just a representational difference. I don't have strong objections, though. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
You're right. Let's go with this for now 👍🏻 |
Congratulations on your first merged pull request. 🎉 Thank you for your contribution! Did you know we have a project board with high-impact contribution opportunities? We look forward to your next contribution. |
Description
Motivation
Additional details
Related issues and pull requests