Open damithc opened 2 months ago
I would like to contribute with the first alternative, it would be useful to have the common variations of the countries
@damithc I think we can implement a search bar for Country/Region that allows the user to input a value and choose a match from a drop-down menu. If the input doesn't match with any item, then we can simply store the user input? If you think it's a good idea, I can work on it.
example:
@damithc I think we can implement a search bar for Country/Region that allows the user to input a value and choose a match from a drop-down menu. If the input doesn't match with any item, then we can simply store the user input? If you think it's a good idea, I can work on it.
@Shihuihuang1103 Thanks for your interest in this issue. I'm curious as to which list of countries do you propose to use?
@damithc I found these two sources for list of countries and regions:
Please let me know if you think either of the above lists would be a good reference for this feature, or if you have another list in mind. Thank you!
@damithc @Shihuihuang1103 Hi, I was doing some research related to this issue, and I think that the ISO 3166 standard would be a good reference point for implementing this feature, as it is a universally accepted standard for country identification, and are easily integrated into the existing codebase with libraries such as iso-3166-1-alpha-2 and iso-3166-1.
@damithc @Shihuihuang1103 Hi, I was doing some research related to this issue, and I think that the ISO 3166 standard would be a good reference point for implementing this feature, as it is a universally accepted standard for country identification, and are easily integrated into the existing codebase with libraries such as iso-3166-1-alpha-2 and iso-3166-1.
@itstrueitstrueitsrealitsreal Sorry, I missed this earlier. Yes, this seems like a good way to go, provided users will still have the option to type their own as well.
Current:
United States
,USA
,US
, etc.USA
for the above example.Suggested:
USA
:U.S.A
,United States
,America
, ...UK
: ...UAE
: ...Germany
:Deutschland
Netherlands
: ...Belgium
:België
Brazil
:Brasil
Spain
:España
Mexico
:México
Italy
:Italia