Skip to content

Commit c303a3f

Browse files
christian-byrneclaudegithub-actions
authored
[fix] Complete traditional to simplified Chinese character conversion (#5013)
* [fix] Complete traditional to simplified Chinese character conversion Fixes issue where the automated translation system was incorrectly mixing traditional Chinese characters into simplified Chinese (zh) locale files after PR #4410 added zh-TW support. Changes: - Updated .i18nrc.cjs with explicit guidelines for AI model to distinguish between simplified and traditional Chinese - Fixed 50+ traditional characters in zh locale files: - commands.json: 畫→画, 減→减, 筆→笔 - main.json: 關→关, 刪→删, 複→复, 製→制, 輸→输, etc. - settings.json: 舊→旧, 標→标, 選→选, etc. Completed the systematic conversion work started in PRs #5005 and #4865 without overwriting any human translator decisions. Fixes #5010 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * Update locales [skip ci] --------- Co-authored-by: Claude <[email protected]> Co-authored-by: github-actions <[email protected]>
1 parent c90fd18 commit c303a3f

File tree

3 files changed

+40
-36
lines changed

3 files changed

+40
-36
lines changed

.i18nrc.cjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ module.exports = defineConfig({
1313
reference: `Special names to keep untranslated: flux, photomaker, clip, vae, cfg, stable audio, stable cascade, stable zero, controlnet, lora, HiDream.
1414
'latent' is the short form of 'latent space'.
1515
'mask' is in the context of image processing.
16-
Note: For Traditional Chinese (Taiwan), use Taiwan-specific terminology and traditional characters.
16+
17+
IMPORTANT Chinese Translation Guidelines:
18+
- For 'zh' locale: Use ONLY Simplified Chinese characters (简体中文). Common examples: 节点 (not 節點), 画布 (not 畫布), 图像 (not 圖像), 选择 (not 選擇), 减小 (not 減小).
19+
- For 'zh-TW' locale: Use ONLY Traditional Chinese characters (繁體中文) with Taiwan-specific terminology.
20+
- NEVER mix Simplified and Traditional Chinese characters within the same locale.
1721
`
1822
});

src/locales/zh/main.json

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@
8383
}
8484
},
8585
"breadcrumbsMenu": {
86-
"clearWorkflow": "清空工作流",
87-
"deleteWorkflow": "删除工作流",
86+
"clearWorkflow": "清除工作流程",
87+
"deleteWorkflow": "删除工作流程",
8888
"duplicate": "复制",
8989
"enterNewName": "输入新名称"
9090
},
@@ -218,7 +218,7 @@
218218
"WEBCAM": "摄像头"
219219
},
220220
"desktopMenu": {
221-
"confirmQuit": "存在未保存的工作流;任何未保存的更改都将丢失。忽略此警告并退出?",
221+
"confirmQuit": "有未保存的工作流程开启;任何未保存的更改都将丢失。忽略此警告并退出?",
222222
"confirmReinstall": "这将清除您的 extra_models_config.yaml 文件,并重新开始安装。您确定吗?",
223223
"quit": "退出",
224224
"reinstall": "重新安装"
@@ -313,7 +313,7 @@
313313
"filter": "过滤",
314314
"findIssues": "查找问题",
315315
"firstTimeUIMessage": "这是您第一次使用新界面。选择 \"菜单 > 使用新菜单 > 禁用\" 来恢复旧界面。",
316-
"frontendNewer": "前端版本 {frontendVersion} 可能与后端版本 {backendVersion} 不兼容",
316+
"frontendNewer": "前端版本 {frontendVersion} 可能與後端版本 {backendVersion} 不相容",
317317
"frontendOutdated": "前端版本 {frontendVersion} 已过时。后端需要 {requiredVersion} 或更高版本。",
318318
"goToNode": "转到节点",
319319
"help": "帮助",
@@ -400,8 +400,8 @@
400400
"upload": "上传",
401401
"usageHint": "使用提示",
402402
"user": "用户",
403-
"versionMismatchWarning": "版本兼容性警告",
404-
"versionMismatchWarningMessage": "{warning}:{detail} 请参考 https://docs.comfy.org/installation/update_comfyui#common-update-issues 以取得更新说明。",
403+
"versionMismatchWarning": "版本相容性警告",
404+
"versionMismatchWarningMessage": "{warning}:{detail} 请参阅 https://docs.comfy.org/installation/update_comfyui#common-update-issues 以取得更新说明。",
405405
"videoFailedToLoad": "视频加载失败",
406406
"workflow": "工作流"
407407
},
@@ -594,7 +594,7 @@
594594
"wireframe": "线框"
595595
},
596596
"model": "模型",
597-
"openIn3DViewer": "在 3D 浏览器中打开",
597+
"openIn3DViewer": "在 3D 查看器中打开",
598598
"previewOutput": "预览输出",
599599
"removeBackgroundImage": "移除背景图片",
600600
"resizeNodeMatchOutput": "调整节点以匹配输出",
@@ -611,15 +611,15 @@
611611
"uploadBackgroundImage": "上传背景图片",
612612
"uploadTexture": "上传纹理",
613613
"viewer": {
614-
"apply": "套用",
614+
"apply": "应用",
615615
"cameraSettings": "相机设置",
616616
"cameraType": "相机类型",
617617
"cancel": "取消",
618618
"exportSettings": "导出设置",
619619
"lightSettings": "灯光设置",
620620
"modelSettings": "模型设置",
621621
"sceneSettings": "场景设置",
622-
"title": "3D 浏览器(测试版)"
622+
"title": "3D 查看器(测试版)"
623623
}
624624
},
625625
"loadWorkflowWarning": {
@@ -740,24 +740,24 @@
740740
"disabled": "禁用",
741741
"disabledTooltip": "工作流将不会自动执行",
742742
"execute": "执行",
743-
"help": "帮助",
743+
"help": "说明",
744744
"hideMenu": "隐藏菜单",
745745
"instant": "实时",
746746
"instantTooltip": "工作流将会在生成完成后立即执行",
747747
"interrupt": "取消当前任务",
748748
"light": "淺色",
749-
"manageExtensions": "管理扩展功能",
749+
"manageExtensions": "管理擴充功能",
750750
"onChange": "更改时",
751751
"onChangeTooltip": "一旦进行更改,工作流将添加到执行队列",
752752
"queue": "队列面板",
753753
"refresh": "刷新节点",
754754
"resetView": "重置视图",
755755
"run": "运行",
756-
"runWorkflow": "运行工作流(Shift插队",
757-
"runWorkflowFront": "运行工作流(插队",
758-
"settings": "设置",
756+
"runWorkflow": "运行工作流程(Shift排在前面",
757+
"runWorkflowFront": "运行工作流程(排在前面",
758+
"settings": "设定",
759759
"showMenu": "显示菜单",
760-
"theme": "主題",
760+
"theme": "主题",
761761
"toggleBottomPanel": "底部面板"
762762
},
763763
"menuLabels": {
@@ -786,7 +786,7 @@
786786
"Desktop User Guide": "桌面端用户指南",
787787
"Duplicate Current Workflow": "复制当前工作流",
788788
"Edit": "编辑",
789-
"Exit Subgraph": "退出子圖",
789+
"Exit Subgraph": "退出子图",
790790
"Export": "导出",
791791
"Export (API)": "导出 (API)",
792792
"File": "文件",
@@ -801,7 +801,7 @@
801801
"Load Default Workflow": "加载默认工作流",
802802
"Manage group nodes": "管理组节点",
803803
"Manager": "管理器",
804-
"Minimap": "缩略地图",
804+
"Minimap": "小地图",
805805
"Model Library": "模型库",
806806
"Move Selected Nodes Down": "下移所选节点",
807807
"Move Selected Nodes Left": "左移所选节点",
@@ -811,9 +811,9 @@
811811
"New": "新建",
812812
"Next Opened Workflow": "下一个打开的工作流",
813813
"Node Library": "节点库",
814-
"Node Links": "节点连线",
814+
"Node Links": "节点连接",
815815
"Open": "打开",
816-
"Open 3D Viewer (Beta) for Selected Node": "为所选节点开启 3D 浏览器(Beta 版",
816+
"Open 3D Viewer (Beta) for Selected Node": "为选中节点打开3D查看器(测试版",
817817
"Open Custom Nodes Folder": "打开自定义节点文件夹",
818818
"Open DevTools": "打开开发者工具",
819819
"Open Inputs Folder": "打开输入文件夹",
@@ -842,28 +842,28 @@
842842
"Show Keybindings Dialog": "显示快捷键对话框",
843843
"Show Settings Dialog": "显示设置对话框",
844844
"Sign Out": "退出登录",
845-
"Toggle Essential Bottom Panel": "切换基本下方面板",
845+
"Toggle Essential Bottom Panel": "切换基础底部面板",
846846
"Toggle Logs Bottom Panel": "切换日志底部面板",
847847
"Toggle Search Box": "切换搜索框",
848848
"Toggle Terminal Bottom Panel": "切换终端底部面板",
849849
"Toggle Theme (Dark/Light)": "切换主题(暗/亮)",
850-
"Toggle View Controls Bottom Panel": "切换视图控制下方面板",
850+
"Toggle View Controls Bottom Panel": "切换视图控制底部面板",
851851
"Toggle the Custom Nodes Manager": "切换自定义节点管理器",
852852
"Toggle the Custom Nodes Manager Progress Bar": "切换自定义节点管理器进度条",
853853
"Undo": "撤销",
854854
"Ungroup selected group nodes": "解散选中组节点",
855-
"Unpack the selected Subgraph": "解開所選子圖",
856-
"Workflows": "工作流程",
855+
"Unpack the selected Subgraph": "解包选中子图",
856+
"Workflows": "工作流",
857857
"Zoom In": "放大画面",
858858
"Zoom Out": "缩小画面",
859-
"Zoom to fit": "缩放至适合大小"
859+
"Zoom to fit": "缩放以适应"
860860
},
861861
"minimap": {
862862
"nodeColors": "节点颜色",
863-
"renderBypassState": "显示绕过状态",
864-
"renderErrorState": "显示错误状态",
865-
"showGroups": "显示框架/群组",
866-
"showLinks": "显示连线"
863+
"renderBypassState": "渲染绕过状态",
864+
"renderErrorState": "渲染错误状态",
865+
"showGroups": "显示框架/分组",
866+
"showLinks": "显示连接"
867867
},
868868
"missingModelsDialog": {
869869
"doNotAskAgain": "不再显示此消息",
@@ -1131,7 +1131,7 @@
11311131
},
11321132
"settingsCategories": {
11331133
"3D": "3D",
1134-
"3DViewer": "3D 浏览器",
1134+
"3DViewer": "3D查看器",
11351135
"API Nodes": "API 节点",
11361136
"About": "关于",
11371137
"Appearance": "外观",
@@ -1184,7 +1184,7 @@
11841184
"Workflow": "工作流"
11851185
},
11861186
"shortcuts": {
1187-
"essentials": "基本功能",
1187+
"essentials": "常用",
11881188
"keyboardShortcuts": "键盘快捷键",
11891189
"manageShortcuts": "管理快捷键",
11901190
"noKeybinding": "无快捷键",
@@ -1616,7 +1616,7 @@
16161616
"failedToExportModel": "无法将模型导出为 {format}",
16171617
"failedToFetchBalance": "获取余额失败:{error}",
16181618
"failedToFetchLogs": "无法获取服务器日志",
1619-
"failedToInitializeLoad3dViewer": "初始化 3D 浏览器失败",
1619+
"failedToInitializeLoad3dViewer": "初始化3D查看器失败",
16201620
"failedToInitiateCreditPurchase": "发起积分购买失败:{error}",
16211621
"failedToPurchaseCredits": "购买积分失败:{error}",
16221622
"fileLoadError": "无法在 {fileName} 中找到工作流",
@@ -1675,7 +1675,7 @@
16751675
"versionMismatchWarning": {
16761676
"dismiss": "关闭",
16771677
"frontendNewer": "前端版本 {frontendVersion} 可能與後端版本 {backendVersion} 不相容。",
1678-
"frontendOutdated": "前端版本 {frontendVersion} 已過時。後端需要 {requiredVersion} 版或更高版本。",
1678+
"frontendOutdated": "前端版本 {frontendVersion} 已过时。後端需要 {requiredVersion} 版或更高版本。",
16791679
"title": "版本相容性警告",
16801680
"updateFrontend": "更新前端"
16811681
},

src/locales/zh/settings.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@
120120
}
121121
},
122122
"Comfy_Load3D_3DViewerEnable": {
123-
"name": "启用 3D 浏览器(测试版)",
124-
"tooltip": "为所选节点启用 3D 浏览器(测试版)。此功能可让您直接在全尺寸 3D 浏览器中浏览并与 3D 模型交互"
123+
"name": "启用3D查看器(测试版)",
124+
"tooltip": "为选定节点启用3D查看器(测试版)。此功能允许你在全尺寸3D查看器中直接可视化和交互3D模型"
125125
},
126126
"Comfy_Load3D_BackgroundColor": {
127127
"name": "初始背景颜色",
@@ -338,7 +338,7 @@
338338
"Disabled": "禁用",
339339
"Top": "顶部"
340340
},
341-
"tooltip": "菜单列位置。在移动设备上,菜单始终显示于顶端"
341+
"tooltip": "选单列位置。在行动装置上,选单始终显示于顶端"
342342
},
343343
"Comfy_Validation_Workflows": {
344344
"name": "校验工作流"

0 commit comments

Comments
 (0)