Skip to content

Translate

Translate pentest reports using Deepl (bring your own Deepl API token).

Examples

1
2
3
reptor translate -to DE --dry-run
reptor translate --from EN -to DE
reptor translate -to DE --skip-fields recommendation,summary

Installation

Make sure you installed required dependencies by using pip install reptor[translate] or pip install reptor[all].

Configuration

The translate module needs additional configurations, which you can add to ~/.sysreptor/config.yaml:

1
2
3
4
translate:
  deepl_api_token: <your-api-token>
  skip_fields:
  - description

skip_fields can be used to do not translate certain report or finding fields.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
usage: reptor translate [-h] [--conf] [--from LANGUAGE_CODE]
                        [--to LANGUAGE_CODE] [--skip-fields FIELDS]
                        [--dry-run]

Translate Projects to other languages via Deepl

optional arguments:
  -h, --help            show this help message and exit
  --conf, --config      Configure plugin settings
  --from LANGUAGE_CODE  Language code of source language
  --to LANGUAGE_CODE    Language code of dest language
  --skip-fields FIELDS  Report and Finding fields, comma-separated
  --dry-run             Do not translate, count characters to be translated and checks Deepl quota