Closed Bug 1937867 Opened 11 months ago Closed 11 months ago

Implement Intl.Locale.prototype.getWeekInfo()

Categories

(Core :: JavaScript: Internationalization API, enhancement)

Firefox 133
enhancement

Tracking

()

RESOLVED DUPLICATE of bug 1693576

People

(Reporter: 22f1cjohp, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0

Steps to reproduce:

I tried running the given examples in the MDN documentation (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo).

const he = new Intl.Locale("he"); // Hebrew (Israel)
console.log(he.getWeekInfo()); // { firstDay: 7, weekend: [5, 6], minimalDays: 1 }

Actual results:

Uncaught TypeError: he.getWeekInfo is not a function

Expected results:

The result from running getWeekInfo() should've been the following object:
{ firstDay: 7, weekend: [5, 6], minimalDays: 1 }

The Bugbug bot thinks this bug should belong to the 'Core::Internationalization' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Internationalization
Product: Firefox → Core
Status: UNCONFIRMED → RESOLVED
Closed: 11 months ago
Component: Internationalization → JavaScript: Internationalization API
Duplicate of bug: 1693576
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.