diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/Citation/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/Citation/index.jsx index a28e859218f..15b13a00301 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/Citation/index.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/Citation/index.jsx @@ -19,6 +19,7 @@ import ConfluenceLogo from "@/media/dataConnectors/confluence.png"; import DrupalWikiLogo from "@/media/dataConnectors/drupalwiki.png"; import ObsidianLogo from "@/media/dataConnectors/obsidian.png"; import { toPercentString } from "@/utils/numbers"; +import { useTranslation } from "react-i18next"; import pluralize from "pluralize"; import useTextSize from "@/hooks/useTextSize"; @@ -44,6 +45,7 @@ export default function Citations({ sources = [] }) { if (sources.length === 0) return null; const [open, setOpen] = useState(false); const [selectedSource, setSelectedSource] = useState(null); + const { t } = useTranslation(); const { textSizeClass } = useTextSize(); return ( @@ -54,7 +56,9 @@ export default function Citations({ sources = [] }) { open ? "pb-2" : "" } hover:text-white/75 hover:light:text-black/75 transition-all duration-300`} > - {open ? "Hide Citations" : "Show Citations"} + {open + ? t("chat_window.hide_citations") + : t("chat_window.show_citations")} @@ -52,14 +54,14 @@ function ActionMenu({ chatId, forkThread, isEditing, role }) { className="border-none rounded-t-lg flex items-center text-white gap-x-2 hover:bg-theme-action-menu-item-hover py-1.5 px-2 transition-colors duration-200 w-full text-left" > - Fork + {t("chat_window.fork")} )} diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/EditMessage/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/EditMessage/index.jsx index 6967f120b8c..195a6b2cb50 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/EditMessage/index.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/EditMessage/index.jsx @@ -1,6 +1,7 @@ import { Pencil } from "@phosphor-icons/react"; import { useState, useEffect, useRef } from "react"; import Appearance from "@/models/appearance"; +import { useTranslation } from "react-i18next"; const EDIT_EVENT = "toggle-message-edit"; @@ -30,6 +31,7 @@ export function useEditMessage({ chatId, role }) { } export function EditMessageAction({ chatId = null, role, isEditing }) { + const { t } = useTranslation(); function handleEditClick() { window.dispatchEvent( new CustomEvent(EDIT_EVENT, { detail: { chatId, role } }) @@ -46,11 +48,13 @@ export function EditMessageAction({ chatId = null, role, isEditing }) { diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/TTSButton/asyncTts.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/TTSButton/asyncTts.jsx index 15a3f3d2143..734ef0e67d3 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/TTSButton/asyncTts.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/TTSButton/asyncTts.jsx @@ -2,12 +2,14 @@ import { useEffect, useState, useRef } from "react"; import { SpeakerHigh, PauseCircle, CircleNotch } from "@phosphor-icons/react"; import Workspace from "@/models/workspace"; import showToast from "@/utils/toast"; +import { useTranslation } from "react-i18next"; export default function AsyncTTSMessage({ slug, chatId }) { const playerRef = useRef(null); const [speaking, setSpeaking] = useState(false); const [loading, setLoading] = useState(false); const [audioSrc, setAudioSrc] = useState(null); + const { t } = useTranslation(); function speakMessage() { if (speaking) { @@ -59,7 +61,9 @@ export default function AsyncTTSMessage({ slug, chatId }) { data-auto-play-chat-id={chatId} data-tooltip-id="message-to-speech" data-tooltip-content={ - speaking ? "Pause TTS speech of message" : "TTS Speak message" + speaking + ? t("pause_tts_speech_message") + : t("chat_window.tts_speak_message") } className="border-none text-[var(--theme-sidebar-footer-icon-fill)]" aria-label={speaking ? "Pause speech" : "Speak message"} diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/index.jsx index 70236ee9dd0..e0c1273fdbd 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/index.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/index.jsx @@ -5,6 +5,7 @@ import Workspace from "@/models/workspace"; import { EditMessageAction } from "./EditMessage"; import RenderMetrics from "./RenderMetrics"; import ActionMenu from "./ActionMenu"; +import { useTranslation } from "react-i18next"; const Actions = ({ message, @@ -19,6 +20,7 @@ const Actions = ({ metrics = {}, alignmentCls = "", }) => { + const { t } = useTranslation(); const [selectedFeedback, setSelectedFeedback] = useState(feedbackScore); const handleFeedback = async (newFeedback) => { const updatedFeedback = @@ -49,7 +51,7 @@ const Actions = ({ isSelected={selectedFeedback === true} handleFeedback={() => handleFeedback(true)} tooltipId="feedback-button" - tooltipContent="Good response" + tooltipContent={t("chat_window.good_response")} IconComponent={ThumbsUp} /> )} @@ -94,6 +96,7 @@ function FeedbackButton({ function CopyMessage({ message }) { const { copied, copyText } = useCopyText(); + const { t } = useTranslation(); return ( <> @@ -101,9 +104,9 @@ function CopyMessage({ message }) { diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SlashCommands/SlashPresets/AddPresetModal.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SlashCommands/SlashPresets/AddPresetModal.jsx index 2cabfdaadb5..d699effc0c9 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SlashCommands/SlashPresets/AddPresetModal.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SlashCommands/SlashPresets/AddPresetModal.jsx @@ -2,9 +2,11 @@ import { useState } from "react"; import { X } from "@phosphor-icons/react"; import ModalWrapper from "@/components/ModalWrapper"; import { CMD_REGEX } from "."; +import { useTranslation } from "react-i18next"; export default function AddPresetModal({ isOpen, onClose, onSave }) { const [command, setCommand] = useState(""); + const { t } = useTranslation(); const handleSubmit = async (e) => { e.preventDefault(); @@ -29,7 +31,7 @@ export default function AddPresetModal({ isOpen, onClose, onSave }) {

- Add New Preset + {t("chat_window.add_new_preset")}

diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SlashCommands/SlashPresets/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SlashCommands/SlashPresets/index.jsx index 60b443ba0ef..715a149dbb6 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SlashCommands/SlashPresets/index.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SlashCommands/SlashPresets/index.jsx @@ -7,9 +7,11 @@ import System from "@/models/system"; import { DotsThree, Plus } from "@phosphor-icons/react"; import showToast from "@/utils/toast"; import { useSearchParams } from "react-router-dom"; +import { useTranslation } from "react-i18next"; export const CMD_REGEX = new RegExp(/[^a-zA-Z0-9_-]/g); export default function SlashPresets({ setShowing, sendCommand, promptRef }) { + const { t } = useTranslation(); const isActiveAgentSession = useIsAgentSessionActive(); const { isOpen: isAddModalOpen, @@ -130,7 +132,7 @@ export default function SlashPresets({ setShowing, sendCommand, promptRef }) {
- Add New Preset + {t("chat_window.add_new_preset")}
diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SlashCommands/reset.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SlashCommands/reset.jsx index f75468a1205..fedb2c9e214 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SlashCommands/reset.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SlashCommands/reset.jsx @@ -1,6 +1,8 @@ import { useIsAgentSessionActive } from "@/utils/chat/agent"; +import { useTranslation } from "react-i18next"; export default function ResetCommand({ setShowing, sendCommand }) { + const { t } = useTranslation(); const isActiveAgentSession = useIsAgentSessionActive(); if (isActiveAgentSession) return null; // cannot reset during active agent chat @@ -13,9 +15,11 @@ export default function ResetCommand({ setShowing, sendCommand }) { className="border-none w-full hover:cursor-pointer hover:bg-theme-action-menu-item-hover px-2 py-2 rounded-xl flex flex-col justify-start" >
-
/reset
+
+ {t("chat_window.slash_reset")} +
- Clear your chat history and begin a new chat + {t("chat_window.preset_reset_description")}
diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/TextSizeMenu/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/TextSizeMenu/index.jsx index 82511dd3a72..27e2c4154a8 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/TextSizeMenu/index.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/TextSizeMenu/index.jsx @@ -43,6 +43,7 @@ export default function TextSizeButton() { } function TextSizeMenu({ showing, setShowing, buttonRef }) { + const { t } = useTranslation(); const formRef = useRef(null); const [selectedSize, setSelectedSize] = useState( window.localStorage.getItem("anythingllm_text_size") || "normal" @@ -90,7 +91,9 @@ function TextSizeMenu({ showing, setShowing, buttonRef }) { }`} >
-
Small
+
+ {t("chat_window.small")} +
@@ -107,7 +110,9 @@ function TextSizeMenu({ showing, setShowing, buttonRef }) { }`} >
-
Normal
+
+ {t("chat_window.normal")} +
@@ -124,7 +129,9 @@ function TextSizeMenu({ showing, setShowing, buttonRef }) { }`} >
-
Large
+
+ {t("chat_window.large")} +
diff --git a/frontend/src/locales/ar/common.js b/frontend/src/locales/ar/common.js index 85eff20c187..acf19f82f05 100644 --- a/frontend/src/locales/ar/common.js +++ b/frontend/src/locales/ar/common.js @@ -668,6 +668,36 @@ const TRANSLATIONS = { microphone: null, send: null, attachments_processing: null, + tts_speak_message: null, + copy: null, + regenerate: null, + regenerate_response: null, + good_response: null, + more_actions: null, + hide_citations: null, + show_citations: null, + pause_tts_speech_message: null, + fork: null, + delete: null, + save_submit: null, + cancel: null, + edit_prompt: null, + edit_response: null, + at_agent: null, + default_agent_description: null, + custom_agents_coming_soon: null, + slash_reset: null, + preset_reset_description: null, + add_new_preset: null, + command: null, + your_command: null, + placeholder_prompt: null, + description: null, + placeholder_description: null, + save: null, + small: null, + normal: null, + large: null, }, profile_settings: { edit_account: null, diff --git a/frontend/src/locales/da/common.js b/frontend/src/locales/da/common.js index 97cec96bdf0..ae341aa3476 100644 --- a/frontend/src/locales/da/common.js +++ b/frontend/src/locales/da/common.js @@ -706,6 +706,36 @@ const TRANSLATIONS = { microphone: "Tal din prompt.", send: "Send promptbesked til arbejdsområdet", attachments_processing: null, + tts_speak_message: null, + copy: null, + regenerate: null, + regenerate_response: null, + good_response: null, + more_actions: null, + hide_citations: null, + show_citations: null, + pause_tts_speech_message: null, + fork: null, + delete: null, + save_submit: null, + cancel: null, + edit_prompt: null, + edit_response: null, + at_agent: null, + default_agent_description: null, + custom_agents_coming_soon: null, + slash_reset: null, + preset_reset_description: null, + add_new_preset: null, + command: null, + your_command: null, + placeholder_prompt: null, + description: null, + placeholder_description: null, + save: null, + small: null, + normal: null, + large: null, }, profile_settings: { edit_account: "Rediger konto", diff --git a/frontend/src/locales/de/common.js b/frontend/src/locales/de/common.js index eca97877805..0f328f37bbf 100644 --- a/frontend/src/locales/de/common.js +++ b/frontend/src/locales/de/common.js @@ -704,6 +704,36 @@ const TRANSLATIONS = { microphone: "Spreche deinen Prompt ein.", send: "Versende den Prompt an den Arbeitsbereich.", attachments_processing: null, + tts_speak_message: null, + copy: null, + regenerate: null, + regenerate_response: null, + good_response: null, + more_actions: null, + hide_citations: null, + show_citations: null, + pause_tts_speech_message: null, + fork: null, + delete: null, + save_submit: null, + cancel: null, + edit_prompt: null, + edit_response: null, + at_agent: null, + default_agent_description: null, + custom_agents_coming_soon: null, + slash_reset: null, + preset_reset_description: null, + add_new_preset: null, + command: null, + your_command: null, + placeholder_prompt: null, + description: null, + placeholder_description: null, + save: null, + small: null, + normal: null, + large: null, }, profile_settings: { edit_account: "Account bearbeiten", diff --git a/frontend/src/locales/en/common.js b/frontend/src/locales/en/common.js index 37bbd70a891..138e1250768 100644 --- a/frontend/src/locales/en/common.js +++ b/frontend/src/locales/en/common.js @@ -934,6 +934,37 @@ const TRANSLATIONS = { text_size: "Change text size.", microphone: "Speak your prompt.", send: "Send prompt message to workspace", + tts_speak_message: "TTS Speak message", + copy: "Copy", + regenerate: "Regenerate", + regenerate_response: "Regenerate response", + good_response: "Good response", + more_actions: "More actions", + hide_citations: "Hide citations", + show_citations: "Show citations", + pause_tts_speech_message: "Pause TTS speech of message", + fork: "Fork", + delete: "Delete", + save_submit: "Save & Submit", + cancel: "Cancel", + edit_prompt: "Edit prompt", + edit_response: "Edit response", + at_agent: "@agent", + default_agent_description: " - the default agent for this workspace.", + custom_agents_coming_soon: "custom agents are coming soon!", + slash_reset: "/reset", + preset_reset_description: "Clear your chat history and begin a new chat", + add_new_preset: " Add New Preset", + command: "Command", + your_command: "your-command", + placeholder_prompt: + "This is the content that will be injected in front of your prompt.", + description: "Description", + placeholder_description: "Responds with a poem about LLMs.", + save: "Save", + small: "Small", + normal: "Normal", + large: "Large", }, profile_settings: { diff --git a/frontend/src/locales/es/common.js b/frontend/src/locales/es/common.js index 7fa4c449cf8..54134ce2545 100644 --- a/frontend/src/locales/es/common.js +++ b/frontend/src/locales/es/common.js @@ -667,6 +667,36 @@ const TRANSLATIONS = { microphone: null, send: null, attachments_processing: null, + tts_speak_message: null, + copy: null, + regenerate: null, + regenerate_response: null, + good_response: null, + more_actions: null, + hide_citations: null, + show_citations: null, + pause_tts_speech_message: null, + fork: null, + delete: null, + save_submit: null, + cancel: null, + edit_prompt: null, + edit_response: null, + at_agent: null, + default_agent_description: null, + custom_agents_coming_soon: null, + slash_reset: null, + preset_reset_description: null, + add_new_preset: null, + command: null, + your_command: null, + placeholder_prompt: null, + description: null, + placeholder_description: null, + save: null, + small: null, + normal: null, + large: null, }, profile_settings: { edit_account: null, diff --git a/frontend/src/locales/fa/common.js b/frontend/src/locales/fa/common.js index f84a7cb9f06..bccc687b7e0 100644 --- a/frontend/src/locales/fa/common.js +++ b/frontend/src/locales/fa/common.js @@ -660,6 +660,36 @@ const TRANSLATIONS = { microphone: null, send: null, attachments_processing: null, + tts_speak_message: null, + copy: null, + regenerate: null, + regenerate_response: null, + good_response: null, + more_actions: null, + hide_citations: null, + show_citations: null, + pause_tts_speech_message: null, + fork: null, + delete: null, + save_submit: null, + cancel: null, + edit_prompt: null, + edit_response: null, + at_agent: null, + default_agent_description: null, + custom_agents_coming_soon: null, + slash_reset: null, + preset_reset_description: null, + add_new_preset: null, + command: null, + your_command: null, + placeholder_prompt: null, + description: null, + placeholder_description: null, + save: null, + small: null, + normal: null, + large: null, }, profile_settings: { edit_account: null, diff --git a/frontend/src/locales/fr/common.js b/frontend/src/locales/fr/common.js index 64e790bb36f..5a6a87610ae 100644 --- a/frontend/src/locales/fr/common.js +++ b/frontend/src/locales/fr/common.js @@ -668,6 +668,36 @@ const TRANSLATIONS = { microphone: null, send: null, attachments_processing: null, + tts_speak_message: null, + copy: null, + regenerate: null, + regenerate_response: null, + good_response: null, + more_actions: null, + hide_citations: null, + show_citations: null, + pause_tts_speech_message: null, + fork: null, + delete: null, + save_submit: null, + cancel: null, + edit_prompt: null, + edit_response: null, + at_agent: null, + default_agent_description: null, + custom_agents_coming_soon: null, + slash_reset: null, + preset_reset_description: null, + add_new_preset: null, + command: null, + your_command: null, + placeholder_prompt: null, + description: null, + placeholder_description: null, + save: null, + small: null, + normal: null, + large: null, }, profile_settings: { edit_account: null, diff --git a/frontend/src/locales/he/common.js b/frontend/src/locales/he/common.js index 32c2c78849a..06e88c50710 100644 --- a/frontend/src/locales/he/common.js +++ b/frontend/src/locales/he/common.js @@ -653,6 +653,36 @@ const TRANSLATIONS = { microphone: null, send: null, attachments_processing: null, + tts_speak_message: null, + copy: null, + regenerate: null, + regenerate_response: null, + good_response: null, + more_actions: null, + hide_citations: null, + show_citations: null, + pause_tts_speech_message: null, + fork: null, + delete: null, + save_submit: null, + cancel: null, + edit_prompt: null, + edit_response: null, + at_agent: null, + default_agent_description: null, + custom_agents_coming_soon: null, + slash_reset: null, + preset_reset_description: null, + add_new_preset: null, + command: null, + your_command: null, + placeholder_prompt: null, + description: null, + placeholder_description: null, + save: null, + small: null, + normal: null, + large: null, }, profile_settings: { edit_account: null, diff --git a/frontend/src/locales/it/common.js b/frontend/src/locales/it/common.js index 0a1db155d3c..89ee35aee3d 100644 --- a/frontend/src/locales/it/common.js +++ b/frontend/src/locales/it/common.js @@ -666,6 +666,36 @@ const TRANSLATIONS = { microphone: null, send: null, attachments_processing: null, + tts_speak_message: null, + copy: null, + regenerate: null, + regenerate_response: null, + good_response: null, + more_actions: null, + hide_citations: null, + show_citations: null, + pause_tts_speech_message: null, + fork: null, + delete: null, + save_submit: null, + cancel: null, + edit_prompt: null, + edit_response: null, + at_agent: null, + default_agent_description: null, + custom_agents_coming_soon: null, + slash_reset: null, + preset_reset_description: null, + add_new_preset: null, + command: null, + your_command: null, + placeholder_prompt: null, + description: null, + placeholder_description: null, + save: null, + small: null, + normal: null, + large: null, }, profile_settings: { edit_account: null, diff --git a/frontend/src/locales/ja/common.js b/frontend/src/locales/ja/common.js index acdcd7bd033..1d5811fb332 100644 --- a/frontend/src/locales/ja/common.js +++ b/frontend/src/locales/ja/common.js @@ -698,6 +698,36 @@ const TRANSLATIONS = { microphone: "プロンプトを音声入力", send: "ワークスペースにプロンプトメッセージを送信", attachments_processing: null, + tts_speak_message: null, + copy: null, + regenerate: null, + regenerate_response: null, + good_response: null, + more_actions: null, + hide_citations: null, + show_citations: null, + pause_tts_speech_message: null, + fork: null, + delete: null, + save_submit: null, + cancel: null, + edit_prompt: null, + edit_response: null, + at_agent: null, + default_agent_description: null, + custom_agents_coming_soon: null, + slash_reset: null, + preset_reset_description: null, + add_new_preset: null, + command: null, + your_command: null, + placeholder_prompt: null, + description: null, + placeholder_description: null, + save: null, + small: null, + normal: null, + large: null, }, profile_settings: { edit_account: "アカウントを編集", diff --git a/frontend/src/locales/ko/common.js b/frontend/src/locales/ko/common.js index 0750f15a8bd..fb3cc3c5b35 100644 --- a/frontend/src/locales/ko/common.js +++ b/frontend/src/locales/ko/common.js @@ -653,6 +653,36 @@ const TRANSLATIONS = { microphone: null, send: null, attachments_processing: null, + tts_speak_message: null, + copy: null, + regenerate: null, + regenerate_response: null, + good_response: null, + more_actions: null, + hide_citations: null, + show_citations: null, + pause_tts_speech_message: null, + fork: null, + delete: null, + save_submit: null, + cancel: null, + edit_prompt: null, + edit_response: null, + at_agent: null, + default_agent_description: null, + custom_agents_coming_soon: null, + slash_reset: null, + preset_reset_description: null, + add_new_preset: null, + command: null, + your_command: null, + placeholder_prompt: null, + description: null, + placeholder_description: null, + save: null, + small: null, + normal: null, + large: null, }, profile_settings: { edit_account: null, diff --git a/frontend/src/locales/nl/common.js b/frontend/src/locales/nl/common.js index 6fda5a652ca..5f976f4f59c 100644 --- a/frontend/src/locales/nl/common.js +++ b/frontend/src/locales/nl/common.js @@ -663,6 +663,36 @@ const TRANSLATIONS = { microphone: null, send: null, attachments_processing: null, + tts_speak_message: null, + copy: null, + regenerate: null, + regenerate_response: null, + good_response: null, + more_actions: null, + hide_citations: null, + show_citations: null, + pause_tts_speech_message: null, + fork: null, + delete: null, + save_submit: null, + cancel: null, + edit_prompt: null, + edit_response: null, + at_agent: null, + default_agent_description: null, + custom_agents_coming_soon: null, + slash_reset: null, + preset_reset_description: null, + add_new_preset: null, + command: null, + your_command: null, + placeholder_prompt: null, + description: null, + placeholder_description: null, + save: null, + small: null, + normal: null, + large: null, }, profile_settings: { edit_account: null, diff --git a/frontend/src/locales/pt_BR/common.js b/frontend/src/locales/pt_BR/common.js index 45e04e1aebf..d09d9ce6aa3 100644 --- a/frontend/src/locales/pt_BR/common.js +++ b/frontend/src/locales/pt_BR/common.js @@ -20,7 +20,6 @@ const TRANSLATIONS = { passwordReq: "Senhas devem ter pelo menos 8 caracteres.", passwordWarn: "É importante salvar esta senha pois não há método de recuperação.", - adminUsername: "Nome de usuário admin", adminUsernameReq: "O nome deve ter pelo menos 6 caracteres e conter apenas letras minúsculas, números, sublinhados e hífens, sem espaços.", @@ -39,7 +38,6 @@ const TRANSLATIONS = { survey: { title: "Bem-vindo ao AnythingLLM", description: "Ajude-nos a melhorar o AnythingLLM. Opcional.", - email: "Qual seu email?", useCase: "Como você usará o AnythingLLM?", useCaseWork: "Para trabalho", @@ -70,8 +68,6 @@ const TRANSLATIONS = { yes: "Sim", no: "Não", }, - - // Setting Sidebar menu items. settings: { title: "Configurações da Instância", system: "Configurações Gerais", @@ -104,8 +100,6 @@ const TRANSLATIONS = { contact: "Suporte", "browser-extension": "Extensão de Navegador", }, - - // Page Definitions login: { "multi-user": { welcome: "Bem-vindo ao", @@ -129,7 +123,6 @@ const TRANSLATIONS = { "back-to-login": "Voltar ao Login", }, }, - welcomeMessage: { part1: "Bem-vindo ao AnythingLLM, uma ferramenta de IA open-source da Mintplex Labs que transforma qualquer conteúdo em um chatbot treinado. AnythingLLM é um software BYOK (bring-your-own-keys), sem taxas ou assinaturas.", @@ -150,7 +143,6 @@ const TRANSLATIONS = { starOnGitHub: "Estrelar no GitHub", contact: "Contate a Mintplex Labs", }, - "main-page": { noWorkspaceError: "Por favor, crie um workspace antes de iniciar um chat.", checklist: { @@ -233,7 +225,6 @@ const TRANSLATIONS = { }, }, }, - "new-workspace": { title: "Novo Workspace", placeholder: "Meu Workspace", @@ -247,8 +238,6 @@ const TRANSLATIONS = { members: "Membros", agent: "Configuração de Agente", }, - - // General Appearance general: { vector: { title: "Contagem de Vetores", @@ -283,8 +272,6 @@ const TRANSLATIONS = { "workspace. Isso removerá todos os vetores do banco de dados.\n\nOs arquivos originais permanecerão intactos. Esta ação é irreversível.", }, }, - - // Chat Settings chat: { llm: { title: "Provedor de LLM", @@ -380,8 +367,6 @@ const TRANSLATIONS = { success: "Banco de dados resetado com sucesso!", }, }, - - // Agent Configuration agent: { "performance-warning": "O desempenho de LLMs sem suporte a tool-calling varia conforme as capacidades do modelo. Algumas funcionalidades podem ser limitadas.", @@ -401,7 +386,6 @@ const TRANSLATIONS = { "O modelo LLM específico que será usado pelo agente @agent deste workspace.", wait: "-- aguardando modelos --", }, - skill: { title: "Habilidades padrão do agente", description: @@ -439,8 +423,6 @@ const TRANSLATIONS = { }, }, }, - - // Workspace Chats recorded: { title: "Chats do Workspace", description: @@ -455,7 +437,6 @@ const TRANSLATIONS = { at: "Enviado Em", }, }, - customization: { interface: { title: "Preferências de UI", @@ -549,8 +530,6 @@ const TRANSLATIONS = { }, }, }, - - // API Keys api: { title: "Chaves API", description: "Chaves API permitem acesso programático a esta instância.", @@ -562,14 +541,12 @@ const TRANSLATIONS = { created: "Criado Em", }, }, - llm: { title: "Preferência de LLM", description: "Credenciais e configurações do seu provedor de LLM. Essas chaves devem estar corretas para o funcionamento adequado.", provider: "Provedor de LLM", }, - transcription: { title: "Preferência de Transcrição", description: @@ -581,7 +558,6 @@ const TRANSLATIONS = { "warn-end": "O modelo interno será baixado automaticamente no primeiro uso.", }, - embedding: { title: "Preferência de Vínculo", "desc-start": @@ -594,7 +570,6 @@ const TRANSLATIONS = { "Nenhuma configuração é necessária ao usar o mecanismo nativo do AnythingLLM.", }, }, - text: { title: "Preferências de Divisão de Texto", "desc-start": @@ -608,15 +583,12 @@ const TRANSLATIONS = { description: "Comprimento máximo de caracteres em um único vetor.", recommend: "Tamanho máximo do modelo de vínculo é", }, - overlap: { title: "Sobreposição de Trechos", description: "Sobreposição máxima de caracteres entre dois trechos adjacentes.", }, }, - - // Vector Database vector: { title: "Banco de Dados Vetorial", description: @@ -626,8 +598,6 @@ const TRANSLATIONS = { description: "Nenhuma configuração necessária para LanceDB.", }, }, - - // Embeddable Chat Widgets embeddable: { title: "Widgets de Chat vinculado", description: @@ -639,7 +609,6 @@ const TRANSLATIONS = { Active: "Domínios Ativos", }, }, - "embed-chats": { title: "Chats Vinculados", export: "Exportar", @@ -652,7 +621,6 @@ const TRANSLATIONS = { at: "Enviado Em", }, }, - multi: { title: "Modo Multi-Usuário", description: @@ -677,8 +645,6 @@ const TRANSLATIONS = { password: "Senha da instância", }, }, - - // Event Logs event: { title: "Logs de Eventos", description: @@ -690,8 +656,6 @@ const TRANSLATIONS = { occurred: "Ocorrido Em", }, }, - - // Privacy & Data-Handling privacy: { title: "Privacidade & Dados", description: @@ -701,7 +665,6 @@ const TRANSLATIONS = { vector: "Banco de Dados Vetorial", anonymous: "Telemetria Anônima Ativa", }, - connectors: { "search-placeholder": "Buscar conectores", "no-connectors": "Nenhum conector encontrado.", @@ -832,7 +795,6 @@ const TRANSLATIONS = { task_explained: "Após conclusão, o conteúdo da página estará disponível para vínculo.", }, - manage: { documents: "Documentos", "data-connectors": "Conectores de Dados", @@ -898,7 +860,6 @@ const TRANSLATIONS = { accept: "Ok, entendi", }, }, - chat_window: { welcome: "Bem-vindo ao novo workspace.", get_started: "Para começar,", @@ -914,8 +875,37 @@ const TRANSLATIONS = { text_size: "Alterar tamanho do texto.", microphone: "Fale seu prompt.", send: "Enviar prompt para o workspace", + tts_speak_message: null, + copy: null, + regenerate: null, + regenerate_response: null, + good_response: null, + more_actions: null, + hide_citations: null, + show_citations: null, + pause_tts_speech_message: null, + fork: null, + delete: null, + save_submit: null, + cancel: null, + edit_prompt: null, + edit_response: null, + at_agent: null, + default_agent_description: null, + custom_agents_coming_soon: null, + slash_reset: null, + preset_reset_description: null, + add_new_preset: null, + command: null, + your_command: null, + placeholder_prompt: null, + description: null, + placeholder_description: null, + save: null, + small: null, + normal: null, + large: null, }, - profile_settings: { edit_account: "Editar conta", profile_picture: "Foto de perfil", diff --git a/frontend/src/locales/ru/common.js b/frontend/src/locales/ru/common.js index d6bfbeab822..0c8b31b7ead 100644 --- a/frontend/src/locales/ru/common.js +++ b/frontend/src/locales/ru/common.js @@ -707,6 +707,36 @@ const TRANSLATIONS = { microphone: "Произнесите ваш запрос.", send: "Отправить запрос в рабочее пространство", attachments_processing: null, + tts_speak_message: null, + copy: null, + regenerate: null, + regenerate_response: null, + good_response: null, + more_actions: null, + hide_citations: null, + show_citations: null, + pause_tts_speech_message: null, + fork: null, + delete: null, + save_submit: null, + cancel: null, + edit_prompt: null, + edit_response: null, + at_agent: null, + default_agent_description: null, + custom_agents_coming_soon: null, + slash_reset: null, + preset_reset_description: null, + add_new_preset: null, + command: null, + your_command: null, + placeholder_prompt: null, + description: null, + placeholder_description: null, + save: null, + small: null, + normal: null, + large: null, }, profile_settings: { edit_account: "Редактировать учётную запись", diff --git a/frontend/src/locales/tr/common.js b/frontend/src/locales/tr/common.js index c078cbed506..8fb263e4f02 100644 --- a/frontend/src/locales/tr/common.js +++ b/frontend/src/locales/tr/common.js @@ -663,6 +663,36 @@ const TRANSLATIONS = { microphone: null, send: null, attachments_processing: null, + tts_speak_message: null, + copy: null, + regenerate: null, + regenerate_response: null, + good_response: null, + more_actions: null, + hide_citations: null, + show_citations: null, + pause_tts_speech_message: null, + fork: null, + delete: null, + save_submit: null, + cancel: null, + edit_prompt: null, + edit_response: null, + at_agent: null, + default_agent_description: null, + custom_agents_coming_soon: null, + slash_reset: null, + preset_reset_description: null, + add_new_preset: null, + command: null, + your_command: null, + placeholder_prompt: null, + description: null, + placeholder_description: null, + save: null, + small: null, + normal: null, + large: null, }, profile_settings: { edit_account: null, diff --git a/frontend/src/locales/vn/common.js b/frontend/src/locales/vn/common.js index eca23dc66cd..34786f0e8d8 100644 --- a/frontend/src/locales/vn/common.js +++ b/frontend/src/locales/vn/common.js @@ -662,6 +662,36 @@ const TRANSLATIONS = { microphone: null, send: null, attachments_processing: null, + tts_speak_message: null, + copy: null, + regenerate: null, + regenerate_response: null, + good_response: null, + more_actions: null, + hide_citations: null, + show_citations: null, + pause_tts_speech_message: null, + fork: null, + delete: null, + save_submit: null, + cancel: null, + edit_prompt: null, + edit_response: null, + at_agent: null, + default_agent_description: null, + custom_agents_coming_soon: null, + slash_reset: null, + preset_reset_description: null, + add_new_preset: null, + command: null, + your_command: null, + placeholder_prompt: null, + description: null, + placeholder_description: null, + save: null, + small: null, + normal: null, + large: null, }, profile_settings: { edit_account: null, diff --git a/frontend/src/locales/zh/common.js b/frontend/src/locales/zh/common.js index 9e764937f35..87ab830cf18 100644 --- a/frontend/src/locales/zh/common.js +++ b/frontend/src/locales/zh/common.js @@ -832,6 +832,36 @@ const TRANSLATIONS = { microphone: "语音输入你的提示。", send: "将提示消息发送到工作区", attachments_processing: "附件正在处理,请稍候……", + tts_speak_message: null, + copy: null, + regenerate: null, + regenerate_response: null, + good_response: null, + more_actions: null, + hide_citations: null, + show_citations: null, + pause_tts_speech_message: null, + fork: null, + delete: null, + save_submit: null, + cancel: null, + edit_prompt: null, + edit_response: null, + at_agent: null, + default_agent_description: null, + custom_agents_coming_soon: null, + slash_reset: null, + preset_reset_description: null, + add_new_preset: null, + command: null, + your_command: null, + placeholder_prompt: null, + description: null, + placeholder_description: null, + save: null, + small: null, + normal: null, + large: null, }, profile_settings: { edit_account: "编辑帐户", diff --git a/frontend/src/locales/zh_TW/common.js b/frontend/src/locales/zh_TW/common.js index a6377ab959f..ceb19a5d33e 100644 --- a/frontend/src/locales/zh_TW/common.js +++ b/frontend/src/locales/zh_TW/common.js @@ -665,6 +665,36 @@ const TRANSLATIONS = { microphone: "語音輸入提示。", send: "將提示訊息發送到工作區", attachments_processing: null, + tts_speak_message: null, + copy: null, + regenerate: null, + regenerate_response: null, + good_response: null, + more_actions: null, + hide_citations: null, + show_citations: null, + pause_tts_speech_message: null, + fork: null, + delete: null, + save_submit: null, + cancel: null, + edit_prompt: null, + edit_response: null, + at_agent: null, + default_agent_description: null, + custom_agents_coming_soon: null, + slash_reset: null, + preset_reset_description: null, + add_new_preset: null, + command: null, + your_command: null, + placeholder_prompt: null, + description: null, + placeholder_description: null, + save: null, + small: null, + normal: null, + large: null, }, profile_settings: { edit_account: null,