Solved

More than 2 auto-translation languages in Shopify Translate and Adapt

amolloy21
Visitor
1 0 1

Hello! We are thinking about moving our translations to Shopify Translate and Adapt and see that it translates 2 languages for free. Are we able to translate more than 2 languages for a fee? 

Accepted Solutions (2)

Erin
Shopify Staff
863 124 137

This is an accepted solution.

Hi there @amolloy21. I'm happy to help you out with this! Do you mind if I ask why you'd like more languages translated? Is your online store targeting many different markets?

 

At this time automatic translations within the Shopify Translate and Adapt app are limited to two languages and there isn't a way to pay for more automatic translations. That being said, you would still be able to manually translate content following these steps if you hit your limit. I'm happy to share this and any more feedback you have about this with our team who work on improvements to the app. We're always looking for ways to improve features. Especially this one since the app was released recently.

 

Please let me know if you have any questions!

Erin | 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 the Shopify Help Center or the Shopify Blog

View solution in original post

richbrown_staff
Shopify Staff
570 82 134

This is an accepted solution.

Hi @joeybab3 @Mark1988 , additional auto-translated languages is being considered, but there is not confirmation or a timeline as yet. In the mean time there is a workaround to get a similar result of Google Translate translations of your store, including HTML content. It uses the Languages CSV (Settings > Languages > Export) and employs the Google Translate API inside Google Sheets, creating an API.

 

Video:

 

Steps:

  • Add the language you want to translate into in Settings > Languages
  • Export the Languages CSV for just that language. Open in Google Sheets
  • Filter the sheet to only show blank fields in column H (where no default translations exit)
  • Create a new translation function by going to Extensions, Apps Script, then paste this function:
     
function translation(text, froml, tol) {
  // Check if source and target languages are the same
  if (froml === tol) {
    return ''; // Return blank if source and target languages are the same
  }
  
  // Check if source text is only a number
  if (!isNaN(text)){
    return ''; // Return blank if source text is only a number
  }

  // Convert text to string if it's not already
  var inputText = String(text);
  
  // Extract the Liquid code by matching text inside double curly brackets
  var liquidCode = inputText.match(/{{\s*[\w\.]+\s*}}/g);
  
  // Replace the Liquid code with a placeholder for translation
  var cleanedText = inputText.replace(/{{\s*[\w\.]+\s*}}/g, '[[liquid_code_placeholder]]');
  
  // Translate the cleanedText
  var translatedText = LanguageApp.translate(cleanedText, froml, tol, {contentType: 'html'});
  
  // Restore the Liquid code in the translated text
  if (liquidCode) {
    liquidCode.forEach(function(code, index) {
      translatedText = translatedText.replace('[[liquid_code_placeholder]]', code);
    });
  }
  
  return translatedText;
}
  • Then go and deploy your API:

 

1s8lfx2a3krc4qizljau.png

  • Press "Run", and return to Sheets. Then you can use the function in the sheet, for example:
=translation(G2,"en",D2)
  • And copy that down across the column. This will take some time to process all cells.
  • Once complete, export the CSV. Go back to Settings > Languages > Import.
  • This should give you a translated storefront. Publish the language.

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

View solution in original post

Replies 16 (16)

Erin
Shopify Staff
863 124 137

This is an accepted solution.

Hi there @amolloy21. I'm happy to help you out with this! Do you mind if I ask why you'd like more languages translated? Is your online store targeting many different markets?

 

At this time automatic translations within the Shopify Translate and Adapt app are limited to two languages and there isn't a way to pay for more automatic translations. That being said, you would still be able to manually translate content following these steps if you hit your limit. I'm happy to share this and any more feedback you have about this with our team who work on improvements to the app. We're always looking for ways to improve features. Especially this one since the app was released recently.

 

Please let me know if you have any questions!

Erin | 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 the Shopify Help Center or the Shopify Blog

joeybab3
Shopify Partner
106 16 27

I would definitely like to add a +1 to this for our store, right now we have a really janky auto translate with google thing going but it would be much better to be able to tailer the content on our own using our native speakers of the languages. At the current moment yes we ca manually go and find every section to translate but it would be much easier to just fix the ones that are not right rather than start from scratch.

Erin
Shopify Staff
863 124 137

Hi, @joeybab3. I'm happy to look into this with you! I completely understand why you want to have more tailored translations. Can you tell me more about the translation adjustments you're hoping to make?

 

You are currently able to manually fix translations without needing to start all of your translations over from scratch. You can read more about how to do this using the Translate & Adapt app here. You can do this by locating the translation you want to fix directly in the Translate & Adapt app. You can also do this by going to the content page that you want to translate and clicking More actions > Localize.

 

For example, if you want to fix the translation for the name of a product you can locate that product directly within the app and type in the translation you would like instead. 

 

04-21-88918-79868

 

You could also go directly to the product page in your Shopify admin. If you click More actions > Localize on that page you'll be brought to the same page in the screenshot above where you can make translation adjustments.

 

04-27-55429-67277

 

 

Please let me know if you have any questions!

Erin | 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 the Shopify Help Center or the Shopify Blog

joeybab3
Shopify Partner
106 16 27

The adjustments are I would like to auto-translate more than 2 languages, that is all 🙂 

MVWebmaster
Visitor
2 0 3

+1 here. Having ability to translate into more than 2 languages (either free or for a fee) would be nice to have.

Mark1988
Excursionist
30 0 4

Hi,  does anyone know when the maximum of 2 automatic translations will be increased? Have 7 more languages which need to be translated. If the App gets updated/extended soon, we can wait. Otherwise we need to make an alternative plan. Thanks for the update

joeybab3
Shopify Partner
106 16 27

Shopify has not said whether they are even looking into doing that, everything here is what they've said.

Mark1988
Excursionist
30 0 4

Ok, thanks for your reply. Have studied this a bit, and actually it's not to hard to arrange the translations for the other languages. Several ways to arrange it in a swift and afforable way  🙂  Ofcourse need to double check, but then at least the base is there

richbrown_staff
Shopify Staff
570 82 134

This is an accepted solution.

Hi @joeybab3 @Mark1988 , additional auto-translated languages is being considered, but there is not confirmation or a timeline as yet. In the mean time there is a workaround to get a similar result of Google Translate translations of your store, including HTML content. It uses the Languages CSV (Settings > Languages > Export) and employs the Google Translate API inside Google Sheets, creating an API.

 

Video:

 

Steps:

  • Add the language you want to translate into in Settings > Languages
  • Export the Languages CSV for just that language. Open in Google Sheets
  • Filter the sheet to only show blank fields in column H (where no default translations exit)
  • Create a new translation function by going to Extensions, Apps Script, then paste this function:
     
function translation(text, froml, tol) {
  // Check if source and target languages are the same
  if (froml === tol) {
    return ''; // Return blank if source and target languages are the same
  }
  
  // Check if source text is only a number
  if (!isNaN(text)){
    return ''; // Return blank if source text is only a number
  }

  // Convert text to string if it's not already
  var inputText = String(text);
  
  // Extract the Liquid code by matching text inside double curly brackets
  var liquidCode = inputText.match(/{{\s*[\w\.]+\s*}}/g);
  
  // Replace the Liquid code with a placeholder for translation
  var cleanedText = inputText.replace(/{{\s*[\w\.]+\s*}}/g, '[[liquid_code_placeholder]]');
  
  // Translate the cleanedText
  var translatedText = LanguageApp.translate(cleanedText, froml, tol, {contentType: 'html'});
  
  // Restore the Liquid code in the translated text
  if (liquidCode) {
    liquidCode.forEach(function(code, index) {
      translatedText = translatedText.replace('[[liquid_code_placeholder]]', code);
    });
  }
  
  return translatedText;
}
  • Then go and deploy your API:

 

1s8lfx2a3krc4qizljau.png

  • Press "Run", and return to Sheets. Then you can use the function in the sheet, for example:
=translation(G2,"en",D2)
  • And copy that down across the column. This will take some time to process all cells.
  • Once complete, export the CSV. Go back to Settings > Languages > Import.
  • This should give you a translated storefront. Publish the language.

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

Billyjoe_Jarvis
Tourist
9 0 1

This is very useful. Do you have a similar solution that uses chatGPT, their translations are much more authentic given the correct prompt. 

 

richbrown_staff
Shopify Staff
570 82 134

Hey @Billyjoe_Jarvis , we haven't but you'd totally be able to do that if you work out how to call chatGPT translations in Google Sheets. The key thing that the above function does is translate HTML but preserve tags.

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

rv3
Tourist
20 0 2

hi! any other options? this gives me an error code: 

rv3_0-1698889528701.png

Would like to translate our store to additional 5 languages, the maximum 2 is a bit frustrating to shops from the EU 😞

richbrown_staff
Shopify Staff
570 82 134

Looks like you exceeded your daily allowance yesterday on Google's API, did you try again today?

 

Your other alternative is a third party app. Translate & Adapt is built by Shopify (our team) and uses the native translations API. Which means that the translations don't 'belong' to Translate & Adapt, they're saved to Shopify's databases. Which means that other apps that also use the native API can be used alongside Translate & Adapt. This is a collection of those apps: https://apps.shopify.com/collections/apps-for-store-languages

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

Tiparts
Tourist
3 0 1

Hi Admin, after a year, this app still limit to 2 languages.
We need more please.

Juantrov
Shopify Partner
3 0 0

What has worked very well for me has been the following:

  1. Export one of the languages with which you have used the auto-translation.
  2. Delete the exported language (so that one of the two uses of auto-translation is free again).
  3. Create a new lang and use the (available again) auto translate.
  4. Import again the lang you exported and deleted.

I hope this is useful 🙂

Tiparts
Tourist
3 0 1
Thanks for sharing,
may I know how you handle the language domain behind your URL ? Example
www.sample.com/de
www.sample.com/es

because my ultimate goal is let Google index my page in different
languages, so end user can search in native language and reach my page.

thanks.