oven-sh/bun
View on GitHubDefault locale for`Intl.DateTimeFormat` should match `$LANG` environment variable
Open
#8,480 opened on Jan 25, 2024
bugconfirmed buggood first issue
Repository metrics
- Stars
- (90,348 stars)
- PR merge metrics
- (Avg merge 1d 17h) (357 merged PRs in 30d)
Description
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