Translate Gateway icon

Translate Gateway

Translate text using Translate Gateway microservice

Translate Gateway

AI-generated

Summary

Translate text into a specified target language using a configurable translation provider through the Translate Gateway microservice.

Inputs

  • Text (required) — The text to translate; supports plain text and HTML (auto-detected).
  • Target Language (required) — The target language code in BCP-47 format (e.g., en, ru, es).
  • Source Language — The source language code in BCP-47 format; if omitted, the provider auto-detects it.
  • Provider — Translation provider to use (e.g., Default, AnyLang, Google, DeepL, DeepSeek, OpenRouter, Free LLM Router, LibreTranslate, Yandex); must be configured in the microservice.
  • AnyLang Model — Underlying free translator for AnyLang provider; shown only if Provider is AnyLang.
  • Model — Model name for LLM providers DeepSeek, OpenRouter, or Free LLM Router; uses provider default if omitted.
  • Additional Options — Optional settings including system prompt (for LLM providers), request timeout, retry attempts and delays, maximum chunk length for text, splitting strategy (paragraph, markdown, sentence, off), and provider-specific parameters in YAML or JSON format.

Output shape

a single JSON object containing the translation response from the microservice

The output JSON contains the translated text and related metadata returned by the configured translation provider. Errors are included in the output with an "error" field if "Continue On Fail" is enabled. HTML text is never chunked; chunking (by paragraph, markdown, or sentence) applies only to plain text and is controlled by Additional Options. Provider-specific parameters can override environment variables for the request.

Discussion