Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Issue with Machine Translation in AEM Cloud Workflow

Avatar

Level 2

In AEM as a Cloud Service, I have configured a translation integration using a Microsoft subscription key. Manual translation of page content working as expected.


To automate the translation process, I created a launcher that triggers a custom workflow whenever a user updates page content.

Within this workflow, a process step initiates the translation workflow.


However, the translation method is consistently set to Human Translation, whereas I intend to use Machine Translation.

I would appreciate any guidance on how to ensure that the translation workflow uses Machine Translation instead.


Thank you in advance for your support.

 

In my custom workflow process step, I am using the below code

public void execute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap processArguments) throws WorkflowException {
String payloadPath = workItem.getWorkflowData().getPayload().toString();
WorkflowModel createStructureWorkflowModel = workflowSession.getModel("/etc/workflow/models/wcm-translation/create_language_copy/jcr:content/model");
Map<String, Object> workflowMetaData = new HashMap<>();
workflowMetaData.put("projectType", "add_new");
workflowMetaData.put("srcPathList", payloadPath);
workflowMetaData.put("translationProviderCredential", StringUtils.EMPTY);
workflowMetaData.put("cloudConfigPath", "/conf/global/settings/cloudconfigs/translation/msft-translation/ms-arabic-translator");
workflowMetaData.put("shallowList", "false");
workflowMetaData.put("languageList", "ar");
workflowMetaData.put("translationWorkflowModel", "/etc/workflow/models/wcm-translation/prepare_translation_project/jcr:content/model");
workflowMetaData.put("projectFolderLanguageRefCount", "1");
workflowMetaData.put("createNonEmptyAncestors", "true");
workflowMetaData.put("deep", "true");
workflowMetaData.put("cq:conf", "/conf/global");
WorkflowData workflowData = workflowSession.newWorkflowData("JCR_PATH", payloadPath);
workflowSession.startWorkflow(createStructureWorkflowModel, workflowData, workflowMetaData);


}

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

3 Replies

Avatar

Community Advisor

Hi @Kamaraj_AEM 

Can you check what is the translation Integration configuration for /conf/global ?

You may need to create a translation Integration configuration with machine translation.

 

https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/sites/administer... 

 

Arun Patidar

AEM LinksLinkedIn

Avatar

Level 2

Hi @arunpatidar 
This is my config details

Kamaraj_AEM_0-1760448001708.png



Inside the configuration , i have selected the below properties for sites. 

 

Kamaraj_AEM_1-1760448035631.png

 

Also I added the this config in the language root page --> page properites--> advance tab--> cloud configuration .

Do I need to add any other configuration?

 

Avatar

Community Advisor

Hi @Kamaraj_AEM 
This config looks fine.

Could you please check if you can enable the debug log for translation java apis?

Arun Patidar

AEM LinksLinkedIn