Focusing on managing products, variants, and collections through the API.
Localising a product seems to be restricted to:
- product title
- product description
- product meta title
- product meta description
However, the Shopify app (Translate & Adapt) seems to be able to translate the product handle too.
How can we do the same using graphql api?
thanks
Solved! Go to the solution
This is an accepted solution.
Hi Redochkaya,
The ability to translate handles of products and other resources was just released this week (see this changelog post) and should be possible with the translationsRegister mutation.
Hope this helps!
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
This is an accepted solution.
Hi Redochkaya,
The ability to translate handles of products and other resources was just released this week (see this changelog post) and should be possible with the translationsRegister mutation.
Hope this helps!
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hi Liam, the timing... what a coincidence 😀
The translatableResource is still not showing the product handle (api version 2023-04)
query {
translatableResource(resourceId: "gid://shopify/Product/123456789") {
resourceId
translatableContent {
key
value
digest
locale
}
}
}
Only the 4 fields: title, desc, meta title and meta desc. Which means we can not have the digest, which means we can not register the translation. Locked
Tested today and it's working.