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:
- Lionbridge
- Smartling
- Trados
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:
- Cloud-hosted and reachable over public HTTPS. Experience Workspace can't integrate with self-hosted, on-premises, or private-network servers, including VPN-only or IP-allowlisted instances.
- A documented REST API that covers what the Translate app does: creating a project, uploading source files, starting it, reading status, and downloading results. Translators and reviewers can work in the vendor's own tools in between, but status must reflect that work, and downloads must return the latest reviewed content.
- Non-interactive authentication, such as OAuth 2.0 client credentials or an API key or token. Credentials are held server-side and exchanged for a token on the user's behalf, so the browser never sees them. Per-user logins, SSO prompts and MFA challenges can't be used. Adobe sets up the server-side login for the vendor's auth flow.
- Source and target language support using standard language or locale codes (for example
fr-FR), with a defined source language per request. - Rate limits that tolerate bursts. Connectors retry on
429and5xxwith exponential backoff and download up to five files at a time, so the API must accept that traffic.
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:
isConnected()to determine whether the user is authenticated to the serviceconnect()to authenticate or connect to the servicesendAllLanguages()to send content for translationgetStatusAll()to retrieve the status of submitted translation taskssaveItems()to retrieve translated content and save it to Experience Workspace
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.