From bb0d83da2b3d63a56860b2e704ba2d74a347c0e7 Mon Sep 17 00:00:00 2001
From: AuroraTea <1352685369@qq.com>
Date: Wed, 20 Jul 2022 23:14:33 +0800
Subject: [PATCH 1/7] feat: add Simplified Chinese
Added Simplified Chinese support, using two-letter locale code according to README.md. However, it should be noted that this will result in Traditional Chinese and even various regions of Simplified Chinese and Traditional Chinese not being represented. My suggestion is to use zh_CN and zh_TW and so on with regional abbreviations after the two-letter locale code to distinguish them.
---
src/main/services/i18n/locales/zh/common.json | 54 +++++++++++++++
src/main/services/i18n/locales/zh/dialog.json | 12 ++++
src/main/services/i18n/locales/zh/menu.json | 67 +++++++++++++++++++
.../services/i18n/locales/zh/preferences.json | 47 +++++++++++++
.../services/i18n/locales/zh/special.json | 24 +++++++
5 files changed, 204 insertions(+)
create mode 100644 src/main/services/i18n/locales/zh/common.json
create mode 100644 src/main/services/i18n/locales/zh/dialog.json
create mode 100644 src/main/services/i18n/locales/zh/menu.json
create mode 100644 src/main/services/i18n/locales/zh/preferences.json
create mode 100644 src/main/services/i18n/locales/zh/special.json
diff --git a/src/main/services/i18n/locales/zh/common.json b/src/main/services/i18n/locales/zh/common.json
new file mode 100644
index 00000000..f85ece8c
--- /dev/null
+++ b/src/main/services/i18n/locales/zh/common.json
@@ -0,0 +1,54 @@
+{
+ "button": {
+ "moveStorage": "移动存储位置",
+ "openStorage": "打开对应路径",
+ "fromMassCodeV1": "来自massCode v1.0",
+ "fromSnippetsLab": "来自SnippetsLab",
+ "confirm": "确认",
+ "cancel": "取消",
+ "update": ["前往 GitHub", "OK"]
+ },
+ "newFolder": "新建文件夹",
+ "newSnippet": "新建代码片段",
+ "newFragment": "新建子片段",
+ "addDescription": "添加描述",
+ "addToFavorites": "添加至收藏夹",
+ "addTag": "添加标签",
+ "rename": "重命名",
+ "duplicate": "复制",
+ "delete": "删除",
+ "deleteNow": "现在删除",
+ "defaultLanguage": "默认语言",
+ "removeFromFavorites": "从收藏夹移除",
+ "emptyTrash": "清空回收站",
+ "close": "关闭",
+ "folder": {
+ "untitled": "未命名文件夹",
+ "plural": "文件夹"
+ },
+ "snippet": {
+ "untitled": "未命名代码片段",
+ "plural": "代码片段",
+ "emptyName": "请输入该代码片段名称",
+ "selectedMultiple": "已选中{{count}}个代码片段",
+ "noSelected": "未选中任何代码片段"
+ },
+ "fragment": "子片段",
+ "search": "搜索",
+ "line": "行",
+ "column": "列",
+ "sidebar": {
+ "inbox": "收件箱",
+ "favorites": "收藏",
+ "allSnippets": "所有代码片段",
+ "trash": "回收站",
+ "untitled": "未命名文件夹",
+ "folders": "自定义文件夹",
+ "library": "库",
+ "tags": "标签"
+ },
+ "darkMode": "深色模式",
+ "background": "背景",
+ "restartApp": "重启massCode",
+ "updateAvailable": "存在新版本"
+}
\ No newline at end of file
diff --git a/src/main/services/i18n/locales/zh/dialog.json b/src/main/services/i18n/locales/zh/dialog.json
new file mode 100644
index 00000000..fc761ea8
--- /dev/null
+++ b/src/main/services/i18n/locales/zh/dialog.json
@@ -0,0 +1,12 @@
+{
+ "deleteConfirm": "你是否确定要永久删除{{name}}?",
+ "deleteConfirmMultipleSnippets": "你是否确定要永久删除{{count}}个选中的代码片段?",
+ "noUndo": "你将无法恢复此次操作造成的结果。",
+ "allSnippetsMoveToTrash": "本文件夹内的所有代码片段将被移动至回收站。",
+ "deleteTag": "这也将导致所有拥有该标签的代码片段的失去该标签。",
+ "emptyTrash": "你是否确定要永久删除回收站内的所有代码片段?",
+ "migrateConfirm": [
+ "你是否确定要从{{name}}迁徙?",
+ "在迁移过程中,当前的库将被覆盖。"
+ ]
+}
\ No newline at end of file
diff --git a/src/main/services/i18n/locales/zh/menu.json b/src/main/services/i18n/locales/zh/menu.json
new file mode 100644
index 00000000..14ca7b51
--- /dev/null
+++ b/src/main/services/i18n/locales/zh/menu.json
@@ -0,0 +1,67 @@
+{
+ "app": {
+ "label": "massCode",
+ "preferences": "首选项",
+ "update": {
+ "label": "检查更新…",
+ "message": "新版本{{newVersion}}现在已经可以下载。\n你现在的版本是{{oldVersion}}。",
+ "button": ["前往 GitHub", "OK"],
+ "noUpdate": "现在没有可用的更新。"
+ },
+ "quit": "退出massCode",
+ "about": "关于massCode",
+ "hide": "最小化massCode",
+ "hideOther": "最小化其它窗口",
+ "showAll": "显示所有窗口"
+ },
+ "help": {
+ "label": "帮助",
+ "website": "访问官网",
+ "documentation": "访问文档",
+ "viewInGitHub": "访问GitHub",
+ "changeLog": "更新日志",
+ "reportIssue": "提交Issue",
+ "giveStar": "给个Star",
+ "extension": {
+ "vscode": "VS Code 插件",
+ "raycast": "Raycast 插件",
+ "alfred": "Alfred 插件"
+ },
+ "donate": {
+ "openCollective": "通过Open Collective捐赠",
+ "payPal": "通过PayPal捐赠"
+ },
+ "twitter": "访问作者Twitter",
+ "devTools": "切换至开发者工具"
+ },
+ "file": {
+ "label": "文件",
+ "find": "查找"
+ },
+ "view": {
+ "label": "查看",
+ "sortBy": {
+ "label": "排序片段",
+ "dateModified": "根据修改日期",
+ "dateCreated": "根据创建日期",
+ "name": "根据片段名"
+ }
+ },
+ "edit": {
+ "label": "编辑",
+ "undo": "撤销",
+ "redo": "恢复",
+ "cut": "剪切",
+ "copy": "复制",
+ "paste": "粘贴",
+ "delete": "删除",
+ "selectAll": "全选"
+ },
+ "editor": {
+ "label": "编辑器",
+ "copy": "将代码片段复制至剪贴板",
+ "format": "格式化",
+ "previewMarkdown": "预览Markdown",
+ "previewCode": "预览HTML和CSS"
+ }
+}
\ No newline at end of file
diff --git a/src/main/services/i18n/locales/zh/preferences.json b/src/main/services/i18n/locales/zh/preferences.json
new file mode 100644
index 00000000..c6268c64
--- /dev/null
+++ b/src/main/services/i18n/locales/zh/preferences.json
@@ -0,0 +1,47 @@
+{
+ "title": "首选项",
+ "storage": {
+ "label": "存储",
+ "migrate": "迁徙",
+ "count": "计数"
+ },
+ "editor": {
+ "label": "编辑器",
+ "fontSize": "字体大小",
+ "fontFamily": "字体系列",
+ "wrap": {
+ "label": "自动换行",
+ "wordWrap": "开启",
+ "off": "关闭"
+ },
+ "tabSize": "Tab空格数",
+ "showInvisibles": "显示缩进参考线",
+ "highlightLine": "高亮光标所在行整行",
+ "highlightGutter": "高亮光标所在行行号",
+ "prettier": {
+ "label": "Prettier",
+ "trailingComma": {
+ "label": "尾后逗号",
+ "none": "None",
+ "all": "All",
+ "es6": "ES6"
+ },
+ "semi": "句尾添加分号",
+ "singleQuote": "使用单引号代替双引号"
+ }
+ },
+ "appearance": {
+ "label": "外观",
+ "theme": {
+ "label": "主题",
+ "light": "浅色",
+ "dark": "深色"
+ }
+ },
+ "language": {
+ "label": "Language",
+ "en": "English",
+ "ru": "Русский",
+ "zh": "简体中文"
+ }
+}
\ No newline at end of file
diff --git a/src/main/services/i18n/locales/zh/special.json b/src/main/services/i18n/locales/zh/special.json
new file mode 100644
index 00000000..ffb8ff16
--- /dev/null
+++ b/src/main/services/i18n/locales/zh/special.json
@@ -0,0 +1,24 @@
+{
+ "description": {
+ "storage": "要使用iCloud Drive、Google Drive和Dropbox等同步服务,只需将存储路径设置为相应的同步文件夹即可。",
+ "migrate": {
+ "1": "从massCode v1.0迁移:选择包含数据库文件的文件夹。",
+ "2": "从SnippetsLab迁移:选择JSON文件。",
+ "3": [
+ "从SnippetsLab迁移将会遇到一些局限:",
+ "所有的文件夹将是第一层,因为JSON文件(低于v2.1)无法表示嵌套的文件夹。",
+ "某些片段可能会因为其语言暂时不被massCode而被识别为纯文本。"
+ ]
+ },
+ "htmlCssPreview": "添加带有HTML和CSS语言的片段来查看预览结果。"
+ },
+ "success": {
+ "migrate": "数据库迁徙成功。"
+ },
+ "error": {
+ "folderNotContainDb": "文件夹内不存在 \"db.json\"."
+ },
+ "unsponsored": "未赞助的",
+ "supportMessage": "Hi,我是 Anton 👋
\n感谢你使用massCode。如果你觉得这个应用很有帮助,请{{-tagStart}} 捐赠 {{-tagEnd}}。这将激励我继续开发这个项目。",
+ "snippetsShowcase": "代码片段展示区"
+}
\ No newline at end of file
From a2de82c377a30ebaac3b1c93321fd304f9378a32 Mon Sep 17 00:00:00 2001
From: AuroraTea <1352685369@qq.com>
Date: Wed, 20 Jul 2022 23:16:42 +0800
Subject: [PATCH 2/7] fix: remove trailing comma in \en\menu.json
---
src/main/services/i18n/locales/en/menu.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/services/i18n/locales/en/menu.json b/src/main/services/i18n/locales/en/menu.json
index e43c71bb..9ee2af4a 100644
--- a/src/main/services/i18n/locales/en/menu.json
+++ b/src/main/services/i18n/locales/en/menu.json
@@ -62,6 +62,6 @@
"copy": "Copy Snippet to Clipboard",
"format": "Format",
"previewMarkdown": "Preview Markdown",
- "previewCode": "Preview Code",
+ "previewCode": "Preview Code"
}
}
\ No newline at end of file
From 8839437141548d8a019a3478231692cd15d2c643 Mon Sep 17 00:00:00 2001
From: AuroraTea <1352685369@qq.com>
Date: Thu, 21 Jul 2022 17:47:43 +0800
Subject: [PATCH 3/7] refactor(i18n): Optimize Chinese translation
With efforts of @antonreshetov @AuroraTea @sangyuxiaowu @EGQM @moziar
---
src/main/services/i18n/locales/zh/common.json | 24 +++++++--------
src/main/services/i18n/locales/zh/dialog.json | 10 +++----
src/main/services/i18n/locales/zh/menu.json | 30 +++++++++----------
.../services/i18n/locales/zh/preferences.json | 10 +++----
.../services/i18n/locales/zh/special.json | 16 +++++-----
5 files changed, 45 insertions(+), 45 deletions(-)
diff --git a/src/main/services/i18n/locales/zh/common.json b/src/main/services/i18n/locales/zh/common.json
index f85ece8c..0d8950bc 100644
--- a/src/main/services/i18n/locales/zh/common.json
+++ b/src/main/services/i18n/locales/zh/common.json
@@ -1,9 +1,9 @@
{
"button": {
- "moveStorage": "移动存储位置",
- "openStorage": "打开对应路径",
- "fromMassCodeV1": "来自massCode v1.0",
- "fromSnippetsLab": "来自SnippetsLab",
+ "moveStorage": "更改存储路径",
+ "openStorage": "打开现有存储",
+ "fromMassCodeV1": "来自 massCode v1.0",
+ "fromSnippetsLab": "来自 SnippetsLab",
"confirm": "确认",
"cancel": "取消",
"update": ["前往 GitHub", "OK"]
@@ -15,9 +15,9 @@
"addToFavorites": "添加至收藏夹",
"addTag": "添加标签",
"rename": "重命名",
- "duplicate": "复制",
+ "duplicate": "创建副本",
"delete": "删除",
- "deleteNow": "现在删除",
+ "deleteNow": "立即删除",
"defaultLanguage": "默认语言",
"removeFromFavorites": "从收藏夹移除",
"emptyTrash": "清空回收站",
@@ -30,17 +30,17 @@
"untitled": "未命名代码片段",
"plural": "代码片段",
"emptyName": "请输入该代码片段名称",
- "selectedMultiple": "已选中{{count}}个代码片段",
- "noSelected": "未选中任何代码片段"
+ "selectedMultiple": "已选中 {{count}} 个代码片段",
+ "noSelected": "未选中代码片段"
},
"fragment": "子片段",
"search": "搜索",
"line": "行",
"column": "列",
"sidebar": {
- "inbox": "收件箱",
- "favorites": "收藏",
- "allSnippets": "所有代码片段",
+ "inbox": "暂存区",
+ "favorites": "收藏夹",
+ "allSnippets": "所有的",
"trash": "回收站",
"untitled": "未命名文件夹",
"folders": "自定义文件夹",
@@ -49,6 +49,6 @@
},
"darkMode": "深色模式",
"background": "背景",
- "restartApp": "重启massCode",
+ "restartApp": "重启 massCode",
"updateAvailable": "存在新版本"
}
\ No newline at end of file
diff --git a/src/main/services/i18n/locales/zh/dialog.json b/src/main/services/i18n/locales/zh/dialog.json
index fc761ea8..5183db08 100644
--- a/src/main/services/i18n/locales/zh/dialog.json
+++ b/src/main/services/i18n/locales/zh/dialog.json
@@ -1,12 +1,12 @@
{
- "deleteConfirm": "你是否确定要永久删除{{name}}?",
- "deleteConfirmMultipleSnippets": "你是否确定要永久删除{{count}}个选中的代码片段?",
- "noUndo": "你将无法恢复此次操作造成的结果。",
+ "deleteConfirm": "你是否确定要永久删除 {{name}} ?",
+ "deleteConfirmMultipleSnippets": "你是否确定要永久删除 {{count}} 个选中的代码片段?",
+ "noUndo": "本操作将无法撤销。",
"allSnippetsMoveToTrash": "本文件夹内的所有代码片段将被移动至回收站。",
- "deleteTag": "这也将导致所有拥有该标签的代码片段的失去该标签。",
+ "deleteTag": "将会从所有拥有该标签的代码片段中删除该标签。",
"emptyTrash": "你是否确定要永久删除回收站内的所有代码片段?",
"migrateConfirm": [
- "你是否确定要从{{name}}迁徙?",
+ "你是否确定要从 {{name}} 迁移数据?",
"在迁移过程中,当前的库将被覆盖。"
]
}
\ No newline at end of file
diff --git a/src/main/services/i18n/locales/zh/menu.json b/src/main/services/i18n/locales/zh/menu.json
index 14ca7b51..e8a021b7 100644
--- a/src/main/services/i18n/locales/zh/menu.json
+++ b/src/main/services/i18n/locales/zh/menu.json
@@ -4,13 +4,13 @@
"preferences": "首选项",
"update": {
"label": "检查更新…",
- "message": "新版本{{newVersion}}现在已经可以下载。\n你现在的版本是{{oldVersion}}。",
+ "message": "新版本 {{newVersion}} 现在已经可以下载。\n现在的版本是 {{oldVersion}} 。",
"button": ["前往 GitHub", "OK"],
- "noUpdate": "现在没有可用的更新。"
+ "noUpdate": "当前没有可用的更新。"
},
- "quit": "退出massCode",
- "about": "关于massCode",
- "hide": "最小化massCode",
+ "quit": "退出 massCode",
+ "about": "关于 massCode",
+ "hide": "最小化 massCode",
"hideOther": "最小化其它窗口",
"showAll": "显示所有窗口"
},
@@ -18,21 +18,21 @@
"label": "帮助",
"website": "访问官网",
"documentation": "访问文档",
- "viewInGitHub": "访问GitHub",
+ "viewInGitHub": "访问 GitHub",
"changeLog": "更新日志",
- "reportIssue": "提交Issue",
- "giveStar": "给个Star",
+ "reportIssue": "提交 Issue",
+ "giveStar": "给个 Star",
"extension": {
"vscode": "VS Code 插件",
"raycast": "Raycast 插件",
"alfred": "Alfred 插件"
},
"donate": {
- "openCollective": "通过Open Collective捐赠",
- "payPal": "通过PayPal捐赠"
+ "openCollective": "通过 Open Collective 捐赠",
+ "payPal": "通过 PayPal 捐赠"
},
- "twitter": "访问作者Twitter",
- "devTools": "切换至开发者工具"
+ "twitter": "访问作者 Twitter",
+ "devTools": "开发者工具"
},
"file": {
"label": "文件",
@@ -41,7 +41,7 @@
"view": {
"label": "查看",
"sortBy": {
- "label": "排序片段",
+ "label": "排序方式",
"dateModified": "根据修改日期",
"dateCreated": "根据创建日期",
"name": "根据片段名"
@@ -61,7 +61,7 @@
"label": "编辑器",
"copy": "将代码片段复制至剪贴板",
"format": "格式化",
- "previewMarkdown": "预览Markdown",
- "previewCode": "预览HTML和CSS"
+ "previewMarkdown": "预览 Markdown",
+ "previewCode": "预览 HTML 和 CSS"
}
}
\ No newline at end of file
diff --git a/src/main/services/i18n/locales/zh/preferences.json b/src/main/services/i18n/locales/zh/preferences.json
index c6268c64..4c839736 100644
--- a/src/main/services/i18n/locales/zh/preferences.json
+++ b/src/main/services/i18n/locales/zh/preferences.json
@@ -1,9 +1,9 @@
{
"title": "首选项",
"storage": {
- "label": "存储",
- "migrate": "迁徙",
- "count": "计数"
+ "label": "存储路径",
+ "migrate": "迁移",
+ "count": "总计"
},
"editor": {
"label": "编辑器",
@@ -14,8 +14,8 @@
"wordWrap": "开启",
"off": "关闭"
},
- "tabSize": "Tab空格数",
- "showInvisibles": "显示缩进参考线",
+ "tabSize": "Tab 空格数",
+ "showInvisibles": "显示空格与换行符",
"highlightLine": "高亮光标所在行整行",
"highlightGutter": "高亮光标所在行行号",
"prettier": {
diff --git a/src/main/services/i18n/locales/zh/special.json b/src/main/services/i18n/locales/zh/special.json
index ffb8ff16..477a9f55 100644
--- a/src/main/services/i18n/locales/zh/special.json
+++ b/src/main/services/i18n/locales/zh/special.json
@@ -1,24 +1,24 @@
{
"description": {
- "storage": "要使用iCloud Drive、Google Drive和Dropbox等同步服务,只需将存储路径设置为相应的同步文件夹即可。",
+ "storage": "要使用 iCloud Drive、Google Drive 和 Dropbox 等同步服务,只需将存储路径设置为相应的同步文件夹即可。",
"migrate": {
- "1": "从massCode v1.0迁移:选择包含数据库文件的文件夹。",
- "2": "从SnippetsLab迁移:选择JSON文件。",
+ "1": "从 massCode v1.0 迁移:选择包含数据库文件的文件夹。",
+ "2": "从 SnippetsLab 迁移:选择 JSON 文件。",
"3": [
"从SnippetsLab迁移将会遇到一些局限:",
- "所有的文件夹将是第一层,因为JSON文件(低于v2.1)无法表示嵌套的文件夹。",
- "某些片段可能会因为其语言暂时不被massCode而被识别为纯文本。"
+ "所有的文件夹将是第一层,因为 JSON 文件(低于 v2.1)无法表示嵌套的文件夹。",
+ "某些片段可能会因为其语言暂时不被 massCode 而被识别为纯文本。"
]
},
- "htmlCssPreview": "添加带有HTML和CSS语言的片段来查看预览结果。"
+ "htmlCssPreview": "添加带有 HTML 和 CSS 语言的片段来查看预览结果。"
},
"success": {
- "migrate": "数据库迁徙成功。"
+ "migrate": "数据库迁移成功。"
},
"error": {
"folderNotContainDb": "文件夹内不存在 \"db.json\"."
},
"unsponsored": "未赞助的",
- "supportMessage": "Hi,我是 Anton 👋
\n感谢你使用massCode。如果你觉得这个应用很有帮助,请{{-tagStart}} 捐赠 {{-tagEnd}}。这将激励我继续开发这个项目。",
+ "supportMessage": "Hi,我是 Anton 👋
\n感谢你使用 massCode 。如果你觉得这个应用很有帮助,请{{-tagStart}} 捐赠 {{-tagEnd}}。这将激励我继续开发这个项目。",
"snippetsShowcase": "代码片段展示区"
}
\ No newline at end of file
From 6c42e238cf2c7211e17673f0f213cc8350861f14 Mon Sep 17 00:00:00 2001
From: AuroraTea <1352685369@qq.com>
Date: Thu, 21 Jul 2022 17:51:05 +0800
Subject: [PATCH 4/7] refactor(i18n): Add regional abbr for more lang
---
src/main/services/i18n/locales/{zh => zh_CN}/common.json | 0
src/main/services/i18n/locales/{zh => zh_CN}/dialog.json | 0
src/main/services/i18n/locales/{zh => zh_CN}/menu.json | 0
src/main/services/i18n/locales/{zh => zh_CN}/preferences.json | 2 +-
src/main/services/i18n/locales/{zh => zh_CN}/special.json | 0
5 files changed, 1 insertion(+), 1 deletion(-)
rename src/main/services/i18n/locales/{zh => zh_CN}/common.json (100%)
rename src/main/services/i18n/locales/{zh => zh_CN}/dialog.json (100%)
rename src/main/services/i18n/locales/{zh => zh_CN}/menu.json (100%)
rename src/main/services/i18n/locales/{zh => zh_CN}/preferences.json (97%)
rename src/main/services/i18n/locales/{zh => zh_CN}/special.json (100%)
diff --git a/src/main/services/i18n/locales/zh/common.json b/src/main/services/i18n/locales/zh_CN/common.json
similarity index 100%
rename from src/main/services/i18n/locales/zh/common.json
rename to src/main/services/i18n/locales/zh_CN/common.json
diff --git a/src/main/services/i18n/locales/zh/dialog.json b/src/main/services/i18n/locales/zh_CN/dialog.json
similarity index 100%
rename from src/main/services/i18n/locales/zh/dialog.json
rename to src/main/services/i18n/locales/zh_CN/dialog.json
diff --git a/src/main/services/i18n/locales/zh/menu.json b/src/main/services/i18n/locales/zh_CN/menu.json
similarity index 100%
rename from src/main/services/i18n/locales/zh/menu.json
rename to src/main/services/i18n/locales/zh_CN/menu.json
diff --git a/src/main/services/i18n/locales/zh/preferences.json b/src/main/services/i18n/locales/zh_CN/preferences.json
similarity index 97%
rename from src/main/services/i18n/locales/zh/preferences.json
rename to src/main/services/i18n/locales/zh_CN/preferences.json
index 4c839736..85870193 100644
--- a/src/main/services/i18n/locales/zh/preferences.json
+++ b/src/main/services/i18n/locales/zh_CN/preferences.json
@@ -42,6 +42,6 @@
"label": "Language",
"en": "English",
"ru": "Русский",
- "zh": "简体中文"
+ "zh_CN": "简体中文"
}
}
\ No newline at end of file
diff --git a/src/main/services/i18n/locales/zh/special.json b/src/main/services/i18n/locales/zh_CN/special.json
similarity index 100%
rename from src/main/services/i18n/locales/zh/special.json
rename to src/main/services/i18n/locales/zh_CN/special.json
From c17625f431f8dee0b6c48eaff1959a639ec4d1c0 Mon Sep 17 00:00:00 2001
From: AuroraTea <1352685369@qq.com>
Date: Thu, 21 Jul 2022 18:28:07 +0800
Subject: [PATCH 5/7] refactor(i18n): Add zh_CN for other lang
---
src/main/services/i18n/locales/en/preferences.json | 3 ++-
src/main/services/i18n/locales/ru/preferences.json | 3 ++-
src/main/services/i18n/locales/zh_CN/preferences.json | 2 +-
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/main/services/i18n/locales/en/preferences.json b/src/main/services/i18n/locales/en/preferences.json
index 0e53c639..2a283b46 100644
--- a/src/main/services/i18n/locales/en/preferences.json
+++ b/src/main/services/i18n/locales/en/preferences.json
@@ -41,6 +41,7 @@
"language": {
"label": "Language",
"en": "English",
- "ru": "Русский"
+ "ru": "Русский",
+ "zh_CN": "简体中文"
}
}
\ No newline at end of file
diff --git a/src/main/services/i18n/locales/ru/preferences.json b/src/main/services/i18n/locales/ru/preferences.json
index f5e254e0..bceb3fe7 100644
--- a/src/main/services/i18n/locales/ru/preferences.json
+++ b/src/main/services/i18n/locales/ru/preferences.json
@@ -41,6 +41,7 @@
"language": {
"label": "Язык",
"en": "English",
- "ru": "Русский"
+ "ru": "Русский",
+ "zh_CN": "简体中文"
}
}
\ No newline at end of file
diff --git a/src/main/services/i18n/locales/zh_CN/preferences.json b/src/main/services/i18n/locales/zh_CN/preferences.json
index 85870193..b938bb1d 100644
--- a/src/main/services/i18n/locales/zh_CN/preferences.json
+++ b/src/main/services/i18n/locales/zh_CN/preferences.json
@@ -39,7 +39,7 @@
}
},
"language": {
- "label": "Language",
+ "label": "语言",
"en": "English",
"ru": "Русский",
"zh_CN": "简体中文"
From ed47b23ffb6f1c72b1b014d620577431eb72ea52 Mon Sep 17 00:00:00 2001
From: AuroraTea <1352685369@qq.com>
Date: Thu, 21 Jul 2022 18:43:34 +0800
Subject: [PATCH 6/7] chore: update translation of Simplified Chinese
---
src/main/services/i18n/locales/en/common.json | 4 +++-
src/main/services/i18n/locales/en/menu.json | 3 ++-
src/main/services/i18n/locales/ru/common.json | 4 +++-
src/main/services/i18n/locales/ru/menu.json | 3 ++-
src/main/services/i18n/locales/zh_CN/common.json | 4 +++-
src/main/services/i18n/locales/zh_CN/menu.json | 3 ++-
6 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/src/main/services/i18n/locales/en/common.json b/src/main/services/i18n/locales/en/common.json
index 0de458ca..1ec24573 100644
--- a/src/main/services/i18n/locales/en/common.json
+++ b/src/main/services/i18n/locales/en/common.json
@@ -50,5 +50,7 @@
"darkMode": "Dark Mode",
"background": "Background",
"restartApp": "Restart massCode",
- "updateAvailable": "Update Available"
+ "updateAvailable": "Update Available",
+ "hide": "Hide",
+ "show": "Show"
}
\ No newline at end of file
diff --git a/src/main/services/i18n/locales/en/menu.json b/src/main/services/i18n/locales/en/menu.json
index 9ee2af4a..b7a6daa4 100644
--- a/src/main/services/i18n/locales/en/menu.json
+++ b/src/main/services/i18n/locales/en/menu.json
@@ -62,6 +62,7 @@
"copy": "Copy Snippet to Clipboard",
"format": "Format",
"previewMarkdown": "Preview Markdown",
- "previewCode": "Preview Code"
+ "previewCode": "Preview Code",
+ "previewScreenshot": "Preview Screenshot"
}
}
\ No newline at end of file
diff --git a/src/main/services/i18n/locales/ru/common.json b/src/main/services/i18n/locales/ru/common.json
index aaea5935..e12d1d80 100644
--- a/src/main/services/i18n/locales/ru/common.json
+++ b/src/main/services/i18n/locales/ru/common.json
@@ -49,5 +49,7 @@
"darkMode": "Темный режим",
"background": "Фон",
"restartApp": "Перезагрузить massCode",
- "updateAvailable": "Доступно обновление"
+ "updateAvailable": "Доступно обновление",
+ "hide": "Hide",
+ "show": "Show"
}
\ No newline at end of file
diff --git a/src/main/services/i18n/locales/ru/menu.json b/src/main/services/i18n/locales/ru/menu.json
index 9c7a5296..e3464b31 100644
--- a/src/main/services/i18n/locales/ru/menu.json
+++ b/src/main/services/i18n/locales/ru/menu.json
@@ -62,6 +62,7 @@
"copy": "Скопировать сниппет в буфер",
"format": "Форматировать",
"previewMarkdown": "Просмотр Markdown",
- "previewCode": "Просмотр результата HTML/CSS"
+ "previewCode": "Просмотр результата HTML/CSS",
+ "previewScreenshot": "Просмотр скриншота"
}
}
\ No newline at end of file
diff --git a/src/main/services/i18n/locales/zh_CN/common.json b/src/main/services/i18n/locales/zh_CN/common.json
index 0d8950bc..ca602e13 100644
--- a/src/main/services/i18n/locales/zh_CN/common.json
+++ b/src/main/services/i18n/locales/zh_CN/common.json
@@ -50,5 +50,7 @@
"darkMode": "深色模式",
"background": "背景",
"restartApp": "重启 massCode",
- "updateAvailable": "存在新版本"
+ "updateAvailable": "存在新版本",
+ "hide": "隐藏",
+ "show": "显示"
}
\ No newline at end of file
diff --git a/src/main/services/i18n/locales/zh_CN/menu.json b/src/main/services/i18n/locales/zh_CN/menu.json
index e8a021b7..25878a3c 100644
--- a/src/main/services/i18n/locales/zh_CN/menu.json
+++ b/src/main/services/i18n/locales/zh_CN/menu.json
@@ -62,6 +62,7 @@
"copy": "将代码片段复制至剪贴板",
"format": "格式化",
"previewMarkdown": "预览 Markdown",
- "previewCode": "预览 HTML 和 CSS"
+ "previewCode": "预览 HTML 和 CSS",
+ "previewScreenshot": "生成并预览代码截图"
}
}
\ No newline at end of file
From b9e116347c7f7e643eb55f3dad5e9e05df256b8e Mon Sep 17 00:00:00 2001
From: Anton Reshetov
Date: Thu, 21 Jul 2022 13:44:29 +0300
Subject: [PATCH 7/7] feat(preferences): add chinese lang option
---
src/renderer/components/preferences/LanguagePreferences.vue | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/renderer/components/preferences/LanguagePreferences.vue b/src/renderer/components/preferences/LanguagePreferences.vue
index 7c9f0109..58ea44b7 100644
--- a/src/renderer/components/preferences/LanguagePreferences.vue
+++ b/src/renderer/components/preferences/LanguagePreferences.vue
@@ -44,10 +44,13 @@ const options = [
label: i18n.t('preferences:language.en'),
value: 'en'
},
-
{
label: i18n.t('preferences:language.ru'),
value: 'ru'
+ },
+ {
+ label: i18n.t('preferences:language.zh_CN'),
+ value: 'zh_CN'
}
]