Smootify.getLocalization()
country, currency, language and where the store sells, once known
On this page
country, currency, language and where the store sells, once known
getLocalization(): Promise<Localization>Types
Localization
/**
* The visitor's market: country, currency and language, and where the store sells. Since beta.17 it has no `market`
* (id and handle), on the localization or on its country: Shopify deprecated them, and with child markets they no
* longer name every market the visitor is in. Tell markets apart by country.
*/
export interface Localization {
country: Country & { unitSystem: string };
language: Language;
availableCountries: (Country & { availableLanguages: Language[] })[];
availableLanguages: Language[];
}