Skip to content

Commit 9012c8b

Browse files
authored
Extract settings strings in html extension (microsoft#16183)
Closes microsoft#16178
1 parent a27eec8 commit 9012c8b

2 files changed

Lines changed: 26 additions & 12 deletions

File tree

extensions/html/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -73,71 +73,71 @@
7373
"html.format.enable": {
7474
"type": "boolean",
7575
"default": true,
76-
"description": "Enable/disable default HTML formatter (requires restart)"
76+
"description": "%html.format.enable.desc%"
7777
},
7878
"html.format.wrapLineLength": {
7979
"type": "integer",
8080
"default": 120,
81-
"description": "Maximum amount of characters per line (0 = disable)."
81+
"description": "%html.format.wrapLineLength.desc%"
8282
},
8383
"html.format.unformatted": {
8484
"type": [
8585
"string",
8686
"null"
8787
],
8888
"default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, pre, q, samp, script, select, small, span, strong, sub, sup, textarea, tt, var",
89-
"description": "List of tags, comma separated, that shouldn't be reformatted. 'null' defaults to all tags listed at https://www.w3.org/TR/html5/dom.html#phrasing-content."
89+
"description": "%html.format.unformatted.desc%"
9090
},
9191
"html.format.indentInnerHtml": {
9292
"type": "boolean",
9393
"default": false,
94-
"description": "Indent <head> and <body> sections."
94+
"description": "%html.format.indentInnerHtml.desc%"
9595
},
9696
"html.format.preserveNewLines": {
9797
"type": "boolean",
9898
"default": true,
99-
"description": "Whether existing line breaks before elements should be preserved. Only works before elements, not inside tags or for text."
99+
"description": "%html.format.preserveNewLines.desc%"
100100
},
101101
"html.format.maxPreserveNewLines": {
102102
"type": [
103103
"number",
104104
"null"
105105
],
106106
"default": null,
107-
"description": "Maximum number of line breaks to be preserved in one chunk. Use 'null' for unlimited."
107+
"description": "%html.format.maxPreserveNewLines.desc%"
108108
},
109109
"html.format.indentHandlebars": {
110110
"type": "boolean",
111111
"default": false,
112-
"description": "Format and indent {{#foo}} and {{/foo}}."
112+
"description": "%html.format.indentHandlebars.desc%"
113113
},
114114
"html.format.endWithNewline": {
115115
"type": "boolean",
116116
"default": false,
117-
"description": "End with a newline."
117+
"description": "%html.format.endWithNewline.desc%"
118118
},
119119
"html.format.extraLiners": {
120120
"type": [
121121
"string",
122122
"null"
123123
],
124124
"default": "head, body, /html",
125-
"description": "List of tags, comma separated, that should have an extra newline before them. 'null' defaults to \"head, body, /html\"."
125+
"description": "%html.format.extraLiners.desc%"
126126
},
127127
"html.suggest.angular1": {
128128
"type": "boolean",
129129
"default": true,
130-
"description": "Configures if the built-in HTML language support suggests Angular V1 tags and properties."
130+
"description": "%html.suggest.angular1.desc%"
131131
},
132132
"html.suggest.ionic": {
133133
"type": "boolean",
134134
"default": true,
135-
"description": "Configures if the built-in HTML language support suggests Ionic tags, properties and values."
135+
"description": "%html.suggest.ionic.desc%"
136136
},
137137
"html.suggest.html5": {
138138
"type": "boolean",
139139
"default": true,
140-
"description": "Configures if the built-in HTML language support suggests HTML5 tags, properties and values."
140+
"description": "%html.suggest.html5.desc%"
141141
}
142142
}
143143
}

extensions/html/package.nls.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"html.format.enable.desc": "Enable/disable default HTML formatter (requires restart)",
3+
"html.format.wrapLineLength.desc": "Maximum amount of characters per line (0 = disable).",
4+
"html.format.unformatted.desc": "List of tags, comma separated, that shouldn't be reformatted. 'null' defaults to all tags listed at https://www.w3.org/TR/html5/dom.html#phrasing-content.",
5+
"html.format.indentInnerHtml.desc": "Indent <head> and <body> sections.",
6+
"html.format.preserveNewLines.desc": "Whether existing line breaks before elements should be preserved. Only works before elements, not inside tags or for text.",
7+
"html.format.maxPreserveNewLines.desc": "Maximum number of line breaks to be preserved in one chunk. Use 'null' for unlimited.",
8+
"html.format.indentHandlebars.desc": "Format and indent {{#foo}} and {{/foo}}.",
9+
"html.format.endWithNewline.desc": "End with a newline.",
10+
"html.format.extraLiners.desc": "List of tags, comma separated, that should have an extra newline before them. 'null' defaults to \"head, body, /html\".",
11+
"html.suggest.angular1.desc": "Configures if the built-in HTML language support suggests Angular V1 tags and properties.",
12+
"html.suggest.ionic.desc": "Configures if the built-in HTML language support suggests Ionic tags, properties and values.",
13+
"html.suggest.html5.desc":"Configures if the built-in HTML language support suggests HTML5 tags, properties and values."
14+
}

0 commit comments

Comments
 (0)