shopLocaleEnable mutation
Enables a locale for a shop.
Required access
write_locales
access scope.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
mutation shopLocaleEnable($locale: String!) { shopLocaleEnable(locale: $locale) {<font style="color:#1F61A0;">shopLocale</font> <font style="color:#555555;">{</font>
<font style="color:#1F61A0;">locale</font>
<font style="color:#1F61A0;">name</font>
<font style="color:#1F61A0;">primary</font>
<font style="color:#1F61A0;">published</font>
<font style="color:#555555;">}</font>
<font style="color:#1F61A0;">userErrors</font> <font style="color:#555555;">{</font>
<font style="color:#1F61A0;">field</font>
<font style="color:#1F61A0;">message</font>
<font style="color:#555555;">}</font>
}
}
{
“locale”: “placeholder”
}
Arguments
Argument | Description |
---|---|
locale ( [String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01) ) REQUIRED |
Specifies the locale to enable. |
Return fields
- shopLocale (
[ShopLocale](https://shopify.dev/docs/admin-api/graphql/reference/translations/shoplocale)
)
The locale that was enabled. - userErrors (
[[UserError!]!](https://shopify.dev/docs/admin-api/graphql/reference/usererror)
)
List of errors that occurred executing the mutation.
下一篇:shopLocaleUpdate