younifyd
Menu

localization

The store's available countries and languages and the currently-selected one — drives `@inContext` pricing and translation.

Use it in a workflow

  1. Add a step and choose the Shopify Storefront connector.
  2. Pick the localization action (under Localization).
  3. Fill in the fields below, then reference the result from later steps as {{localization.response.data}}.

Query

This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.

graphql
query Localization {
  localization {
    availableCountries {
      availableLanguages {
        endonymName
        isoCode
        name
      }
      currency {
        isoCode
        name
        symbol
      }
      defaultLanguage {
        endonymName
        isoCode
        name
      }
      isoCode
      market {
        handle
        id
      }
      name
      unitSystem
    }
    availableLanguages {
      endonymName
      isoCode
      name
    }
    country {
      availableLanguages {
        endonymName
        isoCode
        name
      }
      currency {
        isoCode
        name
        symbol
      }
      defaultLanguage {
        endonymName
        isoCode
        name
      }
      isoCode
      market {
        handle
        id
      }
      name
      unitSystem
    }
    language {
      endonymName
      isoCode
      name
    }
    market {
      handle
      id
    }
  }
}

Response

Read the result with {{localization.response.data.data.localization}}. If the API returns errors, the step fails and they are at {{localization.response.data.errors}}.

availableCountriesarray<object>
availableLanguagesobject
currencyobject
defaultLanguageobject
isoCodeobject
marketobject
nameobject
unitSystemobject
availableLanguagesarray<object>
endonymNameobject
isoCodeobject
nameobject
countryobject
availableLanguagesarray<object>
currencyobject3 fields
defaultLanguageobject3 fields
isoCodestring

One ofAFAXALDZADAOAIAGARAMAWACAUATAZBSBHBDBBBYBEBZBJBMBTBOBABWBVBRIOBNBGBFBIKHCACVBQKY

marketobject2 fields
namestring
unitSystemstring

One ofIMPERIAL_SYSTEMMETRIC_SYSTEM

languageobject
endonymNamestring
isoCodestring

One ofAFAKAMARASAZBEBGBMBNBOBRBSCACECKBCSCYDADEDZEEELENEOESETEUFAFFFIFILFOFRFYGAGDGLGUGV

namestring
marketobject
handlestring
idstring

Need more? See the Shopify Storefront guide for connection setup and behaviour shared by every action.

Was this page helpful?