Skip to content

๐Ÿคฏ 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.

๐ŸŒ chore: translate non-English comments to English in brief-types and conversation (#14410)

LobeHub Bot79b84a68ec58
diff --git a/packages/builtin-tool-brief/src/manifest.ts b/packages/builtin-tool-brief/src/manifest.ts
index 71cde996e25..fb3a7fc77b4 100644
--- a/packages/builtin-tool-brief/src/manifest.ts
+++ b/packages/builtin-tool-brief/src/manifest.ts
@@ -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'],
diff --git a/packages/types/src/brief/index.ts b/packages/types/src/brief/index.ts
index 954886bf535..9d5286b51a3 100644
--- a/packages/types/src/brief/index.ts
+++ b/packages/types/src/brief/index.ts
@@ -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 */
diff --git a/src/features/Conversation/hooks/useChatListActionsBar.tsx b/src/features/Conversation/hooks/useChatListActionsBar.tsx
index a4657aba769..bdcc6d70313 100644
--- a/src/features/Conversation/hooks/useChatListActionsBar.tsx
+++ b/src/features/Conversation/hooks/useChatListActionsBar.tsx
@@ -110,7 +110,7 @@ export const useChatListActionsBar = ({
export: {
icon: DownloadIcon,
key: 'export',
- label: 'ๅฏผๅ‡บไธบ PDF',
+ label: 'Export as PDF',
},
regenerate: {
disabled: isRegenerating,
diff --git a/src/features/Conversation/store/slices/data/reducer.ts b/src/features/Conversation/store/slices/data/reducer.ts
index 1ba1ca5c714..ea696382c94 100644
--- a/src/features/Conversation/store/slices/data/reducer.ts
+++ b/src/features/Conversation/store/slices/data/reducer.ts
@@ -314,7 +314,7 @@ export const messagesReducer = (
}
default: {
- throw new Error('ๆœชๅฎž็Žฐ็š„ dispatch type๏ผŒ่ฏทๆฃ€ๆŸฅ reducer');
+ throw new Error('Unimplemented dispatch type, check reducer');
}
}
};