[GH-ISSUE #26] Republic of Kosovo alpha 2 code is incorrect or missing #13

Closed
opened 2026-03-03 14:33:56 +03:00 by kerem · 10 comments
Owner

Originally created by @rolandjitsu on GitHub (Jun 25, 2014).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/26

The Republic of Kosovo has as Alpha 2 Code xk. I cannot seem to find that icon or it may be that is just under a different country code, but according to Geo Names it should be xk.

Could you please verify that it's there or add it if it is not @lipis ? Great pack by the way 👍

The only suggestions I would have is if the icons could be a SVG sprite instead of individual files, that way if you have to use all the flags on the page you have less requests (1 over 250 +), but that is just me :)

Originally created by @rolandjitsu on GitHub (Jun 25, 2014). Original GitHub issue: https://github.com/lipis/flag-icons/issues/26 The **Republic of Kosovo** has as Alpha 2 Code `xk`. I cannot seem to find that icon or it may be that is just under a different country code, but according to [Geo Names](http://geonames.wordpress.com/2010/03/08/xk-country-code-for-kosovo/) it should be `xk`. Could you please verify that it's there or add it if it is not @lipis ? Great pack by the way :+1: The only suggestions I would have is if the icons could be a SVG sprite instead of individual files, that way if you have to use all the flags on the page you have less requests (1 over 250 +), but that is just me :)
kerem closed this issue 2026-03-03 14:33:56 +03:00
Author
Owner

@renfordt commented on GitHub (Jun 25, 2014):

http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Decoding_table

here you can find all ISO Codes. Some of them, like xk, are just user assigned so they are not officially assigned. I think that's the reason why there is no xk flag.

<!-- gh-comment-id:47107725 --> @renfordt commented on GitHub (Jun 25, 2014): http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Decoding_table here you can find all ISO Codes. Some of them, like xk, are just user assigned so they are not officially assigned. I think that's the reason why there is no xk flag.
Author
Owner

@rolandjitsu commented on GitHub (Jun 25, 2014):

@N8boy, I see. I get the countries from here and the data is not under my control. I'd prefer if I wouldn't do any data manipulation and if the flags would match the same alpha 2 code that mostly everyone uses.

Otherwise, under what code is this country flag if it exists?

<!-- gh-comment-id:47113990 --> @rolandjitsu commented on GitHub (Jun 25, 2014): @N8boy, I see. I get the countries from [here](http://restcountries.eu) and the data is not under my control. I'd prefer if I wouldn't do any data manipulation and if the flags would match the same alpha 2 code that mostly everyone uses. Otherwise, under what code is this country flag if it exists?
Author
Owner

@lipis commented on GitHub (Jun 30, 2014):

@N8boy is right.. I'm sorry but I won't add any user assigned flags..

<!-- gh-comment-id:47583013 --> @lipis commented on GitHub (Jun 30, 2014): @N8boy is right.. I'm sorry but I won't add any user assigned flags..
Author
Owner

@rolandjitsu commented on GitHub (Jul 1, 2014):

@N8boy, sure, so what your are saying is that you'll just ignore the existence of one country :) Because you do not have that flag as part of the pack, no matter if the code is user assigned or not.

Anyway, I have just decided to use PNG sprites instead since I do not want to make 250+ requests for each flag, even if it means that I will not have the flexibility of scaling up/down.

<!-- gh-comment-id:47620731 --> @rolandjitsu commented on GitHub (Jul 1, 2014): @N8boy, sure, so what your are saying is that you'll just ignore the existence of one country :) Because you do not have that flag as part of the pack, no matter if the code is user assigned or not. Anyway, I have just decided to use PNG sprites instead since I do not want to make 250+ requests for each flag, even if it means that I will not have the flexibility of scaling up/down.
Author
Owner

@lipis commented on GitHub (Jul 1, 2014):

@rolandjitsu In this particular project I'm including only the official flags.. it's very simple :)

If someone wants to include the user assigned it's super easy to fork and add them to match their individual needs..

<!-- gh-comment-id:47708813 --> @lipis commented on GitHub (Jul 1, 2014): @rolandjitsu In this particular project I'm including only the official flags.. it's very simple :) If someone wants to include the user assigned it's super easy to fork and add them to match their individual needs..
Author
Owner

@andcam commented on GitHub (Jan 8, 2016):

voicing my request also for XK also. it's widely used, including the European Commission.

<!-- gh-comment-id:170030747 --> @andcam commented on GitHub (Jan 8, 2016): voicing my request also for XK also. it's widely used, including the European Commission.
Author
Owner

@gentisaliu commented on GitHub (May 31, 2017):

Need the Kosovo (XK) flag as well, as the previous commenter noted, it is widely used, even in international institutions.

<!-- gh-comment-id:305142394 --> @gentisaliu commented on GitHub (May 31, 2017): Need the Kosovo (XK) flag as well, as the previous commenter noted, it is widely used, even in international institutions.
Author
Owner

@RudeySH commented on GitHub (Nov 14, 2017):

There's even an emoji for the XK flag.

<!-- gh-comment-id:344251905 --> @RudeySH commented on GitHub (Nov 14, 2017): There's even an emoji for the XK flag.
Author
Owner

@Enalmada commented on GitHub (Jun 25, 2018):

Kosovo getting an official code may remain a political issue forever but there is no reason for it to remain a technical issue. I understand the initial hesitation, but at this point the XK code is universally accepted as a provisional code by enough organizations and databases that it belongs in this project.

<!-- gh-comment-id:400051578 --> @Enalmada commented on GitHub (Jun 25, 2018): Kosovo getting an official code may remain a political issue forever but there is no reason for it to remain a technical issue. I understand the initial hesitation, but at this point the XK code is universally accepted as a provisional code by enough organizations and databases that it belongs in this project.
Author
Owner

@catamphetamine commented on GitHub (Feb 22, 2019):

I can see the flag has been added.
https://github.com/lipis/flag-icon-css/pull/501
So that people reading this issue would know.

<!-- gh-comment-id:466349075 --> @catamphetamine commented on GitHub (Feb 22, 2019): I can see the flag has been added. https://github.com/lipis/flag-icon-css/pull/501 So that people reading this issue would know.
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#13
No description provided.