Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
motyar
· 5y ago · 0 comments
How you detect country code?
Comments
[–]
droyson
5y ago
One api to get the ip details. This provides with the alpha code for the country. A second api to fetch calling code for the country. Code's here:
https://github.com/droyson/wa-connect/blob/main/js/countryCo...