-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
🐛 BUG: RangeError: Incorrect locale information provided #3309
Comments
invalid solution:
|
Sorry for the frustration! This is a pretty critical issue but should be pretty small to fix. We should definitely take a look at this soon. |
Hi, the solution that I have attached is not valid, this affects Windows 11 users with international Spanish (or that is my case). I am attentive to the solution and to what you need |
I've just had this affect a colleague, her machine was in Colombian Spanish while I'm in UK English. |
Thanks for opening an issue—this is fixed in the next release of Astro! We've also added some regression tests to ensure this doesn't happen in the future. |
* fix(withastro#3309): use system default locale * fix(withastro#3309): use system default locale in create-astro * test: add locale regression tests * test: add i18n regression test
What version of
astro
are you using?1.0.0-beta.24
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Windows
Describe the Bug
Running Astro generates the following error:
This error occurs because node generates the process.en.LANG with the following code
es_419.UTF-8
, which is incompatible with the result ofgetLoggerLocale
when instantiating Intl.DateTimeFormat in:Reproduction is complex since this is a Node variable depending on the region of the installation, in my case country Chile
Link to Minimal Reproducible Example
https://github.com/UpperCod/atomico-astro
Participation
The text was updated successfully, but these errors were encountered: