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

Intl has Kosovo in DENYLIST #54711

Open
Renkas opened this issue Apr 24, 2024 · 2 comments
Open

Intl has Kosovo in DENYLIST #54711

Renkas opened this issue Apr 24, 2024 · 2 comments

Comments

@Renkas
Copy link

Renkas commented Apr 24, 2024

Symfony version(s) affected

Description

Intl component has Kosovo in DENYLIST. Why is that? We rely on this component to populate country selection but we need Kosovo to be also included

How to reproduce

Just call: Countries::getNames() and see that Kosovo is not in the result

Possible Solution

remove Kosovo from DENYLIST: https://github.com/symfony/intl/blob/510a40cbf59244af027905cdb838eb7b57447752/Data/Generator/RegionDataGenerator.php#L59

Additional Context

No response

@Hanmac
Copy link
Contributor

Hanmac commented Apr 24, 2024

Answer there: #40020 (comment)

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"

@Renkas
Copy link
Author

Renkas commented Apr 24, 2024

Yeah now I stumbled on that also after creating this issue. But I don't think that is a correct way to handle this issue.

I managed to write a reply in the other issue already: #40020 (comment)

The point is that in real world people need solution for that.

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

No branches or pull requests

4 participants