Documentation

Translation services with Copy Actions

You can now use a feature that will enable integration of automatic content translation into our Actions. You will be able to execute a Copy Item action, while automatically translating text field values, and, in case of document libraries, supported file types as well (Word, Excel, PowerPoint and PDF).

We support Google Cloud Translation and Azure Cognitive Services.

Note: That these are paid services and you need to establish a payment profile with the provider, although small monthly volumes might fall under the free tier.

For Azure Cognitive Services.

First you need to create a Translator in your Azure, then configure a Copy list item action that will copy an item while translating its field values.

  1. Log into Azure.
  2. In the search box type Translators.
  3. Click on Create.
  4. Enter the required information. For pricing tier breakdown, go here.
  5. Review and create your translator
  6. Go to the new resource and click on Keys and Endpoint on the left
  7. Copy one of the keys and the location, you will need both when you configure your action

Now click here to configure the Copy action.

 

For Google Cloud Translation Services

This provider will only be able to translate any kind of text field data (single and multiple lines of text) not documents. To support translation of documents you will need to use Google Cloud Translation Services.

You first need to configure the service under your Google Cloud account.

  1. Log into your Google Cloud Console
  2. Start with a creation of a new project. I called mine Translations, but you can use any name you like. You can also leverage an existing project if you have one.

  1. Take a note of the Project ID, we will require it later.
  2. Next click on Enabled APIs & Services of the project, then click on ENABLE APIS AND SERVICES

 

 

  1. Search for "translation"

 

 

  1. And choose "Cloud Translation API"

 

 

  1. Click on Enable for the API

 

 

  1. If you haven't previously enabled billing on your account, you will be prompted to do it now. Translation is a pay-as-you-go service. See pricing here under Advanced section.

 

 

  1. Next click on Credentials in the left menu to generate credentials that the app will use to gain access to the service

 

 

  1. We need to create a new service account, so click on Create Credentials, then Service Account

 

 

  1. Click on Create and Continue, then enter Translation in the search box for the role and select Cloud Translation API User. That will ensure the service account is allowed to perform calls to the translation service.

 

 

  1. Once you create the service account and see it in the list, you can generate keys, which will then be given to our app. Click on Manage Keys under Actions

 

 

  1. Then click on Create new key under Add key

 

 

  1. Create a new key in JSON format. It will download a text file to your computer, make sure to keep it in a safe place.

 

 

  1. We are done on the Google side.

 

 

 

Creating the Copy Action using Translation Services

 

Now go into your list or document library, click on Design -> Actions -> and start creating your new Copy list items action

  1. Under Action settings, toggle Enable automatic translation on.
  2. Under Project ID, enter the project ID from google, as we created it earlier.
  3. Under JSON credentials, past the contents of the JSON key file we downloaded.
  4. Select the translation target language and save the action.

 

Google Translation Services setup

 

Azure Translation Services setup

 

 

  1. I created my action as a manual action that will translate a document into French and place the translated copy under French folder

 

 

  1. Once I execute my action, I can go French folder and see my new document there

 

 

As you can see, all text columns are translated as well, as shown here with Title column.

  1. And if I open the document itself, I can see that it's in French

 

 

Note that I used part of our blog article as source, read it here

Last modified: 5/30/2022 8:33 PM
Loading...

Add your comment

Comments are not designed to replace support calls. If you have a specific issue with one of our products, please send an email to support@infowisesolutions.com to open a support ticket.