iamkun / iamkun/dayjs

German dot not appearing in ordinal months

Open
#1,434 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
48.7k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
When trying to display a german month like `Feb.`, using format `Do MMM`, dot does not appear.

**Expected behavior**
When using Do, `Feb.` should be displayed instead of `Feb`.

**Information**

Day.js Version: 1.10.4
OS: Mac

I am using

```
import localizedFormat from 'dayjs/plugin/localizedFormat'
dayjs(date).format(dateFormat)
```

Not sure if dayjs supports ordinals for months. If yes, which one is the syntax?

Contributor guide

Open the contributing guide

Research direction

Start at the localizedFormat plugin and the format(dateFormat) entry point, then trace how German month names are selected for `Do MMM`. Compare the current output with the expected `Feb.` result and add coverage for this formatting case; done means German ordinal-month formatting includes the period without changing other locale output.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
localization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.