sillsdev / sillsdev/TheCombine

[Project Statistics] dayjs locale console warning

Open
#3,115 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug frontend lowpriority project
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:

  1. Set web browser to a country-specific language (e.g., "en-US" or "en-GB")
  2. Open a project in The Combine of which you are the owner or an administrator
  3. Click the gear icon in the top bar to open Project Settings
  4. Click the Schedule (calendar icon) tab
  5. Observe the three icons under the "Workshop Schedule" section heading
  6. Open the web browser console
  7. Hover over the left icon (with 6 dots in the calendar) and see hover text about "range of days"
  8. 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.