Hacker News new | past | comments | ask | show | jobs | submit login

react-lang-selecta: https://github.com/MarcAbonce/react-lang-selecta

A language selector component that shows random (but still accurate) flags for each given language.

So if you give it, for example: English, Portuguese and Chinese it might render the flags of South Sudan, Macau, and Macau.

I always noticed how websites sometimes pick arbitrary flags in their language dropdowns even when they're not even trying to represent those specific regions. Wikipedia even has an article describing this topic: https://en.wikipedia.org/wiki/Flag_icons_for_languages

So I thought about making a React component lib just to make fun of that idea. It's not that creative nor good but I had fun writing it.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: