This guide explains how to use the Translation enrichment to translate values in your data table from one language to another.
Use the Translation enrichment to translate your data from one language into another. The Translation enrichment provides a user-friendly interface that helps you to select the column that contains the value to translate and select the languages involved. The Translationenrichment uses the translatecustom script instruction in the background.
Before you complete the procedure in this guide, perform all of the following actions:
Make sure that the data extract fetched from the datastream contains a field with text in the source language that you want to translate to the target language.
Configuring the Translation enrichment
This guide explains how to configure the Translation enrichment. Before completing this step, start creating an enrichment by following the instructions in Using standard enrichments. To configure this enrichment, follow these steps:
In the Source column drop-down menu, select the column that contains the text in the source language.
In the From language drop-down menu, select the language of the text in the source column. If you do not know the source language or the text is in more than one language, select Automatic.
In the To language drop-down menu, select the language that you want to translate the text into.
In the Translation service provider drop-down menu, select a translation service provider.
In the Action drop-down menu, choose what to do with the translated text:
Choose Replace existing values to replace the text in the source column with the translated text.
Choose Add additional column to add a new column to your data extract containing the translated text. The new column is added as the rightmost column in your data extract and named
[original column name]_[target language].
To preview your enrichment at this step, click the Table preview tab. Here, you can see how your current enrichment instructions will transform the data you have previously collected using this datastream.
If the preview shows that the enrichment is not working in the way you want it to, click the Instructions tab to adjust the enrichment settings.
Repeat these steps until the preview shows that the enrichment will have the effect you want.
For more information about the preview, see Previewing enrichments.