Skip to content

Commit 073f4ef

Browse files
committed
fix: translation for platform
1 parent 5312f50 commit 073f4ef

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

resources/locales/zh-CN.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"Copy Command#!terminal.11": "复制命令",
1313
"Cut#!menu.cut": "剪切",
1414
"Copy#!menu.copy": "复制",
15+
"Copy#!menu.copy.darwin": "拷贝",
1516
"Paste#!menu.paste": "粘贴",
1617
"Look Up \"${0}\"#!menu.lookup": "查询“${0}”",
1718
"Clear#!menu.clear": "清除",

src/renderer/utils/frame.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ export function createContextMenu() {
3737
}
3838
const editingItems: MenuItem[] = [
3939
{
40-
label: 'Copy#!menu.copy',
41-
accelerator: 'CmdOrCtrl+C',
40+
label: process.platform === 'darwin'
41+
? 'Copy#!menu.copy.darwin'
42+
: 'Copy#!menu.copy',
4243
role: 'copy',
4344
},
4445
{

0 commit comments

Comments
 (0)