LibreTranslate icon

LibreTranslate

Interact with LibreTranslate API for translation services

Actions6

Overview

This node interacts with the LibreTranslate API to provide translation services. Specifically, the 'Translate File' operation allows users to translate the content of a binary file from a source language to a target language. This is useful in scenarios where documents, images, or other file types containing text need to be translated automatically within an automation workflow, such as translating user-uploaded documents or localizing content files.

Use Case Examples

  1. Translating a PDF document from English to Spanish.
  2. Automatically translating image files containing text from any detected language to French.

Properties

Name Meaning
Binary Property The name of the binary property in the input data that contains the file to be translated.
Source Language The language code of the source text in the file. Use 'auto' to enable automatic language detection.
Target Language The language code to which the file content should be translated.

Output

JSON

  • translatedText - The translated content returned by the LibreTranslate API after processing the file.

Dependencies

  • Requires an API key credential for LibreTranslate API access, including the API base URL and optional API key.

Troubleshooting

  • Ensure the binary property name matches the actual binary data property in the input to avoid errors related to missing file data.
  • Verify that the source and target language codes are valid and supported by LibreTranslate to prevent translation failures.
  • Check API key validity and endpoint URL correctness if authentication or connection errors occur.

Links

Discussion