Translates content and attributes from one language to another
yandex, translate, translation, language
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 Name | API Name | Default Value | Allowable Values | Description |
---|---|---|---|---|
Yandex API Key | Yandex API Key | The API Key that is registered with Yandex | ||
Input Language | Input Language | The 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 Language | Target Language | en | The language to translate the text into Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) | |
Translate Content | Translate Content | false |
| Specifies whether or not the content should be translated. If false, only the text specified by user-defined properties will be translated. |
Character Set | Character Set | UTF-8 | Specifies the character set of the data to be translated Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) |
Supports Sensitive Dynamic Properties: No
Dynamic Properties allow the user to specify both the name and value of a property.
Name | Value | Description |
---|---|---|
The name of an attribute to set that will contain the translated text of the value | The value to translate | User-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) |
Name | Description |
---|---|
translation.failure | This relationship is used if the translation cannot be performed for some reason other than communications failure |
success | This relationship is used when the translation is successful |
comms.failure | This 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 |
Name | Description |
---|---|
yandex.translate.failure.reason | If the text cannot be translated, this attribute will be set indicating the reason for the failure |
language | When the translation succeeds, if the content was translated, this attribute will be set indicating the new language of the content |