feat: i18n support with first translations
This commit is contained in:
@@ -61,76 +61,76 @@ export const APP_MENU_GROUPS: AppMenuGroupDefinition[] = [
|
||||
{
|
||||
label: 'File',
|
||||
items: [
|
||||
{ label: 'New Post', action: 'newPost', accelerator: 'CmdOrCtrl+N' },
|
||||
{ label: 'Import Media...', action: 'importMedia', accelerator: 'CmdOrCtrl+I' },
|
||||
{ label: 'menu.item.newPost', action: 'newPost', accelerator: 'CmdOrCtrl+N' },
|
||||
{ label: 'menu.item.importMedia', action: 'importMedia', accelerator: 'CmdOrCtrl+I' },
|
||||
{ label: '', action: 'file-separator-0', separator: true },
|
||||
{ label: 'Save', action: 'save', accelerator: 'CmdOrCtrl+S' },
|
||||
{ label: 'menu.item.save', action: 'save', accelerator: 'CmdOrCtrl+S' },
|
||||
{ label: '', action: 'file-separator-1', separator: true },
|
||||
{ label: 'Open in Browser', action: 'openInBrowser' },
|
||||
{ label: 'menu.item.openInBrowser', action: 'openInBrowser' },
|
||||
{ label: '', action: 'file-separator-2', separator: true },
|
||||
{ label: 'Open Data Folder', action: 'openDataFolder' },
|
||||
{ label: 'menu.item.openDataFolder', action: 'openDataFolder' },
|
||||
{ label: '', action: 'file-separator-3', separator: true },
|
||||
{ label: 'Quit', action: 'quit', accelerator: 'CmdOrCtrl+Q' },
|
||||
{ label: 'menu.item.quit', action: 'quit', accelerator: 'CmdOrCtrl+Q' },
|
||||
],
|
||||
},
|
||||
{
|
||||
label: 'Edit',
|
||||
items: [
|
||||
{ label: 'Undo', action: 'undo', accelerator: 'CmdOrCtrl+Z', role: 'undo' },
|
||||
{ label: 'Redo', action: 'redo', accelerator: 'CmdOrCtrl+Y', role: 'redo' },
|
||||
{ label: 'menu.item.undo', action: 'undo', accelerator: 'CmdOrCtrl+Z', role: 'undo' },
|
||||
{ label: 'menu.item.redo', action: 'redo', accelerator: 'CmdOrCtrl+Y', role: 'redo' },
|
||||
{ label: '', action: 'edit-separator-1', separator: true },
|
||||
{ label: 'Cut', action: 'cut', accelerator: 'CmdOrCtrl+X', role: 'cut' },
|
||||
{ label: 'Copy', action: 'copy', accelerator: 'CmdOrCtrl+C', role: 'copy' },
|
||||
{ label: 'Paste', action: 'paste', accelerator: 'CmdOrCtrl+V', role: 'paste' },
|
||||
{ label: 'Delete', action: 'delete', role: 'delete' },
|
||||
{ label: 'menu.item.cut', action: 'cut', accelerator: 'CmdOrCtrl+X', role: 'cut' },
|
||||
{ label: 'menu.item.copy', action: 'copy', accelerator: 'CmdOrCtrl+C', role: 'copy' },
|
||||
{ label: 'menu.item.paste', action: 'paste', accelerator: 'CmdOrCtrl+V', role: 'paste' },
|
||||
{ label: 'menu.item.delete', action: 'delete', role: 'delete' },
|
||||
{ label: '', action: 'edit-separator-2', separator: true },
|
||||
{ label: 'Select All', action: 'selectAll', accelerator: 'CmdOrCtrl+A', role: 'selectAll' },
|
||||
{ label: 'menu.item.selectAll', action: 'selectAll', accelerator: 'CmdOrCtrl+A', role: 'selectAll' },
|
||||
{ label: '', action: 'edit-separator-3', separator: true },
|
||||
{ label: 'Find', action: 'find', accelerator: 'CmdOrCtrl+F' },
|
||||
{ label: 'Replace', action: 'replace', accelerator: 'CmdOrCtrl+H' },
|
||||
{ label: 'menu.item.find', action: 'find', accelerator: 'CmdOrCtrl+F' },
|
||||
{ label: 'menu.item.replace', action: 'replace', accelerator: 'CmdOrCtrl+H' },
|
||||
],
|
||||
},
|
||||
{
|
||||
label: 'View',
|
||||
items: [
|
||||
{ label: 'Posts', action: 'viewPosts', accelerator: 'CmdOrCtrl+1' },
|
||||
{ label: 'Media', action: 'viewMedia', accelerator: 'CmdOrCtrl+2' },
|
||||
{ label: 'Toggle Sidebar', action: 'toggleSidebar', accelerator: 'CmdOrCtrl+B' },
|
||||
{ label: 'Toggle Panel', action: 'togglePanel', accelerator: 'CmdOrCtrl+J' },
|
||||
{ label: 'Toggle Developer Tools', action: 'toggleDevTools', accelerator: 'CmdOrCtrl+Shift+I' },
|
||||
{ label: 'menu.item.viewPosts', action: 'viewPosts', accelerator: 'CmdOrCtrl+1' },
|
||||
{ label: 'menu.item.viewMedia', action: 'viewMedia', accelerator: 'CmdOrCtrl+2' },
|
||||
{ label: 'menu.item.toggleSidebar', action: 'toggleSidebar', accelerator: 'CmdOrCtrl+B' },
|
||||
{ label: 'menu.item.togglePanel', action: 'togglePanel', accelerator: 'CmdOrCtrl+J' },
|
||||
{ label: 'menu.item.toggleDevTools', action: 'toggleDevTools', accelerator: 'CmdOrCtrl+Shift+I' },
|
||||
{ label: '', action: 'view-separator-1', separator: true },
|
||||
{ label: 'Reload', action: 'reload' },
|
||||
{ label: 'Force Reload', action: 'forceReload' },
|
||||
{ label: 'menu.item.reload', action: 'reload' },
|
||||
{ label: 'menu.item.forceReload', action: 'forceReload' },
|
||||
{ label: '', action: 'view-separator-2', separator: true },
|
||||
{ label: 'Actual Size', action: 'resetZoom' },
|
||||
{ label: 'Zoom In', action: 'zoomIn' },
|
||||
{ label: 'Zoom Out', action: 'zoomOut' },
|
||||
{ label: 'menu.item.resetZoom', action: 'resetZoom' },
|
||||
{ label: 'menu.item.zoomIn', action: 'zoomIn' },
|
||||
{ label: 'menu.item.zoomOut', action: 'zoomOut' },
|
||||
{ label: '', action: 'view-separator-3', separator: true },
|
||||
{ label: 'Toggle Full Screen', action: 'toggleFullScreen' },
|
||||
{ label: 'menu.item.toggleFullScreen', action: 'toggleFullScreen' },
|
||||
],
|
||||
},
|
||||
{
|
||||
label: 'Blog',
|
||||
items: [
|
||||
{ label: 'Publish Selected', action: 'publishSelected', accelerator: 'CmdOrCtrl+Shift+P' },
|
||||
{ label: 'menu.item.publishSelected', action: 'publishSelected', accelerator: 'CmdOrCtrl+Shift+P' },
|
||||
{ label: '', action: 'blog-separator-1', separator: true },
|
||||
{ label: 'Preview Post', action: 'previewPost', id: APP_MENU_ITEM_IDS.previewPost, enabled: false, accelerator: 'CmdOrCtrl+Shift+V' },
|
||||
{ label: 'menu.item.previewPost', action: 'previewPost', id: APP_MENU_ITEM_IDS.previewPost, enabled: false, accelerator: 'CmdOrCtrl+Shift+V' },
|
||||
{ label: '', action: 'blog-separator-2', separator: true },
|
||||
{ label: 'Rebuild Database from Files', action: 'rebuildDatabase' },
|
||||
{ label: 'Reindex Search Text', action: 'reindexText' },
|
||||
{ label: 'menu.item.rebuildDatabase', action: 'rebuildDatabase' },
|
||||
{ label: 'menu.item.reindexText', action: 'reindexText' },
|
||||
{ label: '', action: 'blog-separator-3', separator: true },
|
||||
{ label: 'Metadata Diff Tool', action: 'metadataDiff' },
|
||||
{ label: 'Render Site', action: 'generateSitemap', accelerator: 'CmdOrCtrl+R' },
|
||||
{ label: 'menu.item.metadataDiff', action: 'metadataDiff' },
|
||||
{ label: 'menu.item.generateSitemap', action: 'generateSitemap', accelerator: 'CmdOrCtrl+R' },
|
||||
],
|
||||
},
|
||||
{
|
||||
label: 'Help',
|
||||
items: [
|
||||
{ label: 'About Blogging Desktop Server', action: 'about' },
|
||||
{ label: 'Open Documentation', action: 'openDocumentation' },
|
||||
{ label: 'menu.item.about', action: 'about' },
|
||||
{ label: 'menu.item.openDocumentation', action: 'openDocumentation' },
|
||||
{ label: '', action: 'help-separator-1', separator: true },
|
||||
{ label: 'View on GitHub', action: 'viewOnGitHub' },
|
||||
{ label: 'Report Issue', action: 'reportIssue' },
|
||||
{ label: 'menu.item.viewOnGitHub', action: 'viewOnGitHub' },
|
||||
{ label: 'menu.item.reportIssue', action: 'reportIssue' },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user