Skip to content

Commit 6c88d35

Browse files
authored
fix: .capitalize() removed because it changes the translations (also English) (#1665)
* Update editorSettings.js * Update terminalSettings.js
1 parent 2e2e93c commit 6c88d35

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/settings/editorSettings.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default function editorSettings() {
1010
const items = [
1111
{
1212
key: "autosave",
13-
text: strings.autosave.capitalize(),
13+
text: strings.autosave,
1414
value: values.autosave,
1515
valueText: (value) => (value ? value : strings.no),
1616
prompt: strings.delay + " (>=1000 || 0)",
@@ -88,12 +88,12 @@ export default function editorSettings() {
8888
},
8989
{
9090
key: "liveAutoCompletion",
91-
text: strings["live autocompletion"].capitalize(),
91+
text: strings["live autocompletion"],
9292
checkbox: values.liveAutoCompletion,
9393
},
9494
{
9595
key: "showPrintMargin",
96-
text: strings["show print margin"].capitalize(),
96+
text: strings["show print margin"],
9797
checkbox: values.showPrintMargin,
9898
},
9999
{

src/settings/terminalSettings.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default function terminalSettings() {
3131
const items = [
3232
{
3333
key: "all_file_access",
34-
text: strings.allFileAccess?.capitalize(),
34+
text: strings["allFileAccess"],
3535
info: "Enable access of /sdcard and /storage in terminal",
3636
},
3737
{
@@ -173,17 +173,17 @@ export default function terminalSettings() {
173173
},
174174
{
175175
key: "backup",
176-
text: strings.backup.capitalize(),
176+
text: strings.backup,
177177
info: "Creates a backup of the terminal installation",
178178
},
179179
{
180180
key: "restore",
181-
text: strings.restore.capitalize(),
181+
text: strings.restore,
182182
info: "Restores a backup of the terminal installation",
183183
},
184184
{
185185
key: "uninstall",
186-
text: strings.uninstall.capitalize(),
186+
text: strings.uninstall,
187187
info: "Uninstalls the terminal installation",
188188
},
189189
];

0 commit comments

Comments
 (0)