Storefront API - Retrieve products filtered on the Title using @inContext for a specific language

nikelle
Shopify Partner
2 0 0

Hi

 

Since the version 2022-04, we should be able to filter products title for a specific language, but it does not work.

 

See the screenshot below, I tried to return products with the title in french "Mode Multicolore Enfants",

But the Storefront API returns 0 product.

nikelle_0-1653332135260.png

 

If I run the same query using english terms "Fashion Multicolor Kids", the Storefront API returns products, and you can see on the screenshot below, that the product's title in french is "Mode Multicolore Enfants".

nikelle_1-1653332207577.png

 

So why the Storefront API never returns me the products with this title when I set @inContext(language: FR) ?

 

Thank you

Bruno

 

Replies 3 (3)

Rabie
Tourist
4 0 1

Hi @nikelle 

I'm facing the same issue right now, did you find a solution for that?

 

nikelle
Shopify Partner
2 0 0

It is not supported by their API.

 

Apparently, using @inContext, is only used to return the description and title in that language, but not to make any search.

 

The only workaround I found, is to translate the words in english before sending them in storefront api, but it's not perfect. It really sucks.

Rabie
Tourist
4 0 1