-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Intl] Missing Kosovo (XK) country name #40020
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
Comments
I think the reason is that the Republic of Kosovo is not recognized as an official country by the ISO 3166 standard (https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes), which is the one we use to get the list of countries (same as most of other software projects do). That's why it's been included in the "deny list". See
Please keep in mind that in the Symfony project we only focus on tech, so we don't decide what is a country and what isn't. We let those decisions to internationally recognized standards such as ISO 3166. Thanks! |
Ah yes you're right, I didn't note that Kosovo is not an ISO 3166 country. Thank you! |
I think is this a very bad idea. This is not official, but in many cases we need to add some countries like "Kosovo" in projects. In my case i develop ecommerce solution and is very important to add Kosovo like a country in native. I can't see how is possible to develop that because intl rules is not immuttable. Please think about that, because this is very important for all large project when use localization. |
Same here. Working on a project for the European Commission where we have a list of countries and country codes we need to support and Since I don’t see how I could amend or override the list of countries myself, I effectively need to create a wrapper around it to deal with special cases. Now I also need to figure out translations for the country name… But yeah, probably makes sense for Symfony to just import data from some upstream source and not start maintaining or curating translations from mixed sources. |
I would argue that it would be important that library like Symfony would deal with this instead of letting every project/developer stumble upon this problem at some time themselves and then implement their own hack to get things working in real world. |
Symfony version(s) affected: 4.4.17 and 5.5.2 for sure but I think also other versions
Description
When trying to get Kosovo (XK) country name the following fatal error occurs:
How to reproduce
Execute the following script after a
composer require symony/intl
:The text was updated successfully, but these errors were encountered: