[GH-ISSUE #1084] Feature request: Flags for language #513

Closed
opened 2026-03-03 14:38:55 +03:00 by kerem · 5 comments
Owner

Originally created by @sowinski on GitHub (Feb 14, 2023).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/1084

Hi,

I use this package to add a flag icon for languages. (This is not always possible, I know).

I want to show the flag for the language Esperanto : https://de.wikipedia.org/wiki/Datei:Flag_of_Esperanto.svg

Does this belong to this package? Is there another package which I could use instead?

Originally created by @sowinski on GitHub (Feb 14, 2023). Original GitHub issue: https://github.com/lipis/flag-icons/issues/1084 Hi, I use this package to add a flag icon for languages. (This is not always possible, I know). I want to show the flag for the language Esperanto : [https://de.wikipedia.org/wiki/Datei:Flag_of_Esperanto.svg](https://de.wikipedia.org/wiki/Datei:Flag_of_Esperanto.svg) Does this belong to this package? Is there another package which I could use instead?
kerem closed this issue 2026-03-03 14:38:56 +03:00
Author
Owner

@NotTsunami commented on GitHub (Feb 15, 2023):

The intention of this library is to offer a curated collection of country flags, accessible via CSS (precompiled or not). That flag is not included currently, and it is very likely it will not be added in the future as well as that is not in the best interests of the library. I am unsure of flag libraries that offer search via language codes/offer languages, but I don't doubt that they exist.

<!-- gh-comment-id:1432054020 --> @NotTsunami commented on GitHub (Feb 15, 2023): The intention of this library is to offer a curated collection of country flags, accessible via CSS (precompiled or not). That flag is not included currently, and it is very likely it will not be added in the future as well as that is not in the best interests of the library. I am unsure of flag libraries that offer search via language codes/offer languages, but I don't doubt that they exist.
Author
Owner

@bakcxoj commented on GitHub (Aug 22, 2023):

@NotTsunami May I ask why it's not in the library's best interest? There are other flags (such as EU) that are not for countries. Plus, languages are often represented by their country of origin or the country with the most speakers, meaning the only language you can't represent with this library is Esperanto.

<!-- gh-comment-id:1687424502 --> @bakcxoj commented on GitHub (Aug 22, 2023): @NotTsunami May I ask why it's not in the library's best interest? There are other flags (such as EU) that are not for countries. Plus, languages are often represented by their country of origin or the country with the most speakers, meaning the only language you can't represent with this library is Esperanto.
Author
Owner

@lipis commented on GitHub (Aug 22, 2023):

@BrandonDyer64 Flags represent countries.. but of course we are using them for languages, but this project is about flags!

For example which flag should we use for English, Spanish, French? There are many countries (flags) that could be represented for those languages.. so it's not easy to support this.

The project has all the tools to adjust to your needs though... country.json has all the details so it's pretty straight forward if you want to use it for languages.

<!-- gh-comment-id:1688489923 --> @lipis commented on GitHub (Aug 22, 2023): @BrandonDyer64 Flags represent countries.. but of course we are using them for languages, but this project is about flags! For example which flag should we use for English, Spanish, French? There are many countries (flags) that could be represented for those languages.. so it's not easy to support this. The project has all the tools to adjust to your needs though... `country.json` has all the details so it's pretty straight forward if you want to use it for languages.
Author
Owner

@bakcxoj commented on GitHub (Aug 22, 2023):

@lipis what about the flag for the EU? It seems to represent a body of people rather than an actual country. Would it be possible to frame the existence of an Esperanto flag as representing the people of Esperantujo (rather than the language)?

For localization purposes, there are many ways of mapping languages to flags, all of which require having at least one flag where the target language is predominantly spoken. This library can therefor represent all major languages (2M+ speakers) except for Esperanto.

<!-- gh-comment-id:1689013746 --> @bakcxoj commented on GitHub (Aug 22, 2023): @lipis what about the flag for the EU? It seems to represent a body of people rather than an actual country. Would it be possible to frame the existence of an Esperanto flag as representing the people of Esperantujo (rather than the language)? For localization purposes, there are many ways of mapping languages to flags, all of which require having at least one flag where the target language is predominantly spoken. This library can therefor represent all major languages (2M+ speakers) except for Esperanto.
Author
Owner

@lipis commented on GitHub (Aug 23, 2023):

@BrandonDyer64 You are right about the EU flag.. and I have to admit that I started adding a few of those.. because they were needed in some cases to represent a region (and due a popular demand), but not a language in any case..

Either way to have the languages all you need is another JSON file similar to country.json.. but just the fact that we can't assign the English language to an American or British or Australian or or.. there is an issue and it's impossible to maintain multiple versions to satisfy everyone!

<!-- gh-comment-id:1689075903 --> @lipis commented on GitHub (Aug 23, 2023): @BrandonDyer64 You are right about the EU flag.. and I have to admit that I started adding a few of those.. because they were needed in some cases to represent a region (and due a popular demand), but not a language in any case.. Either way to have the languages all you need is another JSON file similar to country.json.. but just the fact that we can't assign the English language to an American or British or Australian or or.. there is an issue and it's impossible to maintain multiple versions to satisfy everyone!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/flag-icons#513
No description provided.