diff --git a/src/electron/Menu.ts b/src/electron/Menu.ts index 1355c93..88566d8 100644 --- a/src/electron/Menu.ts +++ b/src/electron/Menu.ts @@ -1,4 +1,4 @@ -import { BrowserWindow } from 'electron'; +import { BrowserWindow, shell } from 'electron'; import { i18n } from 'i18next'; type Language = { @@ -88,11 +88,18 @@ const createMenuTemplate = async ( template.push({ role: 'help', - label: i18n.t('menu.help'), + label: i18n.t('menu.help.label'), submenu: [ + { + label: i18n.t('menu.help.documentation'), + click: async () => { + shell.openExternal('https://danilolutz.gitbook.io/librarian/'); + }, + }, + { type: 'separator' }, { id: 'about-menu', - label: i18n.t('menu.about'), + label: i18n.t('menu.help.about'), click: async () => { if (mainWindow) { mainWindow.webContents.send('about', true); diff --git a/src/locales/en-US/common.json b/src/locales/en-US/common.json index 145cb3c..4d8d247 100644 --- a/src/locales/en-US/common.json +++ b/src/locales/en-US/common.json @@ -17,8 +17,11 @@ "minimize": "Minimize", "zoom": "Zoom", "close": "Close", - "help": "&Help", - "about": "&About", + "help": { + "label": "&Help", + "documentation": "&Documentation", + "about": "&About" + }, "language": "&Language" }, "button": { diff --git a/src/locales/pt-BR/common.json b/src/locales/pt-BR/common.json index 15b69bd..84a7eeb 100644 --- a/src/locales/pt-BR/common.json +++ b/src/locales/pt-BR/common.json @@ -17,8 +17,11 @@ "minimize": "Minimizar", "zoom": "Zoom", "close": "Fechar", - "help": "&Ajuda", - "about": "&Sobre", + "help": { + "label": "&Ajuda", + "documentation": "&DocumentaĆ§Ć£o", + "about": "&Sobre" + }, "language": "&Idioma" }, "button": {