Re: Always getting base version of image through GraphQL

Solved

Always getting base version of image through GraphQL

bogdanreason
Shopify Partner
4 0 1

We are using the Shopify Translate & Adapt plugin to localise our app.

 

We have a page with metafields which are being queried through GraphQL in our app. These are translated in the Translate & Adapt plugin.

 

It is working as expected for text fields:

Screenshot 2023-04-27 at 14.25.42.jpg

 

However, we also have images that need to be changed based on the locale:

Screenshot 2023-04-27 at 15.08.11.jpg

 

Regardless of the locale passed, we are always getting the base language version of images:

Screenshot 2023-04-27 at 14.25.59.png

 

Can you please clarify if this is a limitation of the plugin?

 

Thank you

Accepted Solution (1)
lucaskim_staff
Shopify Staff
4 1 2

This is an accepted solution.

Hi @bogdanreason , we're happy to report that this problem has been fixed, you should now see the correct image url for localized images in the Storefront API.

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Replies 5 (5)

richbrown_staff
Shopify Staff
652 96 166

Hi @bogdanreason sorry for slow response here, are you still experiencing this issue?

To learn more visit the Shopify Help Center or the Community Blog.

bogdanreason
Shopify Partner
4 0 1

Hello - yes it's the same

richbrown_staff
Shopify Staff
652 96 166

@bogdanreason We've been able to reproduce this and are looking into it

To learn more visit the Shopify Help Center or the Community Blog.

lucaskim_staff
Shopify Staff
4 1 2

This is an accepted solution.

Hi @bogdanreason , we're happy to report that this problem has been fixed, you should now see the correct image url for localized images in the Storefront API.

To learn more visit the Shopify Help Center or the Community Blog.

bogdanreason
Shopify Partner
4 0 1

Thank you - I can confirm the issue has been solved.