I wrote a quick tutorial on detecting visitor country + currency in vanilla JS (no backend, no API key)