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..088cd535 --- /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", "好的"] + }, + "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..b5dfd168 --- /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..4175ecf4 --- /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", "好的"], + "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": "Toggle Developer Tools" + }, + "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": "预览代码", + } +} \ 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..ac7666d2 --- /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": "缩进字符", + "showInvisibles": "显示不可见字符", + "highlightLine": "高亮当前行", + "highlightGutter": "高亮当前行号", + "prettier": { + "label": "Prettier", + "trailingComma": { + "label": "尾后逗号", + "none": "None", + "all": "All", + "es6": "ES6" + }, + "semi": "末尾分号", + "singleQuote": "单引号" + } + }, + "appearance": { + "label": "外观", + "theme": { + "label": "主题", + "light": "Light", + "dark": "Dark" + } + }, + "language": { + "label": "语言", + "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..bc2a852e --- /dev/null +++ b/src/main/services/i18n/locales/zh/special.json @@ -0,0 +1,24 @@ +{ + "description": { + "storage": "要使用 iCloud Drive、Dropbox 的 Google Drive 等同步服务,只需将存储移动到相应的同步文件夹即可。", + "migrate": { + "1": "要从 massCode v1.0 迁移,请选择包含数据库文件的文件夹。", + "2": "要从 SnippetsLab 迁移,请选择 JSON 文件。", + "3": [ + "从 SnippetsLab 迁移期间的一些限制:", + "所有文件夹都将是顶级,因为 JSON 文件(低于 v2.1)不能表示文件夹结构。", + "所有不受支持的语言片段都将默认设置为纯文本。" + ] + }, + "htmlCssPreview": "添加带有 HTML 和 CSS 语言的片段以查看预览效果。" + }, + "success": { + "migrate": "数据迁移成功。" + }, + "error": { + "folderNotContainDb": "在文件夹里未找到 \"db.json\" 文件。" + }, + "unsponsored": "未捐助", + "supportMessage": "嗨,我是 Anton 👋

\n感谢您使用 massCode。 如果您觉得这个应用程序有用,请 {{-tagStart}} 捐助 {{-tagEnd}}。 这将激励我继续开发该项目。", + "snippetsShowcase": "代码片段展示" +} \ No newline at end of file