GitHub

ShopifyLocalization

Type

import { ShopifyLocalization } from '@daffodil/driver/shopify'

Information about the shop's configured localized experiences, including available countries and languages. The country and language fields reflect the active localization context, which you can change using the @inContext directive on queries.

Use availableCountries to list all countries with enabled localized experiences, and availableLanguages to get languages available for the currently active country. Each Country includes its own currency, unit system, and available languages.

interface ShopifyLocalization {
  __typename: "Localization"
  availableCountries: ShopifyCountry[]
  availableLanguages: ShopifyLanguage[]
  country: ShopifyCountry
  language: ShopifyLanguage
  market: ShopifyMarket
}

Properties

__typename
"Localization"
availableCountries
ShopifyCountry[]

The list of countries with enabled localized experiences.

availableLanguages
ShopifyLanguage[]

The list of languages available for the active country.

country
ShopifyCountry

The country of the active localized experience. Use the @inContext directive to change this value.

language
ShopifyLanguage

The language of the active localized experience. Use the @inContext directive to change this value.

market
ShopifyMarket

The market including the country of the active localized experience. Use the @inContext directive to change this value.