Closed BocanceaIonut closed 6 months ago
Please post the output of the following snippet in your runtime:
const intl = new Intl.DateTimeFormat('de', { weekday: 'long' });
console.log(intl.formatToParts(new Date()));
It should output something like this:
[
{ "weekday": "Donnerstag" }
]
The output of
const intl = new Intl.DateTimeFormat('de', { weekday: 'long' });
console.log('----------', intl.formatToParts(new Date()));
is
---------- [{"type": "literal", "value": "Donnerstag"}]
That suggests you are using Hermes, which unfortunately has an incomplete and not spec-compliant implementation of Intl.DateTimeFormat
. The output you posted is not correct, as you can see the value is marked as a literal, not a weekday. I suggest you report this bug to Hermes.
See also https://github.com/moment/luxon/issues/1500.
Describe the bug Info.weekdays returns a list of 7 null elements.
To Reproduce
OR
Actual vs Expected behavior Expected
["luni", "marți", "miercuri", "joi", "vineri", "sâmbătă", "duminică"]
OR["Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag", "Sonntag"]
Actual
[null, null, null, null, null, null, null]
Desktop (please complete the following information):
Additional context I installed the following polyfill:
and imported it in index.js like this
and it's still not working.