Development discussions around Shopify APIs
I am currently making a custom storefront and want to include translations.
I'd like to access the translatebleResources query but this is not available at the moment in the graphQL explorer using the gatsby-source-shopify package.
While theShopify GraphiQL App on the store itself does support this..
Translatable resources are not directly available through the Storefront API, only the Admin API. The Shopify GraphiQL app on the store will have access to this which is why you can see that returned.
Take a look at this tutorial to retrieve Storefront API translations: https://shopify.dev/tutorials/manage-app-translations-with-admin-api#retrieving-storefront-api-trans...
CalD | Developer Support @ 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
Hello! Thank your for your answer, but I'm really puzzled with this. Why can't we reach translations through storefront? Where did the need for an extra step in enabling multilingual website came from? Getting translations should be one of the very basic features... I'm really surprised to see that a platform with as great reputation as Shopify can't make this feature a lot easier to use.
Where can I find an example that shows how to apply this code in practice, on my Gatsby website?
As a business owner, have you ever wondered when your customer's first impression of yo...By Skye Jun 6, 2023
We're excited to announce improvements to the threaded messaging experience in our communi...By TyW May 31, 2023
Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...By Jacqui May 30, 2023