diff --git a/web/src/components/floating-chat-widget.tsx b/web/src/components/floating-chat-widget.tsx index c0bd169aa9..30f548c8a9 100644 --- a/web/src/components/floating-chat-widget.tsx +++ b/web/src/components/floating-chat-widget.tsx @@ -4,6 +4,7 @@ import { MessageType, SharedFrom } from '@/constants/chat'; import { useFetchExternalAgentInputs } from '@/hooks/use-agent-request'; import { useFetchExternalChatInfo } from '@/hooks/use-chat-request'; import i18n, { changeLanguageAsync } from '@/locales/config'; +import { useTranslation } from 'react-i18next'; import { useSendNextSharedMessage } from '@/pages/agent/hooks/use-send-shared-message'; import { MessageCircle, Minimize2, Send, X } from 'lucide-react'; import React, { useCallback, useEffect, useRef, useState } from 'react'; @@ -14,6 +15,7 @@ import { import FloatingChatWidgetMarkdown from './floating-chat-widget-markdown'; const FloatingChatWidget = () => { + const { t } = useTranslation(); const [isOpen, setIsOpen] = useState(false); const [isMinimized, setIsMinimized] = useState(false); const [inputValue, setInputValue] = useState(''); @@ -386,10 +388,10 @@ const FloatingChatWidget = () => {

- {title || 'Chat Support'} + {title || t('chat.chatSupport')}

- We typically reply instantly + {t('chat.replyInstantly')}

@@ -489,7 +491,7 @@ const FloatingChatWidget = () => { handleInputChange(e); }} onKeyPress={handleKeyPress} - placeholder="Type your message..." + placeholder={t('chat.typeYourMessage')} rows={1} className="w-full resize-none border border-gray-300 rounded-2xl px-4 py-3 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent text-black" style={{ minHeight: '44px', maxHeight: '120px' }} @@ -540,10 +542,10 @@ const FloatingChatWidget = () => {

- {title || 'Chat Support'} + {title || t('chat.chatSupport')}

- We typically reply instantly + {t('chat.replyInstantly')}

@@ -666,7 +668,7 @@ const FloatingChatWidget = () => { handleInputChange(e); }} onKeyPress={handleKeyPress} - placeholder="Type your message..." + placeholder={t('chat.typeYourMessage')} rows={1} className="w-full resize-none border border-gray-300 rounded-2xl px-4 py-3 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent text-black" style={{ minHeight: '44px', maxHeight: '120px' }} diff --git a/web/src/locales/ar.ts b/web/src/locales/ar.ts index 711dd010ce..4cdbaffc9b 100644 --- a/web/src/locales/ar.ts +++ b/web/src/locales/ar.ts @@ -652,6 +652,9 @@ export default { delete: 'يمسح', }, chat: { + chatSupport: 'دعم الدردشة', + replyInstantly: 'نرد عادةً على الفور', + typeYourMessage: 'اكتب رسالتك...', messagePlaceholder: 'اكتب رسالتك هنا...', exit: 'مخرج', multipleModels: 'نماذج متعددة', diff --git a/web/src/locales/bg.ts b/web/src/locales/bg.ts index 1a22ad26fb..c70b37c383 100644 --- a/web/src/locales/bg.ts +++ b/web/src/locales/bg.ts @@ -726,6 +726,9 @@ The above is the content you need to summarize.`, delete: 'Изтрий', }, chat: { + chatSupport: 'Чат поддръжка', + replyInstantly: 'Обикновено отговаряме веднага', + typeYourMessage: 'Напишете съобщението си...', messagePlaceholder: 'Въведете вашето съобщение тук...', exit: 'Изход', multipleModels: 'Множество модели', diff --git a/web/src/locales/de.ts b/web/src/locales/de.ts index 74ff077ec5..39b6f5a07a 100644 --- a/web/src/locales/de.ts +++ b/web/src/locales/de.ts @@ -736,6 +736,9 @@ Diese Auto-Tag-Funktion verbessert den Abruf, indem sie eine weitere Schicht dom delete: 'Löschen', }, chat: { + chatSupport: 'Chat-Support', + replyInstantly: 'Wir antworten in der Regel sofort', + typeYourMessage: 'Nachricht eingeben...', messagePlaceholder: 'Geben Sie hier Ihre Nachricht ein...', exit: 'Verlassen', multipleModels: 'Mehrere Modelle', diff --git a/web/src/locales/en.ts b/web/src/locales/en.ts index 289eee6754..8a71425ed3 100644 --- a/web/src/locales/en.ts +++ b/web/src/locales/en.ts @@ -764,6 +764,9 @@ This auto-tagging feature enhances retrieval by adding another layer of domain-s delete: 'Delete', }, chat: { + chatSupport: 'Chat Support', + replyInstantly: 'We typically reply instantly', + typeYourMessage: 'Type your message...', messagePlaceholder: 'Type your message here...', exit: 'Exit', multipleModels: 'Multiple models', diff --git a/web/src/locales/es.ts b/web/src/locales/es.ts index 02bdcef84f..38b7eed485 100644 --- a/web/src/locales/es.ts +++ b/web/src/locales/es.ts @@ -181,6 +181,9 @@ export default { // Otros bloques de traducción // Continua con la misma estructura chat: { + chatSupport: 'Soporte de chat', + replyInstantly: 'Normalmente respondemos al instante', + typeYourMessage: 'Escribe tu mensaje...', newConversation: 'Nueva conversación', createAssistant: 'Crear un asistente', assistantSetting: 'Configuración del asistente', diff --git a/web/src/locales/fr.ts b/web/src/locales/fr.ts index 2a80fc54b9..623dec6dd7 100644 --- a/web/src/locales/fr.ts +++ b/web/src/locales/fr.ts @@ -337,6 +337,9 @@ export default { delete: 'Supprimer', }, chat: { + chatSupport: 'Support par chat', + replyInstantly: 'Nous répondons généralement instantanément', + typeYourMessage: 'Tapez votre message...', newConversation: 'Nouvelle conversation', createAssistant: 'Créer un assistant', assistantSetting: 'Paramètres de l’assistant', diff --git a/web/src/locales/id.ts b/web/src/locales/id.ts index 6dbb2cce60..626aa585d5 100644 --- a/web/src/locales/id.ts +++ b/web/src/locales/id.ts @@ -352,6 +352,9 @@ export default { mind: 'Peta pikiran', }, chat: { + chatSupport: 'Dukungan Obrolan', + replyInstantly: 'Kami biasanya membalas secara instan', + typeYourMessage: 'Ketik pesan Anda...', newConversation: 'Percakapan baru', createAssistant: 'Buat Asisten', assistantSetting: 'Pengaturan Asisten', diff --git a/web/src/locales/it.ts b/web/src/locales/it.ts index c72e4e179a..086d4bd14a 100644 --- a/web/src/locales/it.ts +++ b/web/src/locales/it.ts @@ -533,6 +533,9 @@ Quanto sopra è il contenuto che devi riassumere.`, delete: 'Elimina', }, chat: { + chatSupport: 'Supporto chat', + replyInstantly: 'Di solito rispondiamo istantaneamente', + typeYourMessage: 'Scrivi il tuo messaggio...', messagePlaceholder: 'Scrivi il tuo messaggio qui...', exit: 'Esci', multipleModels: 'Modelli multipli', diff --git a/web/src/locales/ja.ts b/web/src/locales/ja.ts index b9335508f5..d12fc247cc 100644 --- a/web/src/locales/ja.ts +++ b/web/src/locales/ja.ts @@ -350,6 +350,9 @@ export default { questionTip: `質問が指定されている場合、チャンクの埋め込みはそれらに基づきます。`, }, chat: { + chatSupport: 'チャットサポート', + replyInstantly: '通常、即座に返信します', + typeYourMessage: 'メッセージを入力...', messagePlaceholder: 'メッセージを入力してください...', exit: '終了', multipleModels: '複数モデル', diff --git a/web/src/locales/pt-br.ts b/web/src/locales/pt-br.ts index d2675040b5..6f09156513 100644 --- a/web/src/locales/pt-br.ts +++ b/web/src/locales/pt-br.ts @@ -349,6 +349,9 @@ export default { questionTip: `Se houver perguntas fornecidas, a incorporação do fragmento será baseada nelas.`, }, chat: { + chatSupport: 'Suporte por chat', + replyInstantly: 'Normalmente respondemos instantaneamente', + typeYourMessage: 'Digite sua mensagem...', newConversation: 'Nova conversa', createAssistant: 'Criar um Assistente', assistantSetting: 'Configuração do Assistente', diff --git a/web/src/locales/ru.ts b/web/src/locales/ru.ts index c5f9c3794d..6916b51635 100644 --- a/web/src/locales/ru.ts +++ b/web/src/locales/ru.ts @@ -767,6 +767,9 @@ export default { delete: 'Удалить', }, chat: { + chatSupport: 'Чат-поддержка', + replyInstantly: 'Обычно мы отвечаем мгновенно', + typeYourMessage: 'Введите сообщение...', messagePlaceholder: 'Введите ваше сообщение здесь...', exit: 'Выход', multipleModels: 'Несколько моделей', diff --git a/web/src/locales/tr.ts b/web/src/locales/tr.ts index 8aac442de5..4cf588b3e3 100644 --- a/web/src/locales/tr.ts +++ b/web/src/locales/tr.ts @@ -752,6 +752,9 @@ Bu otomatik etiketleme özelliği, mevcut datasete alanına özgü bilgi katman delete: 'Sil', }, chat: { + chatSupport: 'Sohbet Desteği', + replyInstantly: 'Genellikle anında yanıt veririz', + typeYourMessage: 'Mesajınızı yazın...', messagePlaceholder: 'Mesajınızı buraya yazın...', exit: 'Çıkış', multipleModels: 'Birden fazla model', diff --git a/web/src/locales/vi.ts b/web/src/locales/vi.ts index d9225f0851..32552f49e7 100644 --- a/web/src/locales/vi.ts +++ b/web/src/locales/vi.ts @@ -393,6 +393,9 @@ export default { 'Nếu có những câu hỏi được đưa ra, việc nhúng phần đó sẽ dựa trên những câu hỏi đó.', }, chat: { + chatSupport: 'Hỗ trợ trò chuyện', + replyInstantly: 'Chúng tôi thường phản hồi ngay lập tức', + typeYourMessage: 'Nhập tin nhắn của bạn...', newConversation: 'Cuộc trò chuyện mới', createAssistant: 'Tạo trợ lý', assistantSetting: 'Cài đặt trợ lý', diff --git a/web/src/locales/zh-traditional.ts b/web/src/locales/zh-traditional.ts index 5153677371..1cc913828e 100644 --- a/web/src/locales/zh-traditional.ts +++ b/web/src/locales/zh-traditional.ts @@ -424,6 +424,9 @@ export default { delete: '删除', }, chat: { + chatSupport: '聊天支援', + replyInstantly: '我們通常會即時回覆', + typeYourMessage: '輸入您的訊息...', newConversation: '新會話', createAssistant: '新建助理', assistantSetting: '助理設置', diff --git a/web/src/locales/zh.ts b/web/src/locales/zh.ts index a47ebddabe..9feee86134 100644 --- a/web/src/locales/zh.ts +++ b/web/src/locales/zh.ts @@ -684,6 +684,9 @@ General:实体和关系提取提示来自 GitHub - microsoft/graphrag:基于 delete: '删除', }, chat: { + chatSupport: '聊天支持', + replyInstantly: '我们通常会即时回复', + typeYourMessage: '输入您的消息...', messagePlaceholder: '请输入消息...', exit: '退出', multipleModels: '多模型',