Repository navigation
Feat: Alter "Compilation" to "Operator" - #17273
Conversation
📝 WalkthroughWalkthroughUpdated English and Simplified Chinese flow-builder translations to use “Operator” terminology and describe operator templates, while shortening built-in template labels. ChangesOperator terminology localization
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@web/src/locales/en.ts`:
- Around line 3197-3199: Update the related user-facing translation keys,
including knowledgeDetails.compilation,
knowledgeConfiguration.compilationTemplate, and setting.compilationTemplates, to
use the new “Operator” terminology consistently with compiler and
compilerDescription. Keep the labels semantically equivalent while replacing the
remaining “Compilation” wording.
In `@web/src/locales/zh.ts`:
- Around line 2791-2792: Complete the terminology rename in the zh locale by
updating the user-facing “编译” strings at the referenced flow-builder entries to
use the same “算子” terminology as compiler and compilerDescription. Preserve the
existing message meaning and formatting while ensuring all related labels and
descriptions in this flow-builder experience are consistent.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 214e05bc-5f4e-43df-adce-de41fe178b18
📒 Files selected for processing (2)
web/src/locales/en.tsweb/src/locales/zh.ts
| compiler: 'Operator', | ||
| compilerDescription: | ||
| 'Compiles document chunks using knowledge compilation templates into structured artifacts.', | ||
| 'Processes document chunks using operator templates into structured artifacts.', |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Keep the terminology consistent within this locale.
This introduces “Operator” and “operator templates” while nearby user-facing strings still use “Compilation” (for example knowledgeDetails.compilation, knowledgeConfiguration.compilationTemplate, and setting.compilationTemplates). Update those remaining labels as part of the rename, or keep this text aligned with the existing terminology.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@web/src/locales/en.ts` around lines 3197 - 3199, Update the related
user-facing translation keys, including knowledgeDetails.compilation,
knowledgeConfiguration.compilationTemplate, and setting.compilationTemplates, to
use the new “Operator” terminology consistently with compiler and
compilerDescription. Keep the labels semantically equivalent while replacing the
remaining “Compilation” wording.
| compiler: '算子', | ||
| compilerDescription: '使用算子模板将文档块处理为结构化工件。', |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift
Complete the terminology rename in this locale.
This now renders “算子”, but the same file still exposes user-facing “编译” terminology at Lines 410, 844, 1517-1518, 1531, and 1560. Users will see inconsistent terminology in the same flow-builder experience; update those strings as part of this rename.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@web/src/locales/zh.ts` around lines 2791 - 2792, Complete the terminology
rename in the zh locale by updating the user-facing “编译” strings at the
referenced flow-builder entries to use the same “算子” terminology as compiler and
compilerDescription. Preserve the existing message meaning and formatting while
ensuring all related labels and descriptions in this flow-builder experience are
consistent.
Summary
Feat: Alter "Compilation" to "Operator"