LibreTranslate icon

LibreTranslate

Interact with LibreTranslate API for translation services

Actions6

Overview

This node interacts with the LibreTranslate API to provide translation services. Specifically, for the 'Suggest Translation' operation under the 'Translation' resource, it allows users to submit a translation suggestion by providing the original text, the suggested translation, and the source and target language codes. This is useful for contributing improved or alternative translations to the LibreTranslate service.

Use Case Examples

  1. A user wants to suggest a better Spanish translation for an English phrase. They input the original English text, their suggested Spanish translation, and specify 'en' as the source language and 'es' as the target language. The node submits this suggestion to LibreTranslate.
  2. Another scenario is when a user is building a translation improvement workflow and wants to collect user-submitted translation suggestions for review and integration.

Properties

Name Meaning
Original Text The original text that the user wants to suggest a translation for. This is a required string input.
Suggested Translation The translation suggestion provided by the user for the original text. This is a required string input.
Source Language The language code of the original text. This is a required string input, e.g., 'en' for English.
Target Language The language code for the suggested translation. This is a required string input, e.g., 'es' for Spanish.

Output

JSON

  • json - The JSON response from the LibreTranslate API after submitting the translation suggestion. It typically contains confirmation or status of the suggestion submission.

Dependencies

  • Requires an API key credential for LibreTranslate API access, which must be configured in the node credentials.

Troubleshooting

  • Common issues include invalid or missing API key credentials, which will cause authentication errors.
  • Incorrect or unsupported language codes for source or target languages may result in API errors.
  • Network connectivity issues can prevent the node from reaching the LibreTranslate API endpoint.
  • If the node is set to continue on fail, errors will be returned in the output JSON under an 'error' property for each failed item.

Links

Discussion