Anchor to shopLocalesshop
queryshop Locales
Requires access scope or access scope.
Returns the locales enabled on a shop. Each locale represents a language for translations and determines how content displays to customers in different markets.
Use the optional published argument to filter for only the locales that are visible to customers. The response includes the ISO locale code, whether it's the shop's primary locale, and which objects use each locale.
Anchor to Arguments
Arguments
- published (Boolean)
- Anchor to publishedpublished•BooleanDefault:false
Return only published locales.
Was this section helpful?
Anchor to Possible returnsPossible returns
- ShopLocale ([ShopLocale!]!)
- Anchor to ShopLocaleShop•[Shop
Locale Locale!]! A locale that's been enabled on a shop.
- Anchor to localelocale•String!non-null
The locale ISO code.
- Anchor to marketWebPresencesmarket•[Market
Web Presences Web Presence!]! non-null The market web presences that use the locale.
- Anchor to namename•String!non-null
The human-readable locale name.
- Anchor to primaryprimary•Boolean!non-null
Whether the locale is the default locale for the shop.
- Anchor to publishedpublished•Boolean!non-null
Whether the locale is visible to buyers.
Was this section helpful?