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

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
LobeHub Bot 2026-03-31 18:11:39 +08:00 committed by GitHub
parent 967302269e
commit 993dfe1bb0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 17 additions and 17 deletions

View file

@ -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} 个步骤`);

View file

@ -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)}>

View file

@ -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`;
};

View file

@ -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)}>

View file

@ -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} />;
}

View file

@ -13,7 +13,7 @@ export interface ProtocolBroadcastEvents {
marketId?: string;
/** Plugin ID */
pluginId: string;
/** MCP Schema 对象 */
/** MCP Schema object */
schema: McpInstallSchema;
}) => void;
}

View file

@ -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 => {

View file

@ -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:

View file

@ -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;

View file

@ -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);
}