feat(translations): menu translations

This commit is contained in:
Alexey Kasyanchuk
2018-05-18 01:25:18 +03:00
parent 0d39bbd9c3
commit 3056779895
8 changed files with 77 additions and 34 deletions

View File

@ -1,12 +1,13 @@
import { app, BrowserWindow, shell } from "electron";
import path from "path";
import url from "url";
import __ from '../../app/translation'
export const aboutMenuTemplate = {
label: "About",
export const aboutMenuTemplateFunc = () => ({
label: __("About"),
submenu: [
{
label: "Changelog",
label: __("Changelog"),
accelerator: "CmdOrCtrl+]",
click: () => {
const win = new BrowserWindow({
@ -35,14 +36,14 @@ export const aboutMenuTemplate = {
},
},
{
label: "Bug Report",
label: __("Bug Report"),
accelerator: "CmdOrCtrl+[",
click: () => {
shell.openExternal('https://github.com/DEgITx/rats-search/issues')
},
},
{
label: "Donate",
label: __("Donate"),
accelerator: "CmdOrCtrl+*",
click: () => {
const win = new BrowserWindow({
@ -72,25 +73,25 @@ export const aboutMenuTemplate = {
},
},
{
label: "Help (Documentation)",
label: __("Help (Documentation)"),
accelerator: "CmdOrCtrl+?",
click: () => {
shell.openExternal('https://github.com/DEgITx/rats-search/blob/master/docs/MANUAL.md')
},
},
{
label: "Support (Discussion)",
label: __("Support (Discussion)"),
accelerator: "CmdOrCtrl+>",
click: () => {
shell.openExternal('https://discord.gg/t9GQtxA')
},
},
{
label: "About (GitHub)",
label: __("About (GitHub)"),
accelerator: "CmdOrCtrl+<",
click: () => {
shell.openExternal('https://github.com/DEgITx/rats-search')
},
}
]
};
});