The Country component displays a country selector that allows visitors to choose their country, which updates locale settings for pricing, shipping, and content.
// Get current country codeconst countryCode = window.FairShareSDK.getCountryCode();
console.log('Country:', countryCode);// e.g., "US"// Update locale settings including countryawait window.FairShareSDK.updateLocaleSettings({country_code:"CA"});