iamkun / iamkun/dayjs

Locale "pt-BR" The first letter is not capitalized.

Open
#2,333 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**
hello,

I am using 'dayjs/locale/pt-br' to return the months and years in the datePicker, but the first letter does not stay capitalized. It appears like this: "junho 2023" instead of "Junho 2023", as shown in the image below.

![image](https://github.com/iamkun/dayjs/assets/79919984/d77cfae4-bc21-4c7d-8bf5-0db413df02ef)

**Expected behavior**
return: "Julho 2023"

**Information**
- Day.js Version [e.g. v1.0.0]
- OS: [e.g. iOS]
- Browser [e.g. chrome 62]
- Time zone: [e.g. GMT-07:00 DST (Pacific Daylight Time)]

Contributor guide

Open the contributing guide

Research direction

Start by inspecting the dayjs/locale/pt-br locale implementation and the date-formatting path used for month names. Reproduce the reported output for "junho 2023" and verify the change against the expected "Julho 2023" wording; the issue does not name a test file or provide version and environment details.

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
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.