🌐 chore: translate non-English comments to English in brief-types and conversation (#14410)

This commit is contained in:
LobeHub Bot
2026-05-05 12:23:26 +08:00
committed by GitHub
parent 56e811f5bd
commit 79b84a68ec
4 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ export const BriefManifest: BuiltinToolManifest = {
items: {
properties: {
key: { description: 'Action identifier, e.g. "approve", "split"', type: 'string' },
label: { description: 'Display label, e.g. "✅ 同意拆分"', type: 'string' },
label: { description: 'Display label, e.g. "✅ Agree to split"', type: 'string' },
type: {
description: '"resolve" closes the brief, "comment" prompts for text input',
enum: ['resolve', 'comment'],
+5 -5
View File
@@ -23,14 +23,14 @@ export interface BriefAction {
*/
export const DEFAULT_BRIEF_ACTIONS: Record<string, BriefAction[]> = {
decision: [
{ key: 'approve', label: '✅ 确认', type: 'resolve' },
{ key: 'feedback', label: '💬 修改意见', type: 'comment' },
{ key: 'approve', label: '✅ Confirm', type: 'resolve' },
{ key: 'feedback', label: '💬 Request changes', type: 'comment' },
],
error: [
{ key: 'retry', label: '🔄 重试', type: 'resolve' },
{ key: 'feedback', label: '💬 反馈', type: 'comment' },
{ key: 'retry', label: '🔄 Retry', type: 'resolve' },
{ key: 'feedback', label: '💬 Feedback', type: 'comment' },
],
insight: [{ key: 'acknowledge', label: '👍 知悉', type: 'resolve' }],
insight: [{ key: 'acknowledge', label: '👍 Acknowledged', type: 'resolve' }],
};
/** Brief type — must match DEFAULT_BRIEF_ACTIONS keys and DB schema comment */
@@ -110,7 +110,7 @@ export const useChatListActionsBar = ({
export: {
icon: DownloadIcon,
key: 'export',
label: '导出为 PDF',
label: 'Export as PDF',
},
regenerate: {
disabled: isRegenerating,
@@ -314,7 +314,7 @@ export const messagesReducer = (
}
default: {
throw new Error('未实现的 dispatch type,请检查 reducer');
throw new Error('Unimplemented dispatch type, check reducer');
}
}
};