Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🌐 chore: translate non-English comments to English in packages (#13427)

LobeHub Bot993dfe1bb0d6
diff --git a/packages/agent-runtime/examples/tools-calling.ts b/packages/agent-runtime/examples/tools-calling.ts
index 2912191864f..edd6f4f9efc 100644
--- a/packages/agent-runtime/examples/tools-calling.ts
+++ b/packages/agent-runtime/examples/tools-calling.ts
@@ -294,7 +294,7 @@ async function main() {
}
state = result.newState;
- nextContext = result.nextContext; // 使用返回的 nextContext
+ nextContext = result.nextContext; // use the returned nextContext
}
console.log(`\n📊 总共执行了 ${state.stepCount} 个步骤`);
diff --git a/packages/builtin-tool-gtd/src/client/Inspector/ExecTask/index.tsx b/packages/builtin-tool-gtd/src/client/Inspector/ExecTask/index.tsx
index db8c9547751..f33f1a00ba2 100644
--- a/packages/builtin-tool-gtd/src/client/Inspector/ExecTask/index.tsx
+++ b/packages/builtin-tool-gtd/src/client/Inspector/ExecTask/index.tsx
@@ -15,7 +15,7 @@ export const ExecTaskInspector = memo<BuiltinInspectorProps<ExecTaskParams, Exec
const description = args?.description || partialArgs?.description;
- // 参数还在流式传输且没有 description
+ // Arguments are still streaming and no description yet
if (isArgumentsStreaming) {
if (!description)
return (
@@ -32,7 +32,7 @@ export const ExecTaskInspector = memo<BuiltinInspectorProps<ExecTaskParams, Exec
);
}
- // 有 description 时,根据 loading 状态显示不同文案
+ // When description is available, show different text based on loading state
if (description) {
return (
<div className={cx(inspectorTextStyles.root, isLoading && shinyTextStyles.shinyText)}>
diff --git a/packages/builtin-tool-local-system/src/client/Intervention/RunCommand/index.tsx b/packages/builtin-tool-local-system/src/client/Intervention/RunCommand/index.tsx
index e89a39753b0..0d4a52e2584 100644
--- a/packages/builtin-tool-local-system/src/client/Intervention/RunCommand/index.tsx
+++ b/packages/builtin-tool-local-system/src/client/Intervention/RunCommand/index.tsx
@@ -8,18 +8,18 @@ const formatTimeout = (ms?: number) => {
const seconds = ms / 1000;
- // >= 60s 显示分钟
+ // >= 60s show minutes
if (seconds >= 60) {
const minutes = seconds / 60;
return `${minutes.toFixed(1)}min`;
}
- // >= 1s 显示秒
+ // >= 1s show seconds
if (seconds >= 1) {
return `${seconds.toFixed(1)}s`;
}
- // < 1s 显示毫秒
+ // < 1s show milliseconds
return `${ms}ms`;
};
diff --git a/packages/builtin-tool-web-browsing/src/client/Portal/Search/ResultList/SearchItem/Video.tsx b/packages/builtin-tool-web-browsing/src/client/Portal/Search/ResultList/SearchItem/Video.tsx
index 3333678e1d9..9da69fea228 100644
--- a/packages/builtin-tool-web-browsing/src/client/Portal/Search/ResultList/SearchItem/Video.tsx
+++ b/packages/builtin-tool-web-browsing/src/client/Portal/Search/ResultList/SearchItem/Video.tsx
@@ -66,7 +66,7 @@ const VideoItem = memo<SearchResultProps>(
({ content, url, iframeSrc, highlight, score, engines, title, category, ...res }) => {
const [expand, setExpand] = useState(false);
- const videoUrl = iframeSrc || (res as any).iframe_src; // iframe_src 是 SearchXNG 的字段,兼容老的数据结构
+ const videoUrl = iframeSrc || (res as any).iframe_src; // iframe_src is a SearchXNG field, for backward compatibility with old data structure
return (
<Flexbox gap={12}>
<Flexbox className={styles.container} onClick={() => setExpand(!expand)}>
diff --git a/packages/builtin-tool-web-browsing/src/client/Portal/index.tsx b/packages/builtin-tool-web-browsing/src/client/Portal/index.tsx
index eb93c16624d..28ae830f39b 100644
--- a/packages/builtin-tool-web-browsing/src/client/Portal/index.tsx
+++ b/packages/builtin-tool-web-browsing/src/client/Portal/index.tsx
@@ -8,7 +8,7 @@ import Search from './Search';
const Inspector = memo<BuiltinPortalProps>(({ arguments: args, messageId, state, apiName }) => {
switch (apiName) {
- // 兼容旧版数据
+ // Backward compatibility for old data
case WebBrowsingApiName.search: {
return <Search messageId={messageId} query={args as SearchQuery} response={state} />;
}
diff --git a/packages/electron-client-ipc/src/events/protocol.ts b/packages/electron-client-ipc/src/events/protocol.ts
index 8e539aca4ce..ee2538983fc 100644
--- a/packages/electron-client-ipc/src/events/protocol.ts
+++ b/packages/electron-client-ipc/src/events/protocol.ts
@@ -13,7 +13,7 @@ export interface ProtocolBroadcastEvents {
marketId?: string;
/** Plugin ID */
pluginId: string;
- /** MCP Schema 对象 */
+ /** MCP Schema object */
schema: McpInstallSchema;
}) => void;
}
diff --git a/packages/prompts/src/prompts/agentGroup/groupContext.ts b/packages/prompts/src/prompts/agentGroup/groupContext.ts
index 20e001d787b..b31754e93ef 100644
--- a/packages/prompts/src/prompts/agentGroup/groupContext.ts
+++ b/packages/prompts/src/prompts/agentGroup/groupContext.ts
@@ -50,13 +50,13 @@ export interface GroupSupervisorAgentInfo {
* @example
* ```typescript
* const agents = [
- * { id: 'agt_xxx', title: '创意总监' },
- * { id: 'agt_yyy', title: '设计师' },
+ * { id: 'agt_xxx', title: 'Creative Director' },
+ * { id: 'agt_yyy', title: 'Designer' },
* ];
* const xml = buildGroupMembersXml(agents);
* // Returns:
- * // <member name="创意总监" id="agt_xxx" />
- * // <member name="设计师" id="agt_yyy" />
+ * // <member name="Creative Director" id="agt_xxx" />
+ * // <member name="Designer" id="agt_yyy" />
* ```
*/
export const buildGroupMembersXml = (agents: GroupSupervisorAgentInfo[]): string => {
diff --git a/packages/types/src/brief/index.ts b/packages/types/src/brief/index.ts
index e1f6af50807..ebc7e9e938b 100644
--- a/packages/types/src/brief/index.ts
+++ b/packages/types/src/brief/index.ts
@@ -1,7 +1,7 @@
export interface BriefAction {
/** Action identifier, e.g. 'approve', 'reject', 'feedback' */
key: string;
- /** Display label, e.g. "✅ 确认开始", "💬 修改意见" */
+ /** Display label, e.g. "✅ Confirm Start", "💬 Revisions" */
label: string;
/**
* Action type:
diff --git a/packages/types/src/skill/index.ts b/packages/types/src/skill/index.ts
index 167b670cd4f..a146bb770e2 100644
--- a/packages/types/src/skill/index.ts
+++ b/packages/types/src/skill/index.ts
@@ -110,7 +110,7 @@ export interface SkillResourceContent {
size: number;
}
-// ===== Skill Item (完整结构,用于详情查询) =====
+// ===== Skill Item (full structure, for detail queries) =====
export interface SkillItem {
content?: string | null;
@@ -127,7 +127,7 @@ export interface SkillItem {
zipFileHash?: string | null;
}
-// ===== Skill List Item (精简结构,用于列表查询) =====
+// ===== Skill List Item (simplified structure, for list queries) =====
export interface SkillListItem {
createdAt: Date;
diff --git a/src/styles/global.ts b/src/styles/global.ts
index 81172e76eb0..dca06c69188 100644
--- a/src/styles/global.ts
+++ b/src/styles/global.ts
@@ -24,7 +24,7 @@ export default ({ token }: { prefixCls: string; token: Theme }) => css`
}
body {
- /* 提高合成层级,强制硬件加速,否则会有渲染黑边出现 */
+ /* Increase compositing layer, force hardware acceleration, otherwise render black edges will appear */
will-change: opacity;
transform: translateZ(0);
}