Can't query translatebleResources query on graphql through gatsby-source-shopify package

axelmylle
New Member
1 0 0

Hi everyone.

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..

 

axelmylle_0-1619719963324.pngaxelmylle_1-1619719980035.png

 

 

0 Likes
CalD
Shopify Staff
Shopify Staff
118 11 16

Hi @axelmylle,

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

0 Likes