Skip to main content

DEEPL_TRANSLATE

Translate text using DeepL. Supports many optional DeepL parameters and returns the translated text as the default text output.

At a glance

  • Category Service
  • Aliases SERVICE_DEEPL_TRANSLATE
  • Version: 1.0.0
  • Applications: all
  • Scope: all
  • Default Service: DEEPL

Config Options

NameDescriptionDefaultRequiredResolvedConstraintsConditional Rules
instructionText to translate (can include templates). If omitted, the default text input is used.NonetruetrueNoneNone
target_langTarget language code for the translation (e.g. EN, DE, FR).NonetruetrueNoneNone
replaceXmlLangOptional: replace xml:lang attributes in the translated output with this language code.NonefalsetrueNoneNone
tag_handlingHow to handle tags; default is "xml".NonefalsetrueNoneNone
source_langLanguage of the text to be translated. If this parameter is omitted, the API will attempt to detect the language of the text and translate it.NonefalsetrueNoneNone
contextAdditional context that can influence a translation but is not translated itself.NonefalsetrueNoneNone
split_sentencesSets whether the translation engine should first split the input into sentences.NonefalsetrueNoneNone
preserve_formattingSets whether the translation engine should respect the original formatting, even if it would usuallyNonefalsetrueNoneNone
formalitySets whether the translated text should lean towards formal or informal language.NonefalsetrueNoneNone
glossary_idSpecify the glossary to use for the translation.NonefalsetrueNoneNone
outline_detectionDisable the automatic detection of XMLNonefalsetrueNoneNone
non_splitting_tagsComma-separated list of XML tags which never split sentences.NonefalsefalseNoneNone
splitting_tagsComma-separated list of XML tags which always cause splits.NonefalsetrueNoneNone
ignore_tagsComma-separated list of XML tags that indicate text not to be translated.NonefalsetrueNoneNone
model_typeSpecifies which DeepL model should be used for translation.NonefalsetrueNoneNone
show_billed_charactersWhen true, the response will include the billed_characters parameter.NonefalsetrueNoneNone

Outputs

TypeDescriptionOptional
textTranslated textfalse

Examples

Translate text using DeepL

- step: DEEPL_TRANSLATE
instruction: "Hello, world!"
target_lang: "DE"
# additional parameters as per DeepL API - https://developers.deepl.com/docs/api-reference/translate#request-body-descriptions
split_sentences: "0"

See Also

General Resources: