iamkun / iamkun/dayjs

the updateLocale Plugin should merge config rather than replace it

Open
#2,386 2 comments 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**
updateLocal Plugin set default Value

**Expected behavior**
the updateLocale Plugin should merge config rather than replace it
![image](https://github.com/iamkun/dayjs/assets/37408756/104a5c0a-ba1a-428b-a37b-7c2ac780c6cd)

**Information**
- Day.js Version 1.11.9
- OS: mac
- Browser chrome 100+

Contributor guide

Open the contributing guide

Research direction

Start with the updateLocale plugin entry point and reproduce the reported behavior using the issue's Day.js 1.11.9 context. Compare the resulting configuration with the expected merged configuration; done means existing configuration is preserved while the locale update is applied.

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
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.