This commit is contained in:
hailin 2025-05-29 23:19:50 +08:00
parent 74fc21608d
commit e86859fc6e
19 changed files with 150 additions and 23 deletions

View File

@ -307,7 +307,7 @@ export const Message: FC<MessageProps> = ({
size={ICON_SIZE} size={ICON_SIZE}
/> />
<div className="text-lg font-semibold">Prompt</div> <div className="text-lg font-semibold">{t("RAG.prompt")}</div>
</div> </div>
) : ( ) : (
<div className="flex items-center space-x-3"> <div className="flex items-center space-x-3">
@ -380,7 +380,7 @@ export const Message: FC<MessageProps> = ({
<div className="flex animate-pulse items-center space-x-2"> <div className="flex animate-pulse items-center space-x-2">
<IconFileText size={20} /> <IconFileText size={20} />
<div>Searching files...</div> <div>{t("RAG.searchingFiles")}...</div>
</div> </div>
) )
default: default:
@ -388,7 +388,8 @@ export const Message: FC<MessageProps> = ({
<div className="flex animate-pulse items-center space-x-2"> <div className="flex animate-pulse items-center space-x-2">
<IconBolt size={20} /> <IconBolt size={20} />
<div>Using {toolInUse}...</div> {/* <div>Using {toolInUse}...</div> */}
<div>{t("RAG.usingTool", { tool: toolInUse })}</div>
</div> </div>
) )
} }
@ -517,11 +518,11 @@ export const Message: FC<MessageProps> = ({
{isEditing && ( {isEditing && (
<div className="mt-4 flex justify-center space-x-2"> <div className="mt-4 flex justify-center space-x-2">
<Button size="sm" onClick={handleSendEdit}> <Button size="sm" onClick={handleSendEdit}>
Save & Send {t("RAG.saveAndSend")}
</Button> </Button>
<Button size="sm" variant="outline" onClick={onCancelEdit}> <Button size="sm" variant="outline" onClick={onCancelEdit}>
Cancel {t("RAG.cancel")}
</Button> </Button>
</div> </div>
)} )}

View File

@ -288,5 +288,12 @@
"enabled": "مفعل", "enabled": "مفعل",
"disabled": "معطل", "disabled": "معطل",
"startNewChat": "ابدأ محادثة جديدة" "startNewChat": "ابدأ محادثة جديدة"
} },
"RAG": {
"prompt": "الموجه",
"searchingFiles": "جارٍ البحث في الملفات...",
"usingTool": "يتم استخدام {{tool}}...",
"saveAndSend": "حفظ وإرسال",
"cancel": "إلغاء"
}
} }

View File

@ -288,5 +288,12 @@
"enabled": "সক্রিয়", "enabled": "সক্রিয়",
"disabled": "নিষ্ক্রিয়", "disabled": "নিষ্ক্রিয়",
"startNewChat": "নতুন চ্যাট শুরু করুন" "startNewChat": "নতুন চ্যাট শুরু করুন"
} },
"RAG": {
"prompt": "প্রম্পট",
"searchingFiles": "ফাইল অনুসন্ধান করা হচ্ছে...",
"usingTool": "{{tool}} ব্যবহার করা হচ্ছে...",
"saveAndSend": "সংরক্ষণ এবং প্রেরণ",
"cancel": "বাতিল করুন"
}
} }

View File

@ -288,5 +288,12 @@
"enabled": "Aktiviert", "enabled": "Aktiviert",
"disabled": "Deaktiviert", "disabled": "Deaktiviert",
"startNewChat": "Neuen Chat starten" "startNewChat": "Neuen Chat starten"
} },
"RAG": {
"prompt": "Prompt",
"searchingFiles": "Dateien werden durchsucht...",
"usingTool": "{{tool}} wird verwendet...",
"saveAndSend": "Speichern & Senden",
"cancel": "Abbrechen"
}
} }

View File

@ -288,5 +288,12 @@
"enabled": "Enabled", "enabled": "Enabled",
"disabled": "Disabled", "disabled": "Disabled",
"startNewChat": "Start a new chat" "startNewChat": "Start a new chat"
} },
"RAG": {
"prompt": "Prompt",
"searchingFiles": "Searching files...",
"usingTool": "Using {{tool}}...",
"saveAndSend": "Save & Send",
"cancel": "Cancel"
}
} }

View File

@ -288,5 +288,12 @@
"enabled": "Activado", "enabled": "Activado",
"disabled": "Desactivado", "disabled": "Desactivado",
"startNewChat": "Iniciar nuevo chat" "startNewChat": "Iniciar nuevo chat"
} },
"RAG": {
"prompt": "Indicador",
"searchingFiles": "Buscando archivos...",
"usingTool": "Usando {{tool}}...",
"saveAndSend": "Guardar y enviar",
"cancel": "Cancelar"
}
} }

View File

@ -288,5 +288,12 @@
"enabled": "Activé", "enabled": "Activé",
"disabled": "Désactivé", "disabled": "Désactivé",
"startNewChat": "Commencer une nouvelle discussion" "startNewChat": "Commencer une nouvelle discussion"
} },
"RAG": {
"prompt": "Invite",
"searchingFiles": "Recherche de fichiers...",
"usingTool": "Utilisation de {{tool}}...",
"saveAndSend": "Enregistrer et envoyer",
"cancel": "Annuler"
}
} }

View File

@ -289,5 +289,12 @@
"enabled": "מופעל", "enabled": "מופעל",
"disabled": "מנוטרל", "disabled": "מנוטרל",
"startNewChat": "התחל צ׳אט חדש" "startNewChat": "התחל צ׳אט חדש"
} },
"RAG": {
"prompt": "הנחיה",
"searchingFiles": "מחפש קבצים...",
"usingTool": "משתמש ב־{{tool}}...",
"saveAndSend": "שמור ושלח",
"cancel": "ביטול"
}
} }

View File

@ -288,5 +288,12 @@
"enabled": "Aktif", "enabled": "Aktif",
"disabled": "Nonaktif", "disabled": "Nonaktif",
"startNewChat": "Mulai Obrolan Baru" "startNewChat": "Mulai Obrolan Baru"
} },
"RAG": {
"prompt": "Prompt",
"searchingFiles": "Mencari file...",
"usingTool": "Menggunakan {{tool}}...",
"saveAndSend": "Simpan & Kirim",
"cancel": "Batal"
}
} }

View File

@ -288,5 +288,12 @@
"enabled": "Abilitato", "enabled": "Abilitato",
"disabled": "Disabilitato", "disabled": "Disabilitato",
"startNewChat": "Avvia una nuova chat" "startNewChat": "Avvia una nuova chat"
} },
"RAG": {
"prompt": "Prompt",
"searchingFiles": "Ricerca dei file in corso...",
"usingTool": "Utilizzo di {{tool}}...",
"saveAndSend": "Salva e invia",
"cancel": "Annulla"
}
} }

View File

@ -288,6 +288,13 @@
"enabled": "有効", "enabled": "有効",
"disabled": "無効", "disabled": "無効",
"startNewChat": "新しいチャットを開始" "startNewChat": "新しいチャットを開始"
} },
"RAG": {
"prompt": "プロンプト",
"searchingFiles": "ファイルを検索中...",
"usingTool": "{{tool}} を使用中...",
"saveAndSend": "保存して送信",
"cancel": "キャンセル"
}
} }

View File

@ -288,5 +288,12 @@
"enabled": "활성화됨", "enabled": "활성화됨",
"disabled": "비활성화됨", "disabled": "비활성화됨",
"startNewChat": "새 채팅 시작" "startNewChat": "새 채팅 시작"
} },
"RAG": {
"prompt": "프롬프트",
"searchingFiles": "파일 검색 중...",
"usingTool": "{{tool}} 사용 중...",
"saveAndSend": "저장 및 전송",
"cancel": "취소"
}
} }

View File

@ -288,5 +288,12 @@
"enabled": "Ativado", "enabled": "Ativado",
"disabled": "Desativado", "disabled": "Desativado",
"startNewChat": "Iniciar nova conversa" "startNewChat": "Iniciar nova conversa"
} },
"RAG": {
"prompt": "Prompt",
"searchingFiles": "Procurando arquivos...",
"usingTool": "Usando {{tool}}...",
"saveAndSend": "Salvar e Enviar",
"cancel": "Cancelar"
}
} }

View File

@ -288,5 +288,12 @@
"enabled": "Включено", "enabled": "Включено",
"disabled": "Отключено", "disabled": "Отключено",
"startNewChat": "Начать новый чат" "startNewChat": "Начать новый чат"
} },
"RAG": {
"prompt": "Подсказка",
"searchingFiles": "Поиск файлов...",
"usingTool": "Используется {{tool}}...",
"saveAndSend": "Сохранить и отправить",
"cancel": "Отмена"
}
} }

View File

@ -288,5 +288,12 @@
"enabled": "සක්‍රිය", "enabled": "සක්‍රිය",
"disabled": "අක්‍රිය", "disabled": "අක්‍රිය",
"startNewChat": "නව කතාබස් ආරම්භ කරන්න" "startNewChat": "නව කතාබස් ආරම්භ කරන්න"
} },
"RAG": {
"prompt": "ප්‍රෝම්ප්ට්",
"searchingFiles": "ගොනු සෙවීම...",
"usingTool": "{{tool}} භාවිතා කරමින්...",
"saveAndSend": "සුරකින්න සහ යවන්න",
"cancel": "අවලංගු කරන්න"
}
} }

View File

@ -288,5 +288,12 @@
"enabled": "Aktiverad", "enabled": "Aktiverad",
"disabled": "Avaktiverad", "disabled": "Avaktiverad",
"startNewChat": "Starta ny chatt" "startNewChat": "Starta ny chatt"
} },
"RAG": {
"prompt": "Prompt",
"searchingFiles": "Söker efter filer...",
"usingTool": "Använder {{tool}}...",
"saveAndSend": "Spara och skicka",
"cancel": "Avbryt"
}
} }

View File

@ -288,5 +288,12 @@
"enabled": "ప్రదర్శించబడింది", "enabled": "ప్రదర్శించబడింది",
"disabled": "అచేతనం", "disabled": "అచేతనం",
"startNewChat": "కొత్త చాట్ ప్రారంభించు" "startNewChat": "కొత్త చాట్ ప్రారంభించు"
} },
"RAG": {
"prompt": "ప్రాంప్ట్",
"searchingFiles": "ఫైళ్లను శోధిస్తోంది...",
"usingTool": "{{tool}} ఉపయోగిస్తోంది...",
"saveAndSend": "సేవ్ చేసి పంపు",
"cancel": "రద్దు చేయి"
}
} }

View File

@ -288,5 +288,12 @@
"enabled": "Đã bật", "enabled": "Đã bật",
"disabled": "Đã tắt", "disabled": "Đã tắt",
"startNewChat": "Bắt đầu cuộc trò chuyện mới" "startNewChat": "Bắt đầu cuộc trò chuyện mới"
} },
"RAG": {
"prompt": "Gợi ý",
"searchingFiles": "Đang tìm kiếm tệp...",
"usingTool": "Đang sử dụng {{tool}}...",
"saveAndSend": "Lưu và gửi",
"cancel": "Hủy"
}
} }

View File

@ -288,5 +288,12 @@
"enabled": "启用", "enabled": "启用",
"disabled": "禁用", "disabled": "禁用",
"startNewChat": "开始新的对话" "startNewChat": "开始新的对话"
} },
"RAG": {
"prompt": "提示词",
"searchingFiles": "正在搜索文件...",
"usingTool": "正在使用 {{tool}}...",
"saveAndSend": "保存并发送",
"cancel": "取消"
}
} }