Created
February 11, 2025 07:03
-
-
Save aravindanve/e4434dfd94645ab0702bef7874ed7b20 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// BUG: on chrome, new Intl.DateTimeFormat().resolvedOptions().locale does not report the correct browser locale | |
// see https://issues.chromium.org/issues/40070535 | |
// for now, manually set default locale | |
// see https://stackoverflow.com/a/79146962/4274918 | |
Settings.defaultLocale = Intl.DateTimeFormat(navigator.language).resolvedOptions().locale; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment