I am working on an angular app where on a page, I need to show different cust care number for different country,
For Example,
I am not positive on using i18n module, of angular, as website is in english only.
I thought of using HTML5 GeoLocation api to get the logged-in user country but than if depends on user to share the location info OR not.
can someone suggest me the best way of achieving this?
You can use one of the free services like : GEOJS or IPSTACK
Example :
HTTP GET : https://get.geojs.io/v1/ip/country/41.249.34.194.json
return : {"name":"Morocco","country":"MA","ip":"41.249.34.194","country_3":"MAR"}
NOTICE: IPSTACK have a limited quota 10000 request