dojo / dojo/widgets

Proposal for Calendar

Open
#1,762 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
92
Forks
63
PR merge metrics
No merged PRs in 30d

Description

**Enhancement**

I think the month names in Calendar might be an overhead.
In my own widgets I am using a fallback for the `renderMonthLabel` if `Intl` is available

```
function renderMonthLabel(month: number, year: number) {
let { monthNames, renderMonthLabel } = properties();
if (!monthNames && !renderMonthLabel) {
const d = new Date(Date.UTC(year, month, 1, 3, 0, 0));
return new Intl.DateTimeFormat('en-US', {month: 'long'}).format(d)
}
// ...
}
This returns the localised label for a month.
But not sure about i18n …

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.