mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-13 19:20:04 +00:00
🌐 chore: translate non-English comments to English in brief-types and conversation (#14410)
This commit is contained in:
@@ -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'],
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user