API v2019-10 & multilanguage

Highlighted
New Member
5 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
Excursionist
11 0 6

Hi Detzler,

 

Taras from Langshop Support Team is here.

 

As I know, multilingual API has been brought live literally today, so you should be able to activate and publish your locales.

 

Also, I encourage you to try Langshop app, that is based on this new API, plus includes many other features that help to make your site multilingual:

  • included and customizable language switchers
  • machine translation powered by multiple translation engines
  • currency conversion
  • checkout translation
  • translation of static (theme code) and dynamic (added by external apps) content.

If you have any questions, please feel free to write to our Support Team at support@langshop.app

 

 

0 Likes