Connecting to a Translation Service
Document Authoring comes with a Translate app working out-of-the-box. This app is powered by Google translate and can be used as-is as to localize pages. However there are a variety of translation services available to content editors and you may want to connect your own to Document Authoring. Because most of Document Authoring is open-source, all the tools that you need to create your own connection are available to you.
Implementing Your Own Connector
To connect your translation service, you must implement the following functions.
isConnected()
to determine if the user is authenticated to the serviceconnect()
to connect to the servicegetItems()
to retrieve translation items from the servicesendAllLanguages()
to send content for translationgetStatusAll()
to retrieve the status of sent translation tasks
This is the minimal API that Document Authoring requires to connect to any translation service. For a working example, check out the existing Smartling connector. Your connector will similarly need to implement all exported functions.
You are Not on Your Own
As an open-source project, the Document Authoring team is happy to expand DA's capabilities. If you need to connect to your own translation service, create a pull request against the Nexter project and we will be happy to review.