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

Feature Request: Introduce getCountryNameByCountryCode api #97

Open
RgnDunes opened this issue Mar 11, 2024 · 2 comments
Open

Feature Request: Introduce getCountryNameByCountryCode api #97

RgnDunes opened this issue Mar 11, 2024 · 2 comments

Comments

@RgnDunes
Copy link
Collaborator

RgnDunes commented Mar 11, 2024

Feature Summary

When passed in a Country Code like 'IN' it should return me the Country Name i.e., 'India'.

Use Case

For getting the name of the countries for use in phone number input.
image

Proposed Solution

  • Creating a map between country codes and country names.
  • Creating utility over Intl.DisplayNames .

Describe alternatives you've considered

Use of new Intl.DisplayNames directly.

Additional Context

Request raised by @anuraghazra here: https://razorpay.slack.com/archives/C01H13RTF8V/p1710150309383779

@RgnDunes RgnDunes changed the title Introduce getCountryNameByCountryCode api Feature Request: Introduce getCountryNameByCountryCode api Mar 11, 2024
@reachaadrika
Copy link

@RgnDunes If this is not implemented yet , can i pick this up ?

@Vikas350
Copy link

Vikas350 commented Oct 9, 2024

Hi @RgnDunes I want to work on this, can you please assign it to me.

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

No branches or pull requests

3 participants