Browse Source

Fix indentation in menu template example

Kevin Sawicki 8 years ago
parent
commit
9eb521fb38

+ 5 - 4
docs-translations/jp/tutorial/desktop-environment-integration.md

@@ -92,10 +92,11 @@ const {app, Menu} = require('electron')
 const dockMenu = Menu.buildFromTemplate([
   {label: 'New Window', click () { console.log('New Window') }},
   {label: 'New Window with Settings',
-  submenu: [
-    {label: 'Basic'},
-    {label: 'Pro'}
-  ]},
+    submenu: [
+      {label: 'Basic'},
+      {label: 'Pro'}
+    ]
+  },
   {label: 'New Command...'}
 ])
 app.dock.setMenu(dockMenu)

+ 5 - 4
docs-translations/pt-BR/tutorial/desktop-environment-integration.md

@@ -72,10 +72,11 @@ const {app, Menu} = require('electron')
 const dockMenu = Menu.buildFromTemplate([
   {label: 'New Window', click () { console.log('New Window') }},
   {label: 'New Window with Settings',
-  submenu: [
-    {label: 'Basic'},
-    {label: 'Pro'}
-  ]},
+    submenu: [
+      {label: 'Basic'},
+      {label: 'Pro'}
+    ]
+  },
   {label: 'New Command...'}
 ])
 app.dock.setMenu(dockMenu)

+ 5 - 4
docs-translations/zh-CN/tutorial/desktop-environment-integration.md

@@ -82,10 +82,11 @@ const {app, Menu} = require('electron')
 const dockMenu = Menu.buildFromTemplate([
   {label: 'New Window', click () { console.log('New Window') }},
   {label: 'New Window with Settings',
-  submenu: [
-    {label: 'Basic'},
-    {label: 'Pro'}
-  ]},
+    submenu: [
+      {label: 'Basic'},
+      {label: 'Pro'}
+    ]
+  },
   {label: 'New Command...'}
 ])
 app.dock.setMenu(dockMenu)