iamkun / iamkun/dayjs

Locale Import made relative

Open Beginner friendly
#1,705 0 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**

Locale cannot be imported when name of package is changed.

**Expected behavior**

That imports would be relative "in package" so it can continue to work.

**Information**
- Day.js Version ALL
- OS: ALL
- Browser ALL
- Time zone: ALL

**Fix**
inside locale/*.*
```diff
- import dayjs from 'dayjs'
+ import dayjs from '..'
```

Contributor guide

Open the contributing guide

Research direction

Start with the files under locale/*.* and review how they import dayjs when the package name changes. Update the locale imports to use the package-relative path shown in the issue, then verify that locales can still be imported after the package name is changed.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
localization
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.