In this tutorial our goal is to to use multiple Translation Providers taken from an existing Studio project and fire the pre-translation batch task to retrieve the translation for each one using only one studio project.
Before start writing the code let's take a look in Studio what happens when you have multiple providers and what to apply pre-translate batch task:
If all the providers are "Enabled" Studio will take by default first provider from the list and apply the pre-translation.
Following source code will do the following things:
In order to Parse an xliff you need to create a ContentProcessor and use Visitor Pattern to get the source and target as plain text.