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 src-helpers (#15856)

LobeHub Botf341507fa94b
diff --git a/src/features/WorkspaceSetting/hooks/useCategory.tsx b/src/features/WorkspaceSetting/hooks/useCategory.tsx
index c2e9bdf9cb8..e6849c47653 100644
--- a/src/features/WorkspaceSetting/hooks/useCategory.tsx
+++ b/src/features/WorkspaceSetting/hooks/useCategory.tsx
@@ -113,7 +113,7 @@ export const useWorkspaceSettingCategory = (): WorkspaceSettingCategoryGroup[] =
key: WorkspaceSettingsTabs.Creds,
label: t('tab.creds'),
},
- // Messenger (聊天平台) is intentionally omitted from workspace
+ // Messenger (chat platform) is intentionally omitted from workspace
// settings: the System Bot binding is a per-user/personal identity
// (the link is owned by `userId`, not the workspace), and reaching a
// workspace's agents happens via the scope selector on the *personal*
diff --git a/src/helpers/executionTarget.ts b/src/helpers/executionTarget.ts
index 0856659780d..a117ccaa538 100644
--- a/src/helpers/executionTarget.ts
+++ b/src/helpers/executionTarget.ts
@@ -19,10 +19,10 @@ export interface ResolveExecutionTargetOptions {
* Single source of truth for where an agent executes — one global
* `agencyConfig.executionTarget` drives both desktop and web.
*
- * - `none` → 无设备 (no execution environment; plain chat)
- * - `local` → 本机 (this machine, in-process; desktop only)
- * - `sandbox` → 云端沙箱 (server cloud sandbox)
- * - `device` → 远程设备 (dispatched to `boundDeviceId`)
+ * - `none` → no execution environment (plain chat)
+ * - `local` → this machine (in-process; desktop only)
+ * - `sandbox` → server cloud sandbox
+ * - `device` → remote device (dispatched to `boundDeviceId`)
*
* `local` and `device` stay DISTINCT even when the bound device is this very
* machine: `device` dispatches through the server gateway, so progress streams
@@ -102,7 +102,7 @@ export type ExecutionPlanUnroutedReason =
* read it instead of re-resolving `agencyConfig.executionTarget`.
*/
export type ExecutionPlan = { target: DeviceExecutionTarget } &
- /** route execution / device tools to this device (includes 本机 — the local machine is a registered device) */
+ /** route execution / device tools to this device (the local machine is a registered device) */
(| { deviceId: string; kind: 'device' }
/**
* Device-targeted but no routable device right now. The run proceeds without
diff --git a/src/store/chat/slices/aiChat/actions/gateway.ts b/src/store/chat/slices/aiChat/actions/gateway.ts
index 592eedc5884..97155bf9936 100644
--- a/src/store/chat/slices/aiChat/actions/gateway.ts
+++ b/src/store/chat/slices/aiChat/actions/gateway.ts
@@ -23,7 +23,7 @@ import { settingsSelectors } from '@/store/user/selectors';
import { createGatewayEventHandler } from './gatewayEventHandler';
/**
- * When the agent runs against the local machine ("本机"), resolve this desktop's
+ * When the agent runs against the local machine, resolve this desktop's
* own gateway deviceId so it can be passed as the run's `deviceId`. The server
* then presets `activeDeviceId` and injects `lobe-local-system` into the very
* first LLM payload — skipping the extra `activateDevice` round-trip the model
diff --git a/src/store/chat/slices/aiChat/actions/heterogeneousAgentExecutor.ts b/src/store/chat/slices/aiChat/actions/heterogeneousAgentExecutor.ts
index ec1baea93ac..4de68a94e4e 100644
--- a/src/store/chat/slices/aiChat/actions/heterogeneousAgentExecutor.ts
+++ b/src/store/chat/slices/aiChat/actions/heterogeneousAgentExecutor.ts
@@ -1208,7 +1208,7 @@ export const executeHeterogeneousAgent = async (
// ─── stream_start with newStep: new LLM turn ───
// The reducer flushes the prior turn's content/reasoning/model and opens
// a new assistant chained off the last tool message (the shared chain rule
- // incl. the `lastToolMsgIdEver` toolless-step rescue — the 断链 fix). We
+ // incl. the `lastToolMsgIdEver` toolless-step rescue — the chain-break fix). We
// then forward the event (carrying the new assistant id) for live UI.
if (event.type === 'stream_start' && event.data?.newStep) {
// Defer same-batch stream_chunk / tool events through persistQueue so the
@@ -1282,7 +1282,7 @@ export const executeHeterogeneousAgent = async (
// — otherwise the handler reads `assistant.tools[]` while a parallel
// `persistToolBatch` is still mid-flight and `replaceMessages` clobbers
// the in-memory cumulative tools[] with a shorter snapshot. That's the
- // "7 → 6 次技能调用" rollback users see on parallel CC tool batches.
+ // "7 → 6 tool-calls" rollback users see on parallel CC tool batches.
//
// Other forwards (text / reasoning / tools_calling dispatches) stay
// synchronous so live streaming UX isn't gated on DB round-trips.
diff --git a/src/store/chat/slices/message/utils/reconcileTools.ts b/src/store/chat/slices/message/utils/reconcileTools.ts
index 55cb116aa23..a9879912c6c 100644
--- a/src/store/chat/slices/message/utils/reconcileTools.ts
+++ b/src/store/chat/slices/message/utils/reconcileTools.ts
@@ -16,7 +16,7 @@ import type { ChatToolPayload, UIChatMessage } from '@lobechat/types';
* `replaceMessages` (stale / out-of-order DB snapshot) or an optimistic
* `internal_dispatchMessage updateMessage{tools}` can momentarily drop an
* assistant's `tools[]` while the tool row + parentId survive (the extreme of
- * the "7→6 次技能调用" tools[] regression).
+ * the "7→6 tool-calls" tools[] regression).
*
* Fixing this at the RAW bucket write boundary — not only inside `parse` — keeps
* `dbMessagesMap` (the Source of Truth that optimistic updates read & mutate)