Skip to content

Commit 8c16544

Browse files
authored
chore: update chinese localization (#213)
1 parent 0db6756 commit 8c16544

16 files changed

Lines changed: 103 additions & 47 deletions

File tree

src/main/services/i18n/locales/en/menu.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@
6565
"copy": "Copy Snippet to Clipboard",
6666
"format": "Format",
6767
"previewCode": "Preview Code",
68-
"previewScreenshot": "Preview Screenshot"
68+
"previewScreenshot": "Preview Screenshot",
69+
"previewMarkdown": "Preview Markdown"
6970
},
7071
"markdown": {
7172
"label": "Markdown",

src/main/services/i18n/locales/zh_CN/common.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
"button": {
33
"moveStorage": "更改存储路径",
44
"openStorage": "打开现有存储",
5+
"newStorage": "创建新的存储",
56
"fromMassCodeV1": "来自 massCode v1.0",
67
"fromSnippetsLab": "来自 SnippetsLab",
78
"confirm": "确认",
89
"cancel": "取消",
9-
"update": ["前往 GitHub", "OK"]
10+
"update": ["前往 GitHub", "OK"],
11+
"ok": "OK"
1012
},
1113
"newFolder": "新建文件夹",
1214
"newSnippet": "新建代码片段",
@@ -45,7 +47,7 @@
4547
"allSnippets": "所有的",
4648
"trash": "回收站",
4749
"untitled": "未命名文件夹",
48-
"folders": "自定义文件夹",
50+
"folders": "文件夹",
4951
"library": "",
5052
"tags": "标签"
5153
},
@@ -54,5 +56,7 @@
5456
"restartApp": "重启 massCode",
5557
"updateAvailable": "存在新版本",
5658
"hide": "隐藏",
57-
"show": "显示"
58-
}
59+
"show": "显示",
60+
"collapse-all": "全部展开",
61+
"expand-all": "全部折叠"
62+
}
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
22
"deleteConfirm": "你是否确定要永久删除 {{name}} ?",
3-
"deleteConfirmMultipleSnippets": "你是否确定要永久删除 {{count}} 个选中的代码片段?",
3+
"deleteConfirmMultipleSnippets": "你是否确定要永久删除 {{count}} 个选中的代码片段",
44
"noUndo": "本操作将无法撤销。",
55
"allSnippetsMoveToTrash": "本文件夹内的所有代码片段将被移动至回收站。",
66
"deleteTag": "将会从所有拥有该标签的代码片段中删除该标签。",
77
"emptyTrash": "你是否确定要永久删除回收站内的所有代码片段?",
88
"migrateConfirm": [
9-
"你是否确定要从 {{name}} 迁移数据?",
9+
"你是否确定要从 {{name}} 迁移数据",
1010
"在迁移过程中,当前的库将被覆盖。"
11-
]
12-
}
11+
],
12+
"createDb": "请选择其他文件夹"
13+
}

src/main/services/i18n/locales/zh_CN/menu.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@
3232
"payPal": "通过 PayPal 捐赠"
3333
},
3434
"twitter": "访问作者 Twitter",
35-
"devTools": "开发者工具"
35+
"devTools": "开发者工具",
36+
"links": {
37+
"snippets": "代码片段分享站"
38+
}
3639
},
3740
"file": {
3841
"label": "文件",
@@ -62,11 +65,12 @@
6265
"copy": "将代码片段复制至剪贴板",
6366
"format": "格式化",
6467
"previewCode": "预览 HTML 和 CSS",
65-
"previewScreenshot": "生成并预览代码截图"
68+
"previewScreenshot": "生成并预览代码截图",
69+
"previewMarkdown": "预览"
6670
},
6771
"markdown": {
6872
"label": "Markdown",
69-
"presentationMode": "Presentation Mode",
70-
"preview": "Preview"
73+
"presentationMode": "演示模式",
74+
"preview": "预览模式"
7175
}
7276
}

src/main/services/i18n/locales/zh_CN/preferences.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"showInvisibles": "显示空格与换行符",
1919
"highlightLine": "高亮光标所在行整行",
2020
"highlightGutter": "高亮光标所在行行号",
21+
"matchBrackets": "括号匹配",
2122
"prettier": {
2223
"label": "Prettier",
2324
"trailingComma": {
@@ -40,5 +41,9 @@
4041
},
4142
"language": {
4243
"label": "语言"
44+
},
45+
"markdown": {
46+
"label": "Markdown",
47+
"codeRenderer": "代码块渲染器"
4348
}
44-
}
49+
}

src/main/services/i18n/locales/zh_CN/special.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,20 @@
1010
"某些片段可能会因为其语言暂时不被 massCode 而被识别为纯文本。"
1111
]
1212
},
13-
"htmlCssPreview": "添加带有 HTML 和 CSS 语言的片段来查看预览结果。"
13+
"htmlCssPreview": "添加带有 HTML 和 CSS 语言的片段来查看预览结果。",
14+
"codeBlockRenderer": [
15+
"当使用 Codemirror 渲染时, 则必须为代码块设置对应的",
16+
"编程语言"
17+
]
1418
},
1519
"success": {
1620
"migrate": "数据库迁移成功。"
1721
},
1822
"error": {
23+
"folderContainDb": "文件夹内已存在 \"db.json\"",
1924
"folderNotContainDb": "文件夹内不存在 \"db.json\""
2025
},
2126
"unsponsored": "未赞助的",
2227
"supportMessage": "Hi,我是 Anton 👋<br><br>\n感谢你使用 massCode 。如果你觉得这个应用很有帮助,请{{-tagStart}} 捐赠 {{-tagEnd}}。这将激励我继续开发这个项目。",
23-
"snippetsShowcase": "代码片段展示区"
24-
}
28+
"snippetsShowcase": "代码片段分享站"
29+
}

src/main/services/i18n/locales/zh_HK/common.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"fromSnippetsLab": "來自 SnippetsLab",
77
"confirm": "確認",
88
"cancel": "取消",
9-
"update": ["前往 GitHub", "OK"]
9+
"update": ["前往 GitHub", "OK"],
10+
"ok": "OK"
1011
},
1112
"newFolder": "新建文件夾",
1213
"newSnippet": "新建代碼片段",
@@ -45,7 +46,7 @@
4546
"allSnippets": "所有的",
4647
"trash": "回收站",
4748
"untitled": "未命名文件夾",
48-
"folders": "自定義文件夾",
49+
"folders": "文件夾",
4950
"library": "",
5051
"tags": "標籤"
5152
},
@@ -54,5 +55,7 @@
5455
"restartApp": "重啓 massCode",
5556
"updateAvailable": "存在新版本",
5657
"hide": "隱藏",
57-
"show": "顯示"
58-
}
58+
"show": "顯示",
59+
"collapse-all": "全部展開",
60+
"expand-all": "全部摺疊"
61+
}
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
22
"deleteConfirm": "你是否確定要永久刪除 {{name}} ?",
3-
"deleteConfirmMultipleSnippets": "你是否確定要永久刪除 {{count}} 個選中的代碼片段?",
3+
"deleteConfirmMultipleSnippets": "你是否確定要永久刪除 {{count}} 個選中的代碼片段",
44
"noUndo": "本操作將無法撤銷。",
55
"allSnippetsMoveToTrash": "本文件夾內的所有代碼片段將被移動至回收站。",
66
"deleteTag": "將會從所有擁有該標籤的代碼片段中刪除該標籤。",
77
"emptyTrash": "你是否確定要永久刪除回收站內的所有代碼片段?",
88
"migrateConfirm": [
9-
"你是否確定要從 {{name}} 遷移數據?",
9+
"你是否確定要從 {{name}} 遷移數據",
1010
"在遷移過程中,當前的庫將被覆蓋。"
11-
]
12-
}
11+
],
12+
"createDb": "請選擇其他文件夾"
13+
}

src/main/services/i18n/locales/zh_HK/menu.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@
3232
"payPal": "通過 PayPal 捐贈"
3333
},
3434
"twitter": "訪問作者 Twitter",
35-
"devTools": "開發者工具"
35+
"devTools": "開發者工具",
36+
"links": {
37+
"snippets": "代碼片段分享站"
38+
}
3639
},
3740
"file": {
3841
"label": "文件",
@@ -62,11 +65,12 @@
6265
"copy": "將代碼片段複製至剪貼板",
6366
"format": "格式化",
6467
"previewCode": "預覽 HTML 和 CSS",
65-
"previewScreenshot": "生成並預覽代碼截圖"
68+
"previewScreenshot": "生成並預覽代碼截圖",
69+
"previewMarkdown": "預覽"
6670
},
6771
"markdown": {
6872
"label": "Markdown",
69-
"presentationMode": "Presentation Mode",
70-
"preview": "Preview"
73+
"presentationMode": "演示模式",
74+
"preview": "預覽模式"
7175
}
7276
}

src/main/services/i18n/locales/zh_HK/preferences.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"showInvisibles": "顯示空格與換行符",
1919
"highlightLine": "高亮光標所在行整行",
2020
"highlightGutter": "高亮光標所在行行號",
21+
"matchBrackets": "括號匹配",
2122
"prettier": {
2223
"label": "Prettier",
2324
"trailingComma": {
@@ -40,5 +41,9 @@
4041
},
4142
"language": {
4243
"label": "語言"
44+
},
45+
"markdown": {
46+
"label": "Markdown",
47+
"codeRenderer": "代碼塊渲染器"
4348
}
44-
}
49+
}

0 commit comments

Comments
 (0)