From bc53ff31293d4b0ced19acba7d69df28aee60aa9 Mon Sep 17 00:00:00 2001 From: kicer Date: Fri, 4 Sep 2026 12:54:33 +0800 Subject: [PATCH] i18n(image-gen): translate tool description & token-error text to English Translate the four strings introduced in baa04d9 (\u8c03\u6574\u90e8\u5206\u63d0\u793a\u8bcd) to clear English. Other Chinese strings in this file (success summary, image-N labels, failure detail) were not changed in that commit and are intentionally left untouched here. --- mcp/image-gen/src/mcp-server.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mcp/image-gen/src/mcp-server.js b/mcp/image-gen/src/mcp-server.js index 7a4aff4..2fa19d3 100644 --- a/mcp/image-gen/src/mcp-server.js +++ b/mcp/image-gen/src/mcp-server.js @@ -112,17 +112,17 @@ function buildServer() { server.tool( "generate_image", - "根据 prompt 生成图片,返回图片 URL。可选指定 size。", + "Generate an image from a prompt and return the image URL. Optionally specify size.", { prompt: z .string() .min(1) - .describe("图片生成提示词,详细描述想要的画面内容"), + .describe("Image generation prompt; describe the desired scene in detail."), size: z .string() .optional() .describe( - "图片尺寸,例如 1024x1024、1280x1280、1024x1792、1792x1024、768x1344、1344x768" + "Image size, e.g. 1024x1024, 1280x1280, 1024x1792, 1792x1024, 768x1344, 1344x768" ), }, async (args, extra) => { @@ -137,7 +137,7 @@ function buildServer() { { type: "text", text: - "缺少鉴权 token。", + "Missing authentication token.", }, ], };