如何在Electron App中设置应用程序菜单语言?

时间:2017-10-12 05:59:46

标签: electron

my application

我的电子应用程序的语言是英语,但我的系统是中文。所以我发现应用程序菜单会显示一些中文。我怎么能解决这个问题?或者我怎样才能用英语设置语言。

{ label: 'Edit', submenu: [ { role: 'undo' }, { role: 'redo' }, { type: 'separator' }, { type: 'separator' }, { role: 'cut' }, { role: 'copy' }, { role: 'paste' }, { type: 'separator' }, { role: 'selectall' }, { type: 'separator' }, { label: 'Structure', submenu: [ { label: 'Balance Delimiter' }, { label: 'Re-Indent' }, { label: 'Shift Right', accelerator: 'CmdOrCtrl+]' }, { label: 'Shift Left', accelerator: 'CmdOrCtrl+[' }, { type: 'separator' }, { label: 'Move Line Up', accelerator: 'CmdOrCtrl+Alt+[' }, { label: 'Move Line Down', accelerator: 'CmdOrCtrl+Alt+]' }, { label: 'Comment/Uncomment', accelerator: 'CmdOrCtrl+/' }, { label: 'Add Documentation', accelerator: 'CmdOrCtrl+Alt+/' }, ] } ] }

0 个答案:

没有答案
相关问题