Closed WizBangCrash closed 1 year ago
Please check the result of new Intl.DateTimeFormat().resolvedOptions().locale
, which is what Luxon uses to determine your system locale.
Please check the result of
new Intl.DateTimeFormat().resolvedOptions().locale
, which is what Luxon uses to determine your system locale.
Thanks for the quick response.
The result in the Arc browser is: 'en-US' and in the Safari browser is 'en-GB'
Sounds like a bug in the Arc browser then. Unfortunately I cannot test this myself, because the browser is not available for download at the moment. I suggest you file a bug report with them.
Thanks @diesieben07 . I have raised it as a bug with Arc and am awaiting a response from them.
For info. Arc confirmed it was a bug at their end. It will be fixed in v1.15 of the browser.
Describe the bug The
luxon.DateTime.now().locale
function incorrectly reports the browser locale as 'en-US' when using the Arc web browser. The locale has been set to 'en-GB' and the functionwindow.navigator.language
returns 'en-GB'.To Reproduce
luxon.DateTime.now().locale
window.navigator.language
Actual vs Expected behavior See steps 1 to 6 above
Desktop (please complete the following information):
Additional context Running the same commands on the same webpage running in Safari or Brave return the locale
en-GB