Repository navigation
Expand file tree
/
Copy pathdocs-i18n.schema.json
More file actions
73 lines (73 loc) · 1.97 KB
/
Copy pathdocs-i18n.schema.json
File metadata and controls
73 lines (73 loc) · 1.97 KB
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
72
73
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Docs i18n Configuration",
"description": "Configuration for documentation internationalization sync checking",
"type": "object",
"required": ["version", "baseLanguage", "languages", "documents"],
"additionalProperties": false,
"properties": {
"$schema": {
"type": "string"
},
"version": {
"type": "string",
"pattern": "^\\d+\\.\\d+\\.\\d+$"
},
"baseLanguage": {
"type": "string",
"description": "The primary/source language code"
},
"languages": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1,
"description": "List of supported language codes"
},
"documents": {
"type": "object",
"description": "Mapping of base documents to their translations",
"additionalProperties": {
"type": "object",
"required": ["translations"],
"properties": {
"required": {
"type": "boolean",
"description": "Whether translation is required for this document",
"default": false
},
"translations": {
"type": "object",
"description": "Map of language code to translation filename",
"additionalProperties": {
"type": "string"
}
}
}
}
},
"ignoredPaths": {
"type": "array",
"items": {
"type": "string"
},
"description": "Paths to ignore when checking for markdown files"
},
"checkLevel": {
"type": "string",
"enum": ["warn", "error"],
"default": "warn",
"description": "Whether to warn or error when translations are out of sync"
},
"checkOn": {
"type": "array",
"items": {
"type": "string",
"enum": ["pre-commit", "ci", "manual"]
},
"default": ["pre-commit", "ci"],
"description": "When to run the sync check"
}
}
}