1{
2 "title": "Input schema for the apify_project actor.",
3 "type": "object",
4 "schemaVersion": 1,
5 "properties": {
6 "auth_key": {
7 "title": "Authentication Key",
8 "type": "string",
9 "description": "Authentication Key for DeepL API. You can find it here https://www.deepl.com/pro-account/summary",
10 "editor": "textfield"
11 },
12 "text": {
13 "title": "Source text",
14 "type": "string",
15 "description": "Text you want to translate",
16 "editor": "textarea"
17 },
18 "target_lang": {
19 "title": "Target language",
20 "type": "string",
21 "editor": "select",
22 "description": "The language (and variant) into which the text should be translated",
23 "default": "EN-GB",
24 "enum": ["BG", "CS", "DA", "DE", "EL", "EN-GB", "EN-US", "ES", "ET", "FI", "FR", "HU", "IT", "JA", "LT", "LV", "NL", "PL", "PT-PT", "PT-BR", "RO", "RU", "SK", "SL", "SV", "ZH"],
25 "enumTitles": ["Bulgarian", "Czech", "Danish", "German", "Greek", "English (British)", "English (American)", "Spanish", "Estonian", "Finnish", "French", "Hungarian", "Italian", "Japanese", "Lithuanian", "Latvian", "Dutch", "Polish", "Portuguese (all Portuguese varieties excluding Brazilian Portuguese)", "Portuguese (Brazilian)", "Romanian", "Russian", "Slovak", "Slovenian", "Swedish", "Chinese"]
26 },
27 "source_lang": {
28 "title": "Source language",
29 "type": "string",
30 "editor": "select",
31 "description": "Language of the text to be translated. Default is automatic detection.",
32 "default": "",
33 "enum": ["", "BG", "CS", "DA", "DE", "EL", "EN", "ES", "ET", "FI", "FR", "HU", "IT", "JA", "LT", "LV", "NL", "PL", "PT", "RO", "RU", "SK", "SL", "SV", "ZH"],
34 "enumTitles": ["Autodetect","Bulgarian", "Czech", "Danish", "German", "Greek", "English", "Spanish", "Estonian", "Finnish", "French", "Hungarian", "Italian", "Japanese", "Lithuanian", "Latvian", "Dutch", "Polish", "Portuguese (all Portuguese varieties mixed)", "Romanian", "Russian", "Slovak", "Slovenian", "Swedish", "Chinese"]
35 },
36 "split_sentences": {
37 "title": "Split sentences",
38 "type": "string",
39 "description": "Sets whether the translation engine should first split the input into sentences. This is enabled by default.<br />For applications that send one sentence per text parameter, it is advisable to set split_sentences=0, in order to prevent the engine from splitting the sentence unintentionally.",
40 "editor": "select",
41 "default": "1",
42 "enum": ["0", "1", "nonewlines"],
43 "enumTitles": ["0 - no splitting at all, whole input is treated as one sentence","1 - (default) - splits on punctuation and on newlines","nonewlines - splits on punctuation only, ignoring newlines"]
44 },
45 "preserve_formatting": {
46 "title": "Preserve formatting",
47 "type": "string",
48 "description": "Sets whether the translation engine should respect the original formatting, even if it would usually correct some aspects. <br />The formatting aspects affected by this setting include:<br />-Punctuation at the beginning and end of the sentence<br />-Upper/lower case at the beginning of the sentence",
49 "editor": "select",
50 "default": "0",
51 "enum": ["0", "1"],
52 "enumTitles": ["0 (default) - No, do not preserver formatting","1 - Yes, preserve formatting"]
53 },
54 "formality": {
55 "title": "Formality",
56 "type": "string",
57 "description": "Sets whether the translated text should lean towards formal or informal language. This feature currently only works for target languages 'DE' (German), 'FR' (French), 'IT' (Italian), 'ES' (Spanish), 'NL' (Dutch), 'PL' (Polish), 'PT-PT', 'PT-BR' (Portuguese) and 'RU' (Russian).",
58 "editor": "select",
59 "default": "default",
60 "enum": ["default", "more", "less"],
61 "enumTitles": ["Default","More","Less"]
62 },
63 "glossary_id": {
64 "title": "Glossary ID",
65 "type": "string",
66 "description": "Specify the glossary to use for the translation. Important: This requires the source_lang parameter to be set and the language pair of the glossary has to match the language pair of the request.",
67 "editor": "textfield",
68 "nullable": true
69 }
70 },
71 "required": ["text","auth_key"]
72}