Skip to content

Commit efd6687

Browse files
feat: add descriptions to Code Editor preferences and unify style across all settings (#709)
1 parent 89c7cf5 commit efd6687

18 files changed

Lines changed: 549 additions & 131 deletions

File tree

src/main/i18n/locales/cs_CZ/preferences.json

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,51 @@
1212
},
1313
"editor": {
1414
"label": "Editor",
15-
"fontSize": "Velikost písma",
16-
"fontFamily": "Rodina písma",
15+
"fontSize": {
16+
"label": "Velikost písma",
17+
"description": "Base font size in pixels for the code editor."
18+
},
19+
"fontFamily": {
20+
"label": "Rodina písma",
21+
"description": "Monospace font for the code editor. Use commas for fallbacks."
22+
},
1723
"wrap": {
1824
"label": "Zalamování",
25+
"description": "Line wrapping to fit the editor width or allow horizontal scrolling.",
1926
"wordWrap": "Zalamování slov",
2027
"off": "Vypnuto"
2128
},
22-
"tabSize": "Velikost tabulátoru",
29+
"tabSize": {
30+
"label": "Velikost tabulátoru",
31+
"description": "Number of spaces per tab character for indentation."
32+
},
2333
"showInvisibles": "Zobrazit neviditelné znaky",
24-
"highlightLine": "Zvýraznit řádek",
34+
"highlightLine": {
35+
"label": "Zvýraznit řádek",
36+
"description": "Visual highlight on the line where the cursor is positioned."
37+
},
2538
"highlightGutter": "Zvýraznit okraj",
26-
"matchBrackets": "Párové závorky",
39+
"matchBrackets": {
40+
"label": "Párové závorky",
41+
"description": "Matching bracket highlighting near the cursor."
42+
},
2743
"prettier": {
2844
"label": "Prettier",
2945
"trailingComma": {
3046
"label": "Koncová čárka",
47+
"description": "Trailing commas in multi-line structures when formatting.",
3148
"none": "Žádná",
3249
"all": "Všude",
3350
"es5": "ES5"
3451
},
35-
"semi": "Středník",
36-
"singleQuote": "Jednoduché uvozovky"
52+
"semi": {
53+
"label": "Středník",
54+
"description": "Semicolons at the end of every statement."
55+
},
56+
"singleQuote": {
57+
"label": "Jednoduché uvozovky",
58+
"description": "Single quotes instead of double quotes."
59+
}
3760
}
3861
},
3962
"notesEditor": {

src/main/i18n/locales/de_DE/preferences.json

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,51 @@
1212
},
1313
"editor": {
1414
"label": "Editor",
15-
"fontSize": "Schriftgröße",
16-
"fontFamily": "Schriftart",
15+
"fontSize": {
16+
"label": "Schriftgröße",
17+
"description": "Base font size in pixels for the code editor."
18+
},
19+
"fontFamily": {
20+
"label": "Schriftart",
21+
"description": "Monospace font for the code editor. Use commas for fallbacks."
22+
},
1723
"wrap": {
1824
"label": "Umbruch",
25+
"description": "Line wrapping to fit the editor width or allow horizontal scrolling.",
1926
"wordWrap": "Zeilenumbruch",
2027
"off": "Aus"
2128
},
22-
"tabSize": "Tabgröße",
29+
"tabSize": {
30+
"label": "Tabgröße",
31+
"description": "Number of spaces per tab character for indentation."
32+
},
2333
"showInvisibles": "Unsichtbare Zeichen anzeigen",
24-
"highlightLine": "Zeile hervorheben",
34+
"highlightLine": {
35+
"label": "Zeile hervorheben",
36+
"description": "Visual highlight on the line where the cursor is positioned."
37+
},
2538
"highlightGutter": "Zeilennummern hervorheben",
26-
"matchBrackets": "Klammern hervorheben",
39+
"matchBrackets": {
40+
"label": "Klammern hervorheben",
41+
"description": "Matching bracket highlighting near the cursor."
42+
},
2743
"prettier": {
2844
"label": "Prettier",
2945
"trailingComma": {
3046
"label": "Abschließendes Komma",
47+
"description": "Trailing commas in multi-line structures when formatting.",
3148
"none": "Keins",
3249
"all": "Alle",
3350
"es5": "ES5"
3451
},
35-
"semi": "Semikolon",
36-
"singleQuote": "Einfache Anführungszeichen"
52+
"semi": {
53+
"label": "Semikolon",
54+
"description": "Semicolons at the end of every statement."
55+
},
56+
"singleQuote": {
57+
"label": "Einfache Anführungszeichen",
58+
"description": "Single quotes instead of double quotes."
59+
}
3760
}
3861
},
3962
"notesEditor": {

src/main/i18n/locales/el_GR/preferences.json

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,51 @@
1212
},
1313
"editor": {
1414
"label": "Editor",
15-
"fontSize": "Μέγεθος Γραμματοσειράς",
16-
"fontFamily": "Οικογένεια Γραμματοσειράς",
15+
"fontSize": {
16+
"label": "Μέγεθος Γραμματοσειράς",
17+
"description": "Base font size in pixels for the code editor."
18+
},
19+
"fontFamily": {
20+
"label": "Οικογένεια Γραμματοσειράς",
21+
"description": "Monospace font for the code editor. Use commas for fallbacks."
22+
},
1723
"wrap": {
1824
"label": "Αναδίπλωση",
25+
"description": "Line wrapping to fit the editor width or allow horizontal scrolling.",
1926
"wordWrap": "Αναδίπλωση Λέξεων",
2027
"off": "Απενεργοποίηση"
2128
},
22-
"tabSize": "Μέγεθος Tab",
29+
"tabSize": {
30+
"label": "Μέγεθος Tab",
31+
"description": "Number of spaces per tab character for indentation."
32+
},
2333
"showInvisibles": "Εμφάνιση Αόρατων Χαρακτήρων",
24-
"highlightLine": "Επισήμανση Γραμμής",
34+
"highlightLine": {
35+
"label": "Επισήμανση Γραμμής",
36+
"description": "Visual highlight on the line where the cursor is positioned."
37+
},
2538
"highlightGutter": "Επισήμανση Gutter",
26-
"matchBrackets": "Αντιστοίχιση Παρενθέσεων",
39+
"matchBrackets": {
40+
"label": "Αντιστοίχιση Παρενθέσεων",
41+
"description": "Matching bracket highlighting near the cursor."
42+
},
2743
"prettier": {
2844
"label": "Prettier",
2945
"trailingComma": {
3046
"label": "Κόμμα στο Τέλος",
47+
"description": "Trailing commas in multi-line structures when formatting.",
3148
"none": "Κανένα",
3249
"all": "Όλα",
3350
"es5": "ES5"
3451
},
35-
"semi": "Ερωτηματικό",
36-
"singleQuote": "Μονά Εισαγωγικά"
52+
"semi": {
53+
"label": "Ερωτηματικό",
54+
"description": "Semicolons at the end of every statement."
55+
},
56+
"singleQuote": {
57+
"label": "Μονά Εισαγωγικά",
58+
"description": "Single quotes instead of double quotes."
59+
}
3760
}
3861
},
3962
"notesEditor": {

src/main/i18n/locales/en_US/preferences.json

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,51 @@
1212
},
1313
"editor": {
1414
"label": "Code Editor",
15-
"fontSize": "Font Size",
16-
"fontFamily": "Font Family",
15+
"fontSize": {
16+
"label": "Font Size",
17+
"description": "Base font size in pixels for the code editor."
18+
},
19+
"fontFamily": {
20+
"label": "Font Family",
21+
"description": "Monospace font for the code editor. Use commas for fallbacks."
22+
},
1723
"wrap": {
1824
"label": "Wrap",
25+
"description": "Line wrapping to fit the editor width or allow horizontal scrolling.",
1926
"wordWrap": "Word Wrap",
2027
"off": "Off"
2128
},
22-
"tabSize": "Tab Size",
29+
"tabSize": {
30+
"label": "Tab Size",
31+
"description": "Number of spaces per tab character for indentation."
32+
},
2333
"showInvisibles": "Show Invisibles",
24-
"highlightLine": "Highlight Line",
34+
"highlightLine": {
35+
"label": "Highlight Line",
36+
"description": "Visual highlight on the line where the cursor is positioned."
37+
},
2538
"highlightGutter": "Highlight Gutter",
26-
"matchBrackets": "Match Brackets",
39+
"matchBrackets": {
40+
"label": "Match Brackets",
41+
"description": "Matching bracket highlighting near the cursor."
42+
},
2743
"prettier": {
2844
"label": "Prettier",
2945
"trailingComma": {
3046
"label": "Trailing Comma",
47+
"description": "Trailing commas in multi-line structures when formatting.",
3148
"none": "None",
3249
"all": "All",
3350
"es5": "ES5"
3451
},
35-
"semi": "Semi",
36-
"singleQuote": "Single Quote"
52+
"semi": {
53+
"label": "Semi",
54+
"description": "Semicolons at the end of every statement."
55+
},
56+
"singleQuote": {
57+
"label": "Single Quote",
58+
"description": "Single quotes instead of double quotes."
59+
}
3760
}
3861
},
3962
"notesEditor": {
@@ -44,11 +67,11 @@
4467
},
4568
"fontFamily": {
4669
"label": "Text Font",
47-
"description": "CSS font-family value. Use commas to specify fallbacks."
70+
"description": "Text font for the notes editor. Use commas for fallbacks."
4871
},
4972
"codeFontFamily": {
5073
"label": "Monospace Font",
51-
"description": "Font for inline code and fenced code blocks."
74+
"description": "Monospace font for inline code and code blocks in the notes editor. Use commas for fallbacks."
5275
},
5376
"lineHeight": {
5477
"label": "Line Height",
@@ -63,11 +86,11 @@
6386
},
6487
"limitWidth": {
6588
"label": "Limit Width",
66-
"description": "Constrain content to a comfortable reading width (700px)."
89+
"description": "Maximum content width for comfortable reading (700px)."
6790
},
6891
"lineNumbers": {
6992
"label": "Line Numbers",
70-
"description": "Show line numbers in the gutter. Only available in Raw mode."
93+
"description": "Line numbers in the gutter. Only available in Raw mode."
7194
}
7295
},
7396
"appearance": {
@@ -79,7 +102,7 @@
79102
"themesDir": "Themes Directory",
80103
"openDir": "Open Themes Directory",
81104
"createTemplate": "Create Theme Template",
82-
"dirDescription": "Place your JSON theme files in this folder.",
105+
"dirDescription": "Directory for custom JSON theme files.",
83106
"light": "Light",
84107
"dark": "Dark",
85108
"system": "System"

src/main/i18n/locales/es_ES/preferences.json

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,51 @@
1212
},
1313
"editor": {
1414
"label": "Editor",
15-
"fontSize": "Tamaño de Fuente",
16-
"fontFamily": "Familia de Fuente",
15+
"fontSize": {
16+
"label": "Tamaño de Fuente",
17+
"description": "Base font size in pixels for the code editor."
18+
},
19+
"fontFamily": {
20+
"label": "Familia de Fuente",
21+
"description": "Monospace font for the code editor. Use commas for fallbacks."
22+
},
1723
"wrap": {
1824
"label": "Ajuste",
25+
"description": "Line wrapping to fit the editor width or allow horizontal scrolling.",
1926
"wordWrap": "Ajuste de Texto",
2027
"off": "Desactivado"
2128
},
22-
"tabSize": "Tamaño de Tabulación",
29+
"tabSize": {
30+
"label": "Tamaño de Tabulación",
31+
"description": "Number of spaces per tab character for indentation."
32+
},
2333
"showInvisibles": "Mostrar Invisibles",
24-
"highlightLine": "Resaltar Línea",
34+
"highlightLine": {
35+
"label": "Resaltar Línea",
36+
"description": "Visual highlight on the line where the cursor is positioned."
37+
},
2538
"highlightGutter": "Resaltar Margen",
26-
"matchBrackets": "Emparejar Corchetes",
39+
"matchBrackets": {
40+
"label": "Emparejar Corchetes",
41+
"description": "Matching bracket highlighting near the cursor."
42+
},
2743
"prettier": {
2844
"label": "Prettier",
2945
"trailingComma": {
3046
"label": "Coma Final",
47+
"description": "Trailing commas in multi-line structures when formatting.",
3148
"none": "Ninguna",
3249
"all": "Todas",
3350
"es5": "ES5"
3451
},
35-
"semi": "Punto y Coma",
36-
"singleQuote": "Comilla Simple"
52+
"semi": {
53+
"label": "Punto y Coma",
54+
"description": "Semicolons at the end of every statement."
55+
},
56+
"singleQuote": {
57+
"label": "Comilla Simple",
58+
"description": "Single quotes instead of double quotes."
59+
}
3760
}
3861
},
3962
"notesEditor": {

src/main/i18n/locales/fa_IR/preferences.json

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,51 @@
1212
},
1313
"editor": {
1414
"label": "ویرایشگر",
15-
"fontSize": "اندازه فونت",
16-
"fontFamily": "خانواده فونت",
15+
"fontSize": {
16+
"label": "اندازه فونت",
17+
"description": "Base font size in pixels for the code editor."
18+
},
19+
"fontFamily": {
20+
"label": "خانواده فونت",
21+
"description": "Monospace font for the code editor. Use commas for fallbacks."
22+
},
1723
"wrap": {
1824
"label": "شکستن خط",
25+
"description": "Line wrapping to fit the editor width or allow horizontal scrolling.",
1926
"wordWrap": "شکستن کلمه",
2027
"off": "خاموش"
2128
},
22-
"tabSize": "اندازه تب",
29+
"tabSize": {
30+
"label": "اندازه تب",
31+
"description": "Number of spaces per tab character for indentation."
32+
},
2333
"showInvisibles": "نمایش نامرئی‌ها",
24-
"highlightLine": "برجسته کردن خط",
34+
"highlightLine": {
35+
"label": "برجسته کردن خط",
36+
"description": "Visual highlight on the line where the cursor is positioned."
37+
},
2538
"highlightGutter": "برجسته کردن حاشیه",
26-
"matchBrackets": "تطبیق پرانتزها",
39+
"matchBrackets": {
40+
"label": "تطبیق پرانتزها",
41+
"description": "Matching bracket highlighting near the cursor."
42+
},
2743
"prettier": {
2844
"label": "Prettier",
2945
"trailingComma": {
3046
"label": "کاما انتهایی",
47+
"description": "Trailing commas in multi-line structures when formatting.",
3148
"none": "هیچ",
3249
"all": "همه",
3350
"es5": "ES5"
3451
},
35-
"semi": "نقطه‌ویرگول",
36-
"singleQuote": "تک کوتیشن"
52+
"semi": {
53+
"label": "نقطه‌ویرگول",
54+
"description": "Semicolons at the end of every statement."
55+
},
56+
"singleQuote": {
57+
"label": "تک کوتیشن",
58+
"description": "Single quotes instead of double quotes."
59+
}
3760
}
3861
},
3962
"notesEditor": {

0 commit comments

Comments
 (0)