Skip to content

Commit ef198b2

Browse files
authored
Fix missing translations in the main menu bar (#2933)
1 parent d5039b5 commit ef198b2

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

newIDE/app/src/MainFrame/ElectronMainMenu.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -169,15 +169,15 @@ const buildAndSendMenuTemplate = (
169169
const editTemplate = {
170170
label: i18n._(t`Edit`),
171171
submenu: [
172-
{ role: 'undo' },
173-
{ role: 'redo' },
172+
{ label: i18n._(t`Undo`), role: 'undo' },
173+
{ label: i18n._(t`Redo`), role: 'redo' },
174174
{ type: 'separator' },
175-
{ role: 'cut' },
176-
{ role: 'copy' },
177-
{ role: 'paste' },
178-
{ role: 'pasteandmatchstyle' },
179-
{ role: 'delete' },
180-
{ role: 'selectall' },
175+
{ label: i18n._(t`Cut`), role: 'cut' },
176+
{ label: i18n._(t`Copy`), role: 'copy' },
177+
{ label: i18n._(t`Paste`), role: 'paste' },
178+
{ label: i18n._(t`Paste and Match Style`), role: 'pasteandmatchstyle' },
179+
{ label: i18n._(t`Delete`), role: 'delete' },
180+
{ label: i18n._(t`Select All`), role: 'selectall' },
181181
],
182182
};
183183

@@ -202,9 +202,9 @@ const buildAndSendMenuTemplate = (
202202
enabled: !!project,
203203
},
204204
{ type: 'separator' },
205-
{ role: 'toggledevtools' },
205+
{ label: i18n._(t`Toggle Developer Tools`), role: 'toggledevtools' },
206206
{ type: 'separator' },
207-
{ role: 'togglefullscreen' },
207+
{ label: i18n._(t`Toggle Fullscreen`), role: 'togglefullscreen' },
208208
],
209209
};
210210

0 commit comments

Comments
 (0)