API v2019-10 & multilanguage

New Member
3 0 0

Hi, I see that API version 2019-10 ist stable, published and comes with the multilanguage feature:

https://developers.shopify.com/changelog

 

Bu still, It's not possible to use the langauge-prefixed urls:

/en/producthandle

/es/producthandle

 

https://help.shopify.com/en/api/guides/multi-language

 

I activated a new shoplocale:

mutation {
  shopLocaleEnable(locale: "es") {
    shopLocale {
      locale
      name
      primary
      published
    }
    userErrors {
      field
      message
    }
  }
}

Published locale:

mutation {
  shopLocaleUpdate(locale: "es", shopLocale: {published: true}) {
    shopLocale {
      locale
      name
      primary
      published
    }
    userErrors {
      field
      message
    }
  }
}

Translated the title field of a product:

mutation {
  translationsRegister(resourceId: "gid://shopify/Product/....gid....", translations: {
    locale: "de", 
    key: "title", 
    translatableContentDigest: "....digest....", 
    value: "blabla"
  }) {
    translations {
      key
      locale
      outdated
      value
    }
    userErrors {
      code
      field
      message
    }
  }
  
}

New store urls https://example.net/en and https://example.net/es are not accessable. 

 

So when will this feature be available?

0 Likes