Storefront API and multiple languages

Highlighted
New Member
10 0 0

Hi,

 

I'm building a storefront in react.js using the Shopify Storefront API. Everything has been setup to work with the base store, including pulling collections, products and cart interactions. However, the site is multi lingual (two languages), and I need the shopify products, collections and checkout to reflect that. 

 

Is this possible? And if so, how can I do this? 

0 Likes
Community Manager
Community Manager
606 43 76

Hey @malthemilthers,

 

I believe I answered your question here: https://community.shopify.com/c/Shopify-APIs-SDKs/New-Translation-API-is-available-from-which-API-ve...

 

TLDR: the translation API is only available in our admin API currently.

0 Likes
New Member
10 0 0

Right thank you,

 

So i just need to clarify that it's not possible in anyway to serve translated storefront API data. Even if you combine the two APIs? 

 

Sorry for running this in two threads. probably more appropriate to continue here. 

0 Likes
Community Manager
Community Manager
606 43 76

No problem! Yea, let's stick to this thread for now.

 

There's no way to serve translated storefront API data currently. You could potentially come up with a solution using different products for each different translation, but it would be a workaround for sure.

 

Translation support for our storefront API is something we'll definitely be exploring in the near future, so stay tuned.

0 Likes
New Member
10 0 0

Alright, 

 

It definitely feels like a necessary step towards headless e-commerce to be able to translate product data, so that the products in cart reflects the chosen language. None of the Shopify translation apps deals with issue as far as I can tell. They only work with regular Shopify themes. 

 

One more question: how is it possible to translate product information via the admin API, when it's not possible via the admin itself? It doesn't seem possible to fill out title and description etc in different languages for the same product. Is that also something that is likely to become natively available in Shopify in the near future? 

 

Thank you! 

0 Likes
Community Manager
Community Manager
606 43 76

Hi again @malthemilthers,

 

The plan is for translations to be served by the API initially. Native translation fields are a possibility in the future, but the opportunity will be given to our app ecosystem initially regardless of the direction we go after.

0 Likes