Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Automatically populate the list of languages using Linguist #71

Closed
pchaigno opened this issue Oct 4, 2015 · 3 comments
Closed

Automatically populate the list of languages using Linguist #71

pchaigno opened this issue Oct 4, 2015 · 3 comments

Comments

@pchaigno
Copy link

pchaigno commented Oct 4, 2015

GitHub uses Linguist (Ruby gem name is github-linguist) to identify the languages of repositories. Contribulator could use it to retrieve the list of supported languages.
There are a good number of supported languages so it would require a few changes to the web UI.

Would you consider this?

@wadtech
Copy link
Collaborator

wadtech commented Oct 5, 2015

Hi @pchaigno

Thanks for your suggestion. Seems sensible to me.

Would you be interested in opening a PR for this? I'm happy to help where I can.

@andrew
Copy link
Member

andrew commented Oct 5, 2015

I've actually made a gem that would be useful for this: https://github.com/librariesio/languages

github-linguist has some dependencies that are difficult to install on heroku so I extracted just the language sections out into a separate gem to make it easy to use, @pchaigno you could use that to get all the languages:

Languages::Language.all #=> [#<Languages::Language name=ActionScript color=#e3491a>, ..]

@wadtech
Copy link
Collaborator

wadtech commented Oct 5, 2015

👍

@andrew andrew closed this as completed Oct 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants