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 New in 2.0.

getLocalization(): Promise<Localization>

Types

Localization

/** The visitor's market: country, currency and language, and where the store sells. */
export interface Localization {
  country: Country & { unitSystem: string; market: { id: string; handle: string } | null };
  language: Language;
  market: { id: string; handle: string };
  availableCountries: (Country & { availableLanguages: Language[] })[];
  availableLanguages: Language[];
}

    ↑ ↓ to moveEnter to openEsc to close