vre2h / use-react-countries

19 stars 8 forks source link

Fix: Added countryCallingCode to 44 countries #4

Closed ashish12345bisht closed 7 months ago

ashish12345bisht commented 7 months ago

These countries did not have countryCallingCode

Vatican City, Russia, Trinidad and Tobago, North Macedonia, Turks and Caicos Islands, Iran, French Southern and Antarctic Lands, Bouvet Island, British Virgin Islands, Czechia, Heard Island and McDonald Islands, Palestine, São Tomé and Príncipe, Timor-Leste, South Georgia, Bolivia, Curaçao, DR Congo, Bosnia and Herzegovina, Eswatini, Saint Vincent and the Grenadines, Ivory Coast, Republic of the Congo, Macau, Vietnam, Venezuela, Antigua and Barbuda, Tanzania, Saint Pierre and Miquelon, Brunei, Syria, Saint Kitts and Nevis, Réunion, Pitcairn Islands, Saint Helena, Ascension and Tristan da Cunha, Svalbard and Jan Mayen, South Korea, Wallis and Futuna, North Korea, Isle of Man, United States Virgin Islands, Guinea-Bissau, Caribbean Netherlands, Micronesia, Cape Verde, Laos

This is what I updated in /src/constants/country.js :

  1. Vatican City +379
  2. Russia +7
  3. Trinidad and Tobago +1 868
  4. North Macedonia +389
  5. Turks and Caicos Islands +1 649
  6. Iran +98
  7. French Southern and Antarctic Lands +33
  8. Bouvet Island ""
  9. British Virgin Islands +1 284
  10. Czechia +420
  11. Heard Island and McDonald Islands ""
  12. Palestine +970
  13. São Tomé and Príncipe +239
  14. Timor-Leste +670
  15. South Georgia +500
  16. Bolivia +591
  17. Curaçao +599
  18. DR Congo +243
  19. Bosnia and Herzegovina +387
  20. Eswatini +268
  21. Saint Vincent and the Grenadines +1 784
  22. Ivory Coast +225
  23. Republic of the Congo +242
  24. Macau +853
  25. Vietnam +84
  26. Venezuela +58
  27. Antigua and Barbuda +1 268
  28. Tanzania +255
  29. Saint Pierre and Miquelon +508
  30. Brunei +673
  31. Syria +963
  32. Saint Kitts and Nevis +1 869
  33. Réunion +262
  34. Pitcairn Islands +64
  35. Saint Helena, Ascension and Tristan da Cunha +290
  36. Svalbard and Jan Mayen +47
  37. South Korea +82
  38. Wallis and Futuna +681
  39. North Korea +850
  40. Isle of Man +44 1624
  41. United States Virgin Islands +1 340
  42. Guinea-Bissau +245
  43. Caribbean Netherlands +599
  44. Micronesia +691
  45. Cape Verde +238
  46. Laos +856

Sources: https://countrycode.org

Testing: https://auth.uber.com

I did not find reliable resources to get countryCallingCode for these two : Bouvet Island, Heard Island and McDonald Islands