younifyd
Menu

shopLocaleDisable

Deletes a locale for a shop. This also deletes all translations of this locale.

Use it in a workflow

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

Query

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

graphql
mutation ShopLocaleDisable($locale: String!) {
  shopLocaleDisable(locale: $locale) {
    locale
    userErrors {
      field
      message
    }
  }
}

Variables

Pass these as a JSON object in the step's Variables field.

localestringrequired

ISO code of the locale to delete.

json
{
  "locale": "string"
}

Response

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

localestring
userErrorsarray<object>
fieldobject
messageobject

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

shopLocaleDisable — Shopify — Documentation