YandexTranslate

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.

Display NameAPI NameDefault ValueAllowable ValuesDescription
Yandex API KeyYandex API KeyThe API Key that is registered with Yandex
Input LanguageInput LanguageThe language of incoming data. If no language is set, Yandex will attempt to detect the incoming language automatically.
Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)
Target LanguageTarget LanguageenThe language to translate the text into
Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)
Translate ContentTranslate 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 SetCharacter SetUTF-8Specifies the character set of the data to be translated
Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)

Dynamic Properties:

Supports Sensitive Dynamic Properties: No

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 (will be evaluated using flow file attributes and variable registry)

Relationships:

NameDescription
translation.failureThis relationship is used if the translation cannot be performed for some reason other than communications failure
successThis relationship is used when the translation is successful
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

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

State management:

This component does not store state.

Restricted:

This component is not restricted.

Input requirement:

This component requires an incoming relationship.

System Resource Considerations:

None specified.