Holiday offer

30% off every plan for a year with code HOLIDAY30. Until January 6.

See the prices
2.0 Beta

Smootify 2.0 is in public beta. Your 1.x store keeps working. Move when you want.

What changed

Smootify.getLocalization()

country, currency, language and where the store sells, once known

v2.0 beta
Open .md
On this page
  1. Types
  2. Localization

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[];
}

    ↑ ↓ to moveEnter to openEsc to close