# Translate

Category: AWS
|
Runtime: 1.0+
|
Available: Free

# Overview

Translate node by Kumologica integrates with Amazon Translate (opens new window) service for translating a given text content to a specified target language.

# Setup

# Prerequisites

For Translate node to work properly, you need to have a valid subscription of AWS cloud account. Ensure to have an Access credentials (opens new window) generated for the node to connect with the Translate service associated with the account.

# Installation

To install the node from designer:

  1. Go to Add more nodes option on the palette section.
  2. Check for the Amazon Translate node and click install.
  3. Once installed, the designer is required to be restarted.

To install the node from CLI:

  1. Go to your project workspace where you can see your package.json file.
  2. Run the below give npm command.
    npm i @kumologica/kumologica-contrib-awstranslate

# Technical Details

Properties

  • Source language Code (Optional)
    Language code associated with the text string to be translated. If not sure about the language, you may select auto which identify the language code based on the text content.
  • Target language Code (Optional)
    Language code to which the content needs to be translated.
  • Text content (Required)
    Text content to be translated.
  • Access Key (Optional)
    AWS access Key for connecting the translate service.
  • Access Secret (Optional)
    AWS access secret for connecting the translate service.

Supported Operations

NA

Throws

Translate node throws the following exception.

  • AWSTranslateErrorResponse
  • AWSClientError

Returns

Payload will be overwritten by the response from the node. Payload can be accessed on the subsequent node using msg.payload and translated content can be access using msg.payload.TranslatedText.