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

Default locale forIntl.DateTimeFormat should match $LANG environment variable #8480

Open
kecrily opened this issue Jan 25, 2024 · 0 comments
Labels
bug Something isn't working good first issue Something that would be good for new contributors

Comments

@kecrily
Copy link

kecrily commented Jan 25, 2024

What version of Bun is running?

1.0.25+a8ff7be64

What platform is your computer?

Darwin 23.3.0 arm64 arm

What steps can reproduce the bug?

> bun repl
> Intl.DateTimeFormat().resolvedOptions().locale
'en-US'

What is the expected behavior?

In node, deno and browsers, it is always the user's language preference. In my case it's zh-CN, which corresponds to the value obtained by running echo $LANG in the terminal.

What do you see instead?

Always en-US

Additional information

No response

@kecrily kecrily added the bug Something isn't working label Jan 25, 2024
@jdalton jdalton added the good first issue Something that would be good for new contributors label Jan 25, 2024
@Electroid Electroid changed the title Default language environment is inconsistent with other implementations Default locale forIntl.DateTimeFormat should match $LANG environment variable Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Something that would be good for new contributors
Projects
None yet
Development

No branches or pull requests

2 participants