forked from SchemaStore/schemastore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
browser.i18n.json
59 lines (59 loc) · 1.63 KB
/
browser.i18n.json
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
{
"$id": "https://json.schemastore.org/browser.i18n.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"definitions": {
"translationEntry": {
"description": "Translation key",
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Translation string"
},
"description": {
"type": "string",
"description": "(optional): Description of this string for the translator team"
},
"placeholders": {
"$ref": "#/definitions/placeholders"
}
},
"required": ["message"],
"additionalProperties": false
},
"placeholders": {
"type": "object",
"description": "(optional): List of placeholders that can be used in the message.",
"additionalProperties": false,
"patternProperties": {
"^(?!@@)[@a-zA-Z0-9_-]+$": {
"$ref": "#/definitions/placeholder"
}
}
},
"placeholder": {
"description": "Placeholder key",
"type": "object",
"properties": {
"content": {
"type": "string",
"description": "Value to insert. It can contain a variable $1"
},
"example": {
"type": "string",
"description": "(optional) example of this placeholder"
}
},
"required": ["content"],
"additionalProperties": false
}
},
"patternProperties": {
"^(?!@@)[@a-zA-Z0-9_-]+$": {
"$ref": "#/definitions/translationEntry"
}
},
"title": "browser.i18n messages.json translation file",
"type": "object"
}