necessarylion / country-list-with-dial-code-and-flag Goto Github PK
View Code? Open in Web Editor NEWCountry Flag with Dial Number Code
Country Flag with Dial Number Code
I have a similar list here. I was also missing a few which I got from you: https://github.com/vanniktech/multiplatform-locale/pull/71/files
Countries like the Dominican Republic and Jamaica have several area codes
but the library has chosen one of several and forced it... can we either get additional countries added for the variety of area codes OR (preferably) remove the area code either entirely or remove the area code when there are multiple for a given country?
Full list of country codes can be found here with area codes being broken out into parentheses when applicable:
https://en.wikipedia.org/wiki/List_of_country_calling_codes
I tried using this inside a RN project with require
and import
methods but it failed with some error about __esModule
being invalid.
My guess is this is designed more with browsers in mind.
Hello, I discovered 2 errors in your data:
Wrong dial code:
❌ +595 is duplicated by Paraguay and Guayana in your data file
✅ Prefix por Paraguay is +595 and for Guyana is +592
Missing country:
Add country name with local language
{ name: 'Myanmar', 'local_name' : 'မြန်မာ', dial_code: '+95', code: 'MM', flag: '🇲🇲' },
{ name: 'Thailand', 'local_name' : 'ประเทศไทย', dial_code: '+66', code: 'TH', flag: '🇹🇭' },
How to get icons along with the raw data?
There should be icons I did not find it.
Is there any example on how to display flags?
If there is no way to display flag with this package, we just need index.js file not entire package.
I want to know how can we render flag from the flag code ??
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.