// Snippets

Detecting currency

let response = {
    "l10n": {
        "currencyName": "Dollar",
    }
};

console.log("The currency used in the visitor's location is:", response.l10n.currencyName);

package main

import "fmt"

var response = map[string]map[string]string{
	"l10n": {
		"currencyName": "Dollar",
	},
}

func main() {
	fmt.Println("The currency used in the visitor's location is:", response["l10n"]["currencyName"])
}

response = requests.get(url, headers=headers)
data = response.json()

print("The currency used in the visitor's location is:", data['l10n']['currencyName'])

Source: fastah/docs-readme/docs/Snippets/detecting-currency.md at c6747ea082a5.