Translation API automatically translate text content to different Languages ?

Highlighted
New Member
1 0 0

I am new to write a program. Recently, I am working on how to create a multiple language front store. After reading Shopify API document, I get confused about description and explanation, and sample code of the API documents. Perhaps I am not familiar to sample code written by GraphQL syntax.  I hope someone who has such experience can response me directly. Can Shopify Translation API automatically translate text content to different languages if the translation content in other languages is not provided? Does the Shopify Translation API  play a role of google translation and translate text content automatically?

0 Likes
Highlighted
Shopify Staff (Retired)
Shopify Staff (Retired)
624 103 124

Hi @GearyWang ,

 

I believe you may be misinterpreting the translation functionality offered by the Shopify API. Shopify does not automatically translate the content for you. Instead, you need to first enable the locale you want your store to be in (i.e. the second language), retrieve the product you want to translate, write the translation of the product yourself, and then publish the locale. 

 

So for example if you wanted your shop to be in the Spanish locale and you were selling the product of a "White T-Shirt", you would need to provide to Shopify that the spanish translation of that product is "Camiseta buena" and then publish it. Here is some documentation about it: https://help.shopify.com/en/api/tutorials/translating-content-for-online-store#step-4-write-a-transl...

 

Hassain | Developer Support Specialist @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes
Highlighted
New Member
4 0 0

Hi @hassain 

 

I have a related question. Is there any connection between Shopify translation apps (Langify, Weglot) and API translation. Is it possible to access a content translated via those apps using Shopify API?

 

Is there any other way of writing a translation that is later accessible via API or is it only possible by writing a GraphQL mutation?

For a not technical shop owner, it might be problematic to provide translation this way.

 

Thank you for your answer!

0 Likes
Highlighted
New Member
4 0 0

@hassain Please help

0 Likes
Highlighted
Shopify Staff (Retired)
Shopify Staff (Retired)
624 103 124

Hi @tipserstore ,

 

I can't really speak to how apps like Langify work, you would need to reach out to the companies behind those app to find out more information.

 

In terms of providing multi-language support to your Shopify store without using the GraphQL API, this document should help you: https://help.shopify.com/en/manual/sell-online/multilingual-online-store

 

Hassain | Developer Support Specialist @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes
Highlighted
Shopify Partner
100 0 13

Hi,

 

Johannes from langify here :)

 

We released langify v2 a few months ago and it fully supports the new shopify translation API. That is, any translations stored on shopify's end against the new API will show up in your langify dashboard. New translations can be added and existing translations can be modified or deleted.

1 Like