-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmtl-config.schema.yml
71 lines (71 loc) · 2.24 KB
/
mtl-config.schema.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
$schema: http://json-schema.org/draft-07/schema#
title: MangaTranslatorConfig
type: object
required:
- cloudVision
- translation
additionalProperties: false
properties:
cloudVision:
$id: '#root/cloudVision'
type: object
required:
- credentialsPath
properties:
credentialsPath:
$id: '#root/cloudVision/credentialsPath'
description: |-
The path to the gcloud service credentials file with access to the cloudVision API.
type: string
translation:
$id: '#root/translation'
type: object
required:
- selectedService
properties:
selectedService:
$id: '#root/translation/selectedService'
description: |-
The translation service which you would like to use.
type: string
enum:
- deepL
- google
targetLanguage:
$id: '#root/translation/targetLanguage'
description: |-
The target language ISO-639-1 code.
Cloud Translation languages: https://cloud.google.com/translate/docs/languages
DeepL languages: https://www.deepl.com/docs-api/other-functions/listing-supported-languages/
type: string
sourceLanguage:
$id: '#root/translation/sourceLanguage'
description: |-
The source language ISO-639-1 code.
Cloud Translation languages: https://cloud.google.com/translate/docs/languages
DeepL languages: https://www.deepl.com/docs-api/other-functions/listing-supported-languages/
type: string
google:
$id: '#root/translation/google'
type: object
required:
- apiKey
properties:
apiKey:
$id: '#root/translation/google/apiKey'
description: |-
Your API key for the Cloud Translation API.
This field can be ommited if you want to use your service account key for the
Cloud Translation API instead.
type: string
deepL:
$id: '#root/translation/deepL'
type: object
required:
- apiKey
properties:
apiKey:
$id: '#root/translation/deepL/apiKey'
description: |-
Your API key for the DeepL API.
type: string