GitHub uses different colors for each language. This is done via the Linguist library, which among other things, has ALL its config data in one huge YAML file. This file has been imported into config/languages.yml in this project.
This issue is to support differently colored badges depending on the language. It likely involves leveraging NextJS to read the YAML data once at build time and ideally creating a lighter version that is essentially just a key-value map between languages and colors. It should be persistent to avoid going through that huge file over and over again.
GitHub uses different colors for each language. This is done via the Linguist library, which among other things, has ALL its config data in one huge YAML file. This file has been imported into
config/languages.ymlin this project.This issue is to support differently colored badges depending on the language. It likely involves leveraging NextJS to read the YAML data once at build time and ideally creating a lighter version that is essentially just a key-value map between languages and colors. It should be persistent to avoid going through that huge file over and over again.