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

Custom Language Labels on Pin Repo

Open R-N opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe.

Sometimes a repo's language label is incorrectly determined by Github. Like, one of my repo has more HTML files than Java, but really it was an android app developed in android studio. And the HTML files were references. I'd like to be able to override that.

In addition, for Javascript, sometimes I want it to specifically say Vue.js.

Or better yet, if it's possible to specify more than one. Some of my older repo has both frontend and backend as one and I'd like to properly label them in my profile readme.

Describe the solution you'd like

Being able to specify (and override) language label in pin repo. If possible, specify multiple of them.

Describe alternatives you've considered

I can put them in the repo description I guess

Additional context

No response

R-N avatar Nov 02 '24 17:11 R-N

Hello @R-N

Thank you for opening this issue. I appreciate your interest in our project.

I'm not sure whether we really need this feature since there is already an ability to control the behavior of github-linguist library which GitHub uses for languages detection in the repositories. You can create a .gitattributes file in the root of your repository and mark some specific language as linguist-detectable=false. There is also an ability to mark as linguist-vendored or linguist-generated=true, I think that one of it should work. I will add some examples below.

*.html linguist-detectable=false

vendor/* linguist-vendored
build/* linguist-generated=true

qwerty541 avatar Sep 24 '25 22:09 qwerty541