The LocalizationProvider component automatically queries the Storefront API's localization field for the isoCode and name of the country and keeps this information in a context.

Any descendents of this provider can use the useCountry hook. The isoCode of the country can be used in the Storefront API's @inContext directive as the country value.