Localization
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
directive on queries.
Use to list all countries with enabled localized experiences, and
to get languages available for the currently active country. Each
Country
includes its own currency, unit system, and available languages.
Anchor to FieldsFields
- availableCountries ([Country!]!)
- availableLanguages ([Language!]!)
- country (Country!)
- language (Language!)
- marketsMetafield (Metafield)
- marketsMetafields ([Metafield]!)
- market (Market!): deprecated
- Anchor to availableCountriesavailable•[Country!]!
Countries non-null The list of countries with enabled localized experiences.
Show fields
- Anchor to availableLanguagesavailable•[Language!]!
Languages non-null The list of languages available for the active country.
Show fields
- Anchor to countrycountry•Country!non-null
The country of the active localized experience. Use the
directive to change this value.Show fields
- Anchor to languagelanguage•Language!non-null
The language of the active localized experience. Use the
directive to change this value.Show fields
- Anchor to marketsMetafieldmarkets•Metafield
Metafield Token access required The metafield resolved across the markets for the active localized experience. In cases where multiple markets set the metafield, the most specific market's metafield value applies. Use the
directive to change this value.Show fields
- •String!required
The identifier for the metafield.
- Anchor to namespacenamespace•String
The container the metafield belongs to. If omitted, the app-reserved namespace will be used.
Arguments
- •String!
- Anchor to marketsMetafieldsmarkets•[Metafield]!
Metafields non-null Token access required A list of metafields resolved across the markets for the active localized experience. In cases where multiple markets set a metafield, the most specific market's metafield value applies. Use the
directive to change these values.Show fields
- Anchor to identifiersidentifiers•[Has
Metafields Identifier!]! required The list of metafields to retrieve by namespace and key.
The input must not contain more than
250values.Show input fields
Arguments
- Anchor to marketmarket•Market!non-nullDeprecated
Show fields
Anchor to QueriesQueries
- localization (Localization!)
- •query
Returns the shop's localization settings. Use this query to build country and language selectors for your storefront.
The
countryandlanguagefields reflect the active localized experience. To change the context, use thedirective with your desired country or language code.Show fields