Shop Locale
Requires access scope or access scope.
A locale that's been enabled on a shop.
Anchor to FieldsFields
- locale (String!)
- marketWebPresences ([MarketWebPresence!]!)
- name (String!)
- primary (Boolean!)
- published (Boolean!)
- 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.
Anchor to QueriesQueries
- shopLocales ([ShopLocale!]!)
- •query
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
publishedargument 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 whichobjects use each locale.- Anchor to publishedpublished•BooleanDefault:false
Return only published locales.
Arguments
Anchor to MutationsMutations
- shopLocaleEnable (ShopLocaleEnablePayload)
- shopLocaleUpdate (ShopLocaleUpdatePayload)
- •mutation
Adds a locale for a shop. The newly added locale is in the unpublished state.
- Anchor to localelocale•String!required
ISO code of the locale to enable.
- Anchor to marketWebPresenceIdsmarket•[ID!]
Web Presence Ids The list of markets web presences to add the locale to.
Arguments
- •mutation
Updates a locale for a shop.
- Anchor to localelocale•String!required
ISO code of the locale to update.
- Anchor to shopLocaleshop•Shop
Locale Locale Input! required Specifies the input fields for a shop locale.
Arguments