Repository navigation
Conversation
lizaixi01
force-pushed
the
feat/editor-1-sw-terms
branch
from
November 30, 2026 05:16
be5ed97 to
bd5f10d
Compare
DECISION: the Chinese translation table uses the SolidWorks Chinese terms wherever the editor named the same thing differently (基准面, 完全定义/欠定义/过定义, 几何关系/尺寸, 镜向, 构造几何线, 拉伸凸台/拉伸切除, 移动面, 简单直孔, 边线, and 配合 for assembly joints). Only words a person reads change; the SDK, the notebook code, the table's keys and everything an agent reads stay as they are. WHY (discussion of 2026-11-29 between the user and the assistant; record: design-docs/editor-sw-terms.md): the user, learning CAD through the editor's manual mode and SolidWorks videos side by side, compared the two term by term and kept looking for the SolidWorks word and not finding it (工作平面 for a 基准面, 已求解 for 完全定义, 约束 for 几何关系 and 尺寸, 镜像 for 镜向). The people this manual mode is for learned CAD on SolidWorks. The user's judgement: rename so that everything a person reads matches SolidWorks as far as possible, as its own branch, while the kernel stays the agent-friendly tool it is. Words only, so no code path changes. ALTERNATIVE CONSIDERED AND REJECTED: replacing "约束" and "边" everywhere. 约束 also names assembly joints, which SolidWorks calls 配合, and 边 occurs inside other words (边界, 两边); both were changed key by key instead. 基本体 is kept: SolidWorks has no primitives, so there is no word to copy. WHAT CHANGES: editor-web/src/i18n/locales/zh-CN.json, 73 values (no key added, removed or reordered). Behaviour that differs from SolidWorks (pick-kind chips instead of hover selection, connectors instead of face mates, no rollback bar) is not touched here. Checked: `vitest run src/i18n` (3 passed: every key the source uses has a Chinese entry, interpolations kept) and `tsc --noEmit` in this branch, on origin/master. Seen in the running editor on the working branch: the pick chips read 边线, a picked face offers 简单直孔. Not checked: every dialog that shows the renamed words. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DECISION: keep the term-by-term table of the change "editor i18n: the Chinese UI names things the way SolidWorks does" as a design record, so that a later reader sees which words changed, which were kept on purpose (基本体, 组件) and that behaviour differences are a separate matter. WHY: the decision is about words only, and its reasons are not visible from the diff of a translation table; the repo's rule is that a decision that outlives one commit gets a record in design-docs/. WHAT CHANGES: design-docs/editor-sw-terms.md (new; design-docs/ is git-ignored, added with -f). Checked: the table matches the 73 values the previous commit changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lizaixi01
force-pushed
the
feat/editor-1-sw-terms
branch
from
November 30, 2026 06:15
bd5f10d to
824608e
Compare
NiJingzhe
approved these changes
Nov 30, 2026
NiJingzhe
left a comment
Collaborator
There was a problem hiding this comment.
LGTM! SolidWorks 术语统一得很清晰,设计文档 design-docs/editor-sw-terms.md 也把保留项说明得很清楚。
轻微 Nit:
design-docs/editor-sw-terms.md说明保留「组件」而非统一改为「零部件」,不过editor-web/src/i18n/locales/zh-CN.json里有两处改成了「零部件」("Constrain two component connectors to the same frame."和"{{who}}: a constraint joins two different components"),而相邻文案仍使用「组件」,后续可顺手统一。
SolidWorks' Chinese help says 零部件 throughout (插入零部件, 零部件属性); the table mixed it with 组件 (review of PhySpace#102). The wording note said both were SolidWorks' words; it now lists 零部件 with the other terms. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
谢谢!查了 SolidWorks 官方简体中文帮助(「插入零部件」「零部件属性」等),它统一用的是「零部件」,所以这次反过来把界面里所有「组件」统一成了「零部件」,设计文档里那条「两种都用」的说法也一并改正了。
现在界面里已经没有「组件」了。 |
This was referenced Dec 1, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Chinese wording follows SolidWorks
The Chinese UI uses the SolidWorks Chinese terms wherever the editor named the same thing differently (基准面, 完全定义/欠定义/过定义, 几何关系/尺寸, 镜向, 拉伸凸台/拉伸切除, 边线, 配合, 零部件 …). Words only: the SDK, the notebook code and everything an agent reads stay as they are. The table of terms and what was kept on purpose is in
design-docs/editor-sw-terms.md.Commits: the three at the start of the branch (
editor i18n: the Chinese UI names things the way SolidWorks does,docs(design): record why the editor's Chinese wording follows SolidWorks,editor i18n: an assembly component is 零部件, as in SolidWorks).Part 1 of 6 of the editor's manual-mode work, split by theme so each can be reviewed on its own (it replaces #101, which had all of it in one PR). The parts build on each other: merge them in order 1 → 6. Until the parts before this one are merged, this PR also shows their commits; the commits that belong to this part are listed above.
Every commit holds one decision and its reasons (AGENT.md). The series was reordered by theme after it was written; the "Checked" line of a commit describes the check made when it was written, and the tip of every part was checked again after the reordering (below). Manual mode stays off in a release;
VITE_MANUAL_MODE=1turns it on for development (part 2).Checked at the tip of this part:
tsc --noEmitandvitest runineditor-web;pytest test/test_editor_features.py test/test_editor.py test/test_editor_workplanes.py(andtest_editor_agent_requests.pyfrom part 3 on), run withPYTHONPATHset to the absolutesrcpath; the editor tests needhttpx, which the dev group locks. Results: tsc ok; vitest 331 passed; pytest 151 passed, 5 skipped.🤖 Generated with Claude Code