Description:

Translates content and attributes from one language to another

Tags:

yandex, translate, translation, language

Properties:

In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. The table also indicates any default values, and whether a property supports the NiFi Expression Language.

NameDefault ValueAllowable ValuesDescription
Yandex API KeyThe API Key that is registered with Yandex
Input LanguageesThe language of incoming data
Supports Expression Language: true
Target LanguageenThe language to translate the text into
Supports Expression Language: true
Translate Contentfalse
  • true
  • false
Specifies whether or not the content should be translated. If false, only the text specified by user-defined properties will be translated.
Character SetUTF-8Specifies the character set of the data to be translated
Supports Expression Language: true

Dynamic Properties:

Dynamic Properties allow the user to specify both the name and value of a property.

NameValueDescription
The name of an attribute to set that will contain the translated text of the valueThe value to translateUser-defined properties are used to translate arbitrary text based on attributes.
Supports Expression Language: true

Relationships:

NameDescription
translation.failureThis relationship is used if the translation cannot be performed for some reason other than communications failure
comms.failureThis relationship is used when the translation fails due to a problem such as a network failure, and for which the translation should be attempted again
successThis relationship is used when the translation is successful

Reads Attributes:

None specified.

Writes Attributes:

NameDescription
yandex.translate.failure.reasonIf the text cannot be translated, this attribute will be set indicating the reason for the failure
languageWhen the translation succeeds, if the content was translated, this attribute will be set indicating the new language of the content