LibreTranslate icon

LibreTranslate

Interact with LibreTranslate API for translation services

Actions6

Overview

This node interacts with the LibreTranslate API to provide translation services. It supports translating text from one language to another, including automatic source language detection, and allows specifying the format of the text (plain text or HTML) and the number of alternative translations to return. This node is useful for automating multilingual content translation, localizing applications, or integrating translation capabilities into workflows.

Use Case Examples

  1. Translating user-generated content from English to Spanish automatically detecting the source language.
  2. Converting website content from HTML format in French to English.
  3. Generating multiple alternative translations for a given text to choose the best fit.

Properties

Name Meaning
Text The text string to be translated from the source language to the target language.
Source Language The language code of the source text. Use 'auto' to enable automatic detection of the source language.
Target Language The language code into which the text should be translated.
Additional Fields Optional parameters to customize the translation, including the format of the text (text or HTML) and the number of alternative translations to return.

Output

JSON

  • translatedText - The translated text result from the API response.
  • alternatives - Optional alternative translations if requested.

Dependencies

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

Troubleshooting

  • Common issues include invalid or missing API key, resulting in authentication errors.
  • Incorrect language codes may cause translation failures or unexpected results.
  • Network or API endpoint issues can cause request failures; verify the API URL and network connectivity.
  • If 'continueOnFail' is enabled, errors for individual items will be returned in the output JSON under an 'error' property.

Links

Discussion