Hello,
Opening an issue beforehand before diving into any implementation, as suggested by the guidelines.
I believe that there is no badge to display the main programming language of a repository. This could be a useful addition!
A Github API endpoint is available to retrieve the list of all languages used in the repository, alongside the number of bytes of code written in each language.
Does this seem like a desirable new badge?
Cheers,
Pyves
Nice idea! Though one thought I have is, is this something that is likely to change once a repository is created? We could avoid making an API call to Github by constructing the badge like this:
I would say it depends on the repository. Some might be on the tipping edge between two languages, some specific repositories might drift over time (for instance this one has progressively moved towards assembly). I guess it would be useful to have the choice between the simple one first suggested and a slightly more elaborate version that also includes the percentage for that top language?
Hi, do you meant like that?
https://img.shields.io/badge/language-javascript%2035.5%25-blue.svg
Yes, something like that. I'll attempt an implementation and see how things turn out.
How about this?
I like this new version, best we've got so far!
Would you like to submit a PR?
@ritwickdey yes, I'm making progress on this piece of work.
Most helpful comment
How about this?