razorpay / i18nify

One stop solution for all your internationalisation needs.
https://geosmart.razorpay.com/
15 stars 3 forks source link

Feature Request: Introduce getCountryNameByCountryCode api #97

Open RgnDunes opened 5 months ago

RgnDunes commented 5 months ago

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

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

reachaadrika commented 1 month ago

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