Skip to content

Text Translation Options

DeepL Text Translation Options

The following options can be set in babeltranslate.deepl_text_translation_options. The exact description and the possible values can be found in the DeepL API documentation.

{
  "split_sentences": "1",
  "preserve_formatting": false,
  "formality": "default",
  "glossary_id": "",
  "tag_handling": "",
  "outline_detection": true,
  "non_splitting_tags": "",
  "splitting_tags": "",
  "ignore_tags": "",
}

These example options have not been tested. The example code simply lists the options that are currently possible, according to the DeepL API documentation. The empty options may not work. Therefore, only select the options you require.

OpenAI Translation