Skip to content

Commit a7bc7b7

Browse files
[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]>
1 parent 1bf2470 commit a7bc7b7

File tree

4 files changed

+31
-27
lines changed

4 files changed

+31
-27
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/commands.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"label": "锁定视图"
7373
},
7474
"Comfy_Canvas_ToggleMinimap": {
75-
"label": "畫布切換小地圖"
75+
"label": "画布切换小地图"
7676
},
7777
"Comfy_Canvas_ToggleSelectedNodes_Bypass": {
7878
"label": "忽略/取消忽略选中节点"
@@ -162,10 +162,10 @@
162162
"label": "切换进度对话框"
163163
},
164164
"Comfy_MaskEditor_BrushSize_Decrease": {
165-
"label": "減小 MaskEditor 中的筆刷大小"
165+
"label": "减小 MaskEditor 中的笔刷大小"
166166
},
167167
"Comfy_MaskEditor_BrushSize_Increase": {
168-
"label": "增加 MaskEditor 畫筆大小"
168+
"label": "增加 MaskEditor 画笔大小"
169169
},
170170
"Comfy_MaskEditor_OpenMaskEditor": {
171171
"label": "打开选中节点的遮罩编辑器"

src/locales/zh/main.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@
8484
},
8585
"breadcrumbsMenu": {
8686
"clearWorkflow": "清除工作流程",
87-
"deleteWorkflow": "刪除工作流程",
88-
"duplicate": "複製",
89-
"enterNewName": "輸入新名稱"
87+
"deleteWorkflow": "删除工作流程",
88+
"duplicate": "复制",
89+
"enterNewName": "输入新名称"
9090
},
9191
"chatHistory": {
9292
"cancelEdit": "取消",
@@ -296,7 +296,7 @@
296296
"devices": "设备",
297297
"disableAll": "禁用全部",
298298
"disabling": "禁用中",
299-
"dismiss": "關閉",
299+
"dismiss": "关闭",
300300
"download": "下载",
301301
"edit": "编辑",
302302
"empty": "",
@@ -312,7 +312,7 @@
312312
"findIssues": "查找问题",
313313
"firstTimeUIMessage": "这是您第一次使用新界面。选择 \"菜单 > 使用新菜单 > 禁用\" 来恢复旧界面。",
314314
"frontendNewer": "前端版本 {frontendVersion} 可能與後端版本 {backendVersion} 不相容。",
315-
"frontendOutdated": "前端版本 {frontendVersion} 已過時。後端需要 {requiredVersion} 或更高版本。",
315+
"frontendOutdated": "前端版本 {frontendVersion} 已过时。后端需要 {requiredVersion} 或更高版本。",
316316
"goToNode": "转到节点",
317317
"help": "帮助",
318318
"icon": "图标",
@@ -399,7 +399,7 @@
399399
"usageHint": "使用提示",
400400
"user": "用户",
401401
"versionMismatchWarning": "版本相容性警告",
402-
"versionMismatchWarningMessage": "{warning}:{detail} 請參閱 https://docs.comfy.org/installation/update_comfyui#common-update-issues 以取得更新說明",
402+
"versionMismatchWarningMessage": "{warning}:{detail} 请参阅 https://docs.comfy.org/installation/update_comfyui#common-update-issues 以取得更新说明",
403403
"videoFailedToLoad": "视频加载失败",
404404
"workflow": "工作流"
405405
},
@@ -409,7 +409,7 @@
409409
"resetView": "重置视图",
410410
"selectMode": "选择模式",
411411
"toggleLinkVisibility": "切换连线可见性",
412-
"toggleMinimap": "切換小地圖",
412+
"toggleMinimap": "切换小地图",
413413
"zoomIn": "放大",
414414
"zoomOut": "缩小"
415415
},
@@ -719,7 +719,7 @@
719719
"disabled": "禁用",
720720
"disabledTooltip": "工作流将不会自动执行",
721721
"execute": "执行",
722-
"help": "說明",
722+
"help": "说明",
723723
"hideMenu": "隐藏菜单",
724724
"instant": "实时",
725725
"instantTooltip": "工作流将会在生成完成后立即执行",
@@ -733,9 +733,9 @@
733733
"run": "运行",
734734
"runWorkflow": "运行工作流程(Shift排在前面)",
735735
"runWorkflowFront": "运行工作流程(排在前面)",
736-
"settings": "設定",
736+
"settings": "设定",
737737
"showMenu": "显示菜单",
738-
"theme": "主題",
738+
"theme": "主题",
739739
"toggleBottomPanel": "底部面板"
740740
},
741741
"menuLabels": {
@@ -745,7 +745,7 @@
745745
"Bypass/Unbypass Selected Nodes": "忽略/取消忽略选定节点",
746746
"Canvas Toggle Link Visibility": "切换连线可见性",
747747
"Canvas Toggle Lock": "切换视图锁定",
748-
"Canvas Toggle Minimap": "畫布切換小地圖",
748+
"Canvas Toggle Minimap": "画布切换小地图",
749749
"Check for Updates": "检查更新",
750750
"Clear Pending Tasks": "清除待处理任务",
751751
"Clear Workflow": "清除工作流",
@@ -759,7 +759,7 @@
759759
"Contact Support": "联系支持",
760760
"Convert Selection to Subgraph": "将选中内容转换为子图",
761761
"Convert selected nodes to group node": "将选中节点转换为组节点",
762-
"Decrease Brush Size in MaskEditor": "在 MaskEditor 中減小筆刷大小",
762+
"Decrease Brush Size in MaskEditor": "在 MaskEditor 中减小笔刷大小",
763763
"Delete Selected Items": "删除选定的项目",
764764
"Desktop User Guide": "桌面端用户指南",
765765
"Duplicate Current Workflow": "复制当前工作流",
@@ -771,7 +771,7 @@
771771
"Give Feedback": "提供反馈",
772772
"Group Selected Nodes": "将选中节点转换为组节点",
773773
"Help": "帮助",
774-
"Increase Brush Size in MaskEditor": "在 MaskEditor 中增大筆刷大小",
774+
"Increase Brush Size in MaskEditor": "在 MaskEditor 中增大笔刷大小",
775775
"Interrupt": "中断",
776776
"Load Default Workflow": "加载默认工作流",
777777
"Manage group nodes": "管理组节点",
@@ -812,13 +812,13 @@
812812
"Toggle Bottom Panel": "切换底部面板",
813813
"Toggle Focus Mode": "切换专注模式",
814814
"Toggle Logs Bottom Panel": "切换日志底部面板",
815-
"Toggle Model Library Sidebar": "切換模型庫側邊欄",
816-
"Toggle Node Library Sidebar": "切換節點庫側邊欄",
817-
"Toggle Queue Sidebar": "切換佇列側邊欄",
815+
"Toggle Model Library Sidebar": "切换模型库侧边栏",
816+
"Toggle Node Library Sidebar": "切换节点库侧边栏",
817+
"Toggle Queue Sidebar": "切换队列侧边栏",
818818
"Toggle Search Box": "切换搜索框",
819819
"Toggle Terminal Bottom Panel": "切换终端底部面板",
820820
"Toggle Theme (Dark/Light)": "切换主题(暗/亮)",
821-
"Toggle Workflows Sidebar": "切換工作流程側邊欄",
821+
"Toggle Workflows Sidebar": "切换工作流程侧边栏",
822822
"Toggle the Custom Nodes Manager": "切换自定义节点管理器",
823823
"Toggle the Custom Nodes Manager Progress Bar": "切换自定义节点管理器进度条",
824824
"Undo": "撤销",
@@ -1609,9 +1609,9 @@
16091609
"required": "必填"
16101610
},
16111611
"versionMismatchWarning": {
1612-
"dismiss": "關閉",
1612+
"dismiss": "关闭",
16131613
"frontendNewer": "前端版本 {frontendVersion} 可能與後端版本 {backendVersion} 不相容。",
1614-
"frontendOutdated": "前端版本 {frontendVersion} 已過時。後端需要 {requiredVersion} 版或更高版本。",
1614+
"frontendOutdated": "前端版本 {frontendVersion} 已过时。後端需要 {requiredVersion} 版或更高版本。",
16151615
"title": "版本相容性警告",
16161616
"updateFrontend": "更新前端"
16171617
},

src/locales/zh/settings.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
"tooltip": "画布背景的图像 URL。你可以在输出面板中右键点击一张图片,并选择“设为背景”来使用它。"
3131
},
3232
"Comfy_Canvas_NavigationMode": {
33-
"name": "畫布導航模式",
33+
"name": "画布导航模式",
3434
"options": {
35-
"Left-Click Pan (Legacy)": "左鍵拖曳(舊版",
36-
"Standard (New)": "標準(新)"
35+
"Left-Click Pan (Legacy)": "左键拖曳(旧版",
36+
"Standard (New)": "标准(新)"
3737
}
3838
},
3939
"Comfy_Canvas_SelectionToolbox": {
@@ -334,7 +334,7 @@
334334
"Disabled": "禁用",
335335
"Top": "顶部"
336336
},
337-
"tooltip": "選單列位置。在行動裝置上,選單始終顯示於頂端"
337+
"tooltip": "选单列位置。在行动装置上,选单始终显示于顶端"
338338
},
339339
"Comfy_Validation_Workflows": {
340340
"name": "校验工作流"

0 commit comments

Comments
 (0)