Menu
localization
The store's available countries and languages and the currently-selected one — drives `@inContext` pricing and translation.
Use it in a workflow
- Add a step and choose the Shopify Storefront connector.
- Pick the localization action (under Localization).
- 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.
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}}.
Need more? See the Shopify Storefront guide for connection setup and behaviour shared by every action.
Was this page helpful?