diff --git a/src/locales/en/messages.json b/src/locales/en/messages.json index 31504744b1..1503155797 100644 --- a/src/locales/en/messages.json +++ b/src/locales/en/messages.json @@ -1227,5 +1227,8 @@ }, "enableMenuBarDesc": { "message": "Always show an icon in the menu bar." + }, + "hideToMenuBar": { + "message": "Hide to Menu Bar" } } diff --git a/src/main/menu.main.ts b/src/main/menu.main.ts index b54bc6b751..1246ea3a95 100644 --- a/src/main/menu.main.ts +++ b/src/main/menu.main.ts @@ -442,7 +442,7 @@ export class MenuMain extends BaseMenu { } (template[template.length - 2].submenu as MenuItemConstructorOptions[]).splice(1, 0, { - label: this.main.i18nService.t('hideToTray'), + label: this.main.i18nService.t(process.platform === 'darwin' ? 'hideToMenuBar' : 'hideToTray'), click: () => this.main.messagingService.send('hideToTray'), accelerator: 'CmdOrCtrl+Shift+M', });