sillsdev / sillsdev/TheCombine
[Project Statistics] dayjs locale console warning
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 22
- Forks
- 10
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 9
Description
Describe the bug
Project Settings > Workshop Schedule tab
For browser languages with a country code, the first schedule button option (with "range of days"), throws a locale console warning.
To Reproduce
Steps to reproduce the behavior:
- Set web browser to a country-specific language (e.g., "en-US" or "en-GB")
- Open a project in The Combine of which you are the owner or an administrator
- Click the gear icon in the top bar to open Project Settings
- Click the Schedule (calendar icon) tab
- Observe the three icons under the "Workshop Schedule" section heading
- Open the web browser console
- Hover over the left icon (with 6 dots in the calendar) and see hover text about "range of days"
- Click this icon and see a warning appear in the console:
console.js:273 Your locale has not been found.
Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale
Or you forget to import the locale from 'dayjs/locale/{localeUsed}'
fallback on English locale
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the warning in Project Settings > Workshop Schedule using a country-specific browser language such as en-US or en-GB, focusing on the left “range of days” schedule option. Trace the dayjs locale handling used when that option is clicked and verify that the console no longer reports a missing locale while the schedule option continues to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend, localization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100