🤯 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.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
🌐 chore: translate non-English strings to English in apps/cli, apps/device-gateway, and apps/desktop scripts (#14626)
LobeHub Bot2a65f81f0d5e
diff --git a/apps/cli/src/commands/brief.ts b/apps/cli/src/commands/brief.tsindex 8889d2ebef6..adc49a6fdfd 100644--- a/apps/cli/src/commands/brief.ts+++ b/apps/cli/src/commands/brief.ts@@ -120,14 +120,14 @@ export function registerBriefCommand(program: Command) {for (const a of actions) {const cmd =a.type === 'comment'- ? `lh brief resolve ${b.id} --action ${a.key} -m "内容"`+ ? `lh brief resolve ${b.id} --action ${a.key} -m "message"`: `lh brief resolve ${b.id} --action ${a.key}`;console.log(` ${a.label} ${pc.dim(cmd)}`);}} else {console.log(pc.dim('Actions:'));- console.log(pc.dim(` lh brief resolve ${b.id} # 确认通过`));- console.log(pc.dim(` lh brief resolve ${b.id} --reply "修改意见" # 反馈修改`));+ console.log(pc.dim(` lh brief resolve ${b.id} # Approve`));+ console.log(pc.dim(` lh brief resolve ${b.id} --reply "revision notes" # Request revision`));}} else if ((b as any).resolvedComment) {console.log(`${pc.dim('Comment:')} ${(b as any).resolvedComment}`);diff --git a/apps/cli/src/commands/task/review.ts b/apps/cli/src/commands/task/review.tsindex 2b5ca711f86..fae6c3dbedf 100644--- a/apps/cli/src/commands/task/review.ts+++ b/apps/cli/src/commands/task/review.ts@@ -145,7 +145,7 @@ export function registerReviewCommands(task: Command) {rc.command('add <id>').description('Add a review rubric')- .requiredOption('-n, --name <name>', 'Rubric name (e.g. "内容准确性")')+ .requiredOption('-n, --name <name>', 'Rubric name (e.g. "Content Accuracy")').option('--type <type>', 'Rubric type (default: llm-rubric)', 'llm-rubric').option('-t, --threshold <n>', 'Pass threshold 0-100 (converted to 0-1)').option('-d, --description <text>', 'Criteria description (for llm-rubric type)')diff --git a/apps/desktop/scripts/i18nWorkflow/genDefaultLocale.ts b/apps/desktop/scripts/i18nWorkflow/genDefaultLocale.tsindex 871e65d41d1..12d3be9974f 100644--- a/apps/desktop/scripts/i18nWorkflow/genDefaultLocale.ts+++ b/apps/desktop/scripts/i18nWorkflow/genDefaultLocale.ts@@ -7,18 +7,18 @@ import { entryLocaleJsonFilepath, i18nConfig, localeDir, srcDefaultLocales } froimport { tagWhite, writeJSON } from './utils';export const genDefaultLocale = () => {- consola.info(`默认语言为 ${i18nConfig.entryLocale}...`);+ consola.info(`Default locale: ${i18nConfig.entryLocale}...`);// Ensure entry locale directory existsconst entryLocaleDir = localeDir(i18nConfig.entryLocale);if (!existsSync(entryLocaleDir)) {mkdirSync(entryLocaleDir, { recursive: true });- consola.info(`创建目录:${entryLocaleDir}`);+ consola.info(`Creating directory: ${entryLocaleDir}`);}const resources = require(srcDefaultLocales);const data = Object.entries(resources.default);- consola.start(`生成默认语言 JSON 文件,发现 ${data.length} 个命名空间...`);+ consola.start(`Generating default locale JSON files, found ${data.length} namespaces...`);for (const [ns, value] of data) {const filepath = entryLocaleJsonFilepath(`${ns}.json`);diff --git a/apps/desktop/scripts/i18nWorkflow/genDiff.ts b/apps/desktop/scripts/i18nWorkflow/genDiff.tsindex ea15d49cb7a..99202556333 100644--- a/apps/desktop/scripts/i18nWorkflow/genDiff.ts+++ b/apps/desktop/scripts/i18nWorkflow/genDiff.ts@@ -13,7 +13,7 @@ import {import { readJSON, tagWhite, writeJSON } from './utils';export const genDiff = () => {- consola.start(`对比开发与生产环境中的本地化文件...`);+ consola.start(`Comparing localization files between dev and prod environments...`);const resources = require(srcDefaultLocales);const data = Object.entries(resources.default);@@ -21,7 +21,7 @@ export const genDiff = () => {for (const [ns, devJSON] of data) {const filepath = entryLocaleJsonFilepath(`${ns}.json`);if (!existsSync(filepath)) {- consola.info(`文件不存在,跳过:${filepath}`);+ consola.info(`File does not exist, skipping: ${filepath}`);continue;}@@ -50,7 +50,7 @@ export const genDiff = () => {}if (clearLocals.length > 0) {- consola.info('清理了以下语言的过期项目:', clearLocals.join(', '));+ consola.info('Cleaned up stale entries for the following locales:', clearLocals.join(', '));}consola.success(tagWhite(ns), colors.gray(filepath));}diff --git a/apps/desktop/scripts/i18nWorkflow/index.ts b/apps/desktop/scripts/i18nWorkflow/index.tsindex 59fc75743dd..cb3b70480d7 100644--- a/apps/desktop/scripts/i18nWorkflow/index.ts+++ b/apps/desktop/scripts/i18nWorkflow/index.ts@@ -21,15 +21,15 @@ const run = async () => {ensureLocalesDirs();// Diff analysis- split('差异分析');+ split('Diff Analysis');genDiff();// Generate default locale files- split('生成默认语言文件');+ split('Generate Default Locale Files');genDefaultLocale();// Generate i18n files- split('生成国际化文件');+ split('Generate i18n Files');};run();diff --git a/apps/device-gateway/src/DeviceGatewayDO.ts b/apps/device-gateway/src/DeviceGatewayDO.tsindex b193f4765d8..739ce866d69 100644--- a/apps/device-gateway/src/DeviceGatewayDO.ts+++ b/apps/device-gateway/src/DeviceGatewayDO.ts@@ -345,7 +345,7 @@ export class DeviceGatewayDO extends DurableObject<Env> {const sockets = this.getAuthenticatedSockets();if (sockets.length === 0) {return Response.json(- { content: '桌面设备不在线', error: 'DEVICE_OFFLINE', success: false },+ { content: 'Desktop device offline', error: 'DEVICE_OFFLINE', success: false },{ status: 503 },);}@@ -395,7 +395,7 @@ export class DeviceGatewayDO extends DurableObject<Env> {} catch (err) {return Response.json({- content: `工具调用超时(${timeout / 1000}s)`,+ content: `Tool call timed out (${timeout / 1000}s)`,error: (err as Error).message,success: false,},