Connecting to a translation service

Experience Workspace includes a Translate app that works out-of-the-box. The default connector uses Google Translate and requires no additional setup.

Other translation services are also available. You can configure a supported connector, submit a pull request with your own connector, or request a connector from Adobe.

Use a supported connector

Experience Workspace provides connectors to multiple services in addition to the built-in Google connector:

These connectors require site-level configuration and service credentials. Please see the documents Translation config options and Translation config samples.

Connector requests

Adobe engineering builds and maintains translation connectors, so most customers request one rather than writing their own. Please contact your Adobe representative to request a new connector, and include the vendor's name and a link to its API documentation.

Adobe can build a connector only when the vendor's service meets the requirements below.

Translation service requirements

The service must meet all of the following:

Connector calls run from the browser. If the vendor's API doesn't allow cross-origin (CORS) requests, Adobe routes calls through a proxy.

The API must support these operations:

Operation Needed for
Create a project, job or submission with a title, source language and one or more target languages Sending content
Upload HTML source files, each with a name or path, and get back an identifier for each file Sending content
Start or submit the project for translation Sending content
Read status per target language, and per file or task Status checks
List translated files and download each as HTML Saving results
Cancel a project, language or file (optional) Cancel action
List projects, workflows or templates (optional) Options step dropdowns

The service must return a stable identifier for each uploaded file and for each translated output, so the connector can map a translation back to its source page. Status must include a clear terminal state for finished, failed and canceled work.

Content is sent as HTML. The service must preserve the markup and treat any element with translate="no" as untranslatable.

Implement your own connector

Adobe normally implements new connectors. If you want to contribute one yourself, the service must still meet the requirements above, and the connector must implement:

A connector can also implement cancelTranslation() to let authors cancel an in-progress translation job. If the function is omitted, the cancel action is not shown.

A connector can also export a serviceOptions array to have the Options step render specific config fields as live-populated dropdowns (for example a project or workflow list fetched from the service) instead of requiring authors to type the values in by hand.

This is the minimum API that Experience Workspace requires for a translation service. See the existing connectors for working implementations. The sample connector is a starting point for a custom integration.