Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more variations, or use standard codes #23

Open
SaadBazaz opened this issue Nov 4, 2023 · 0 comments
Open

Add more variations, or use standard codes #23

SaadBazaz opened this issue Nov 4, 2023 · 0 comments

Comments

@SaadBazaz
Copy link

Hey, great repo.
Would love to have variations of the name. For example, I autoget these icons based on a Language field I have in my frontend. I lowercase it as such to get the icon:

  const languageCode = language
    .replaceAll(" ", "-")
    .toLowerCase()
  console.log("languageCode", languageCode)

  const src = `https://github.com/get-icon/geticon/raw/master/icons/${languageCode}.svg`

In there, I have "C++", which translates to "https://github.com/get-icon/geticon/raw/master/icons/c++.svg", which doesn't exist. Instead, it's called c-plusplus.svg.

It'd be nice to have standardization or duplication. i.e. keep both c-plusplus, c++.svg, and cplusplus.svg at the same level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant