github-readme-stats icon indicating copy to clipboard operation
github-readme-stats copied to clipboard

Different shell color in `Wakatime Stats` and `GitHub Most Used Language`.

Open 1chooo opened this issue 1 year ago • 1 comments

Describe the bug

In the following example, we can see that the color of the shell is different. This is because in Wakatime, the name for shell is "sh", while in GitHub Most Used Language, the color for shell is #89e051. Therefore, I am raising this issue to discuss and propose fixing the color of "sh" in Wakatime to #89e051.

Expected behavior

No response

Screenshots / Live demo link

Screenshot 2024-03-14 at 11 42 53 PM

Additional context

No response

1chooo avatar Mar 14 '24 15:03 1chooo

Hello @1chooo

Thank you for opening an issue.

That happens because WakaTime and GitHub are different services and their API returns different text for same languages in some cases. In our codebase we are using language colors detection algorithm based on the github-linguist library. We are fetching the updates from the following file https://github.com/github-linguist/linguist/blob/main/lib/linguist/languages.yml every month and generating the following JSON https://github.com/anuraghazra/github-readme-stats/blob/master/src/common/languageColors.json.

Resolving this issue would require to create and manually maintain some JSON storage for additional languages aliases. I'm not sure that we want to increase maintenance efforts and complexity of the codebase for this at the moment.

We can keep this issue open, so we could return to it in case there would be much interest from the community.

qwerty541 avatar Oct 06 '25 15:10 qwerty541