AEM Google Translator | Community
Skip to main content
Level 8
March 2, 2016
Solved

AEM Google Translator

  • March 2, 2016
  • 12 replies
  • 6137 views

Hi all,

I have a requirement to translate English content to Hindi using Google Translator.

The site structure for English is Apln/in/en and guess that Hindi version, of it will be something like Apln/in/hi.

As and when content is created/edited in English in Apln/in/en, it should be translated to Hindi and cascaded to Apln/in/hi.

Could you please suggest me step by step procedure for achieving this using a simple site?

Appreciate your help.

Thanks,

Rama.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

Here is the answer from our AEM Team: 

 If anyone wants to integrate the Google API, they will have to write a custom connector (this is why you need to code). On the other hand, Microsoft Translator ships with AEM OOTB.

So going back to your requirement:

"I have a requirement to translate English content to Hindi using Google Translator."

Why do you not use the OOTB MS Translator? 

12 replies

sandeepm744005
Level 5
March 2, 2016
        You probably need to use MSM to create Hindi site structure and need to set the translator work flow if any changes happens in English site it would replicate in Hindi site as well.
nsvsrkAuthor
Level 8
March 2, 2016

Appreciate your response Sandeep.

1. Is Google translator downloadable or we could use it in cloud ?

2. Is at least the basic version (for test purpose) free of cost?

3. While creating Hindi Site using MSM, shall we opt for Live Copy or Blue Print?

4. How to configure translator work flow?

Again any brief tutorial to this effect will help.

Thanks,

Rama.

sandeepm744005
Level 5
March 2, 2016
nsvsrkAuthor
Level 8
March 2, 2016

Hi,

I am following the URL, https://multilingualsiteadobecq.wordpress.com/2013/10/09/how-to-create-multilingual-site-in-cq/ as per your suggestion.

Step2: Create a node as per below under apps/<my project>i18n

Pl refer to the attached screen shot in this URL, that asks us to create three nodes (i18n, ru and hello) in a hierarchy.

From the screen shot, I could make out that i18n is sling:folder node type and ru is nt:folder node type

But there is no way for me to make out what node type hello is.

Please suggest.

I highly appreciate your help.

Thanks,

Rama.

nsvsrkAuthor
Level 8
March 2, 2016

In the subsequent part of this tutorial, I could make out that it is of type sling:MessageEntry .

Thanks,

Rama.

nsvsrkAuthor
Level 8
March 2, 2016

The common requirement is to have the master language as English (en) and translate to other languages (ru in this case) after changes are made in en hierarchy.
This article does not seem to address this need.
Any ideas?

Thanks,
Rama.

smacdonald2008
Level 10
March 3, 2016

We have no community articles on this use case - i will talk with the translation team to see if any are in the works. However - one area you can explore using using Google Translation API:

https://cloud.google.com/translate/docs

There is a Java API: 

https://developers.google.com/api-client-library/java/

Now you will have to write a custom workflow step that uses this API to translate content. You need to use this API within AEM. 

Lokesh_Shivalingaiah
Level 10
March 3, 2016

Hi Rama,

I think Google translations is a paid service. Look at the pricing model here [1]. If you have it, then you can use the APIs and create a translations workflow

[1] https://cloud.google.com/translate/v2/pricing

nsvsrkAuthor
Level 8
March 3, 2016

Hi all,

I followed the URL.https://multilingualsiteadobecq.wordpress.com/2013/10/09/how-to-create-multilingual-site-in-cq/ .

The website for which I ran this tutorial, showed up with a Language selector dropdown and the site content changed as per my language selection.

This tutorial proved that at least the trial version is free of cost. I did not sign up for free trial also.

The URL you offered, https://cloud.google.com/translate/v2/pricing, also has a link for free trial.

I believe integrating Microsoft Translator with AEM is just configuration and no coding.

please help me understand why we need coding for integrating Google Translator.

Someone must have done this integration.

Appreciate your support.

Thanks,

Rama.

smacdonald2008
Level 10
March 3, 2016

I am continuing asking the AEM Eng teams