mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-14 17:03:29 +03:00
feat: add 2 save buttons on Brain management tab (#1039)
* add 2 save buttons * use translation
This commit is contained in:
parent
f1d6b7892c
commit
d7a508acdd
@ -15,6 +15,7 @@ import {
|
||||
paidModels,
|
||||
} from "@/lib/context/BrainConfigProvider/types";
|
||||
import { defineMaxTokens } from "@/lib/helpers/defineMaxTokens";
|
||||
import { SaveButton } from "@/shared/SaveButton";
|
||||
|
||||
import { PublicPrompts } from "./components/PublicPrompts/PublicPrompts";
|
||||
import { useSettingsTab } from "./hooks/useSettingsTab";
|
||||
@ -54,7 +55,7 @@ export const SettingsTab = ({ brainId }: SettingsTabProps): JSX.Element => {
|
||||
<div className="flex flex-row flex-1 justify-between w-full">
|
||||
<div>
|
||||
<Field
|
||||
label={ t("brainName", { ns: "brain" })}
|
||||
label={t("brainName", { ns: "brain" })}
|
||||
placeholder={t("brainNamePlaceholder", { ns: "brain" })}
|
||||
autoComplete="off"
|
||||
className="flex-1"
|
||||
@ -140,6 +141,9 @@ export const SettingsTab = ({ brainId }: SettingsTabProps): JSX.Element => {
|
||||
{...register("maxTokens")}
|
||||
/>
|
||||
</fieldset>
|
||||
<div className="flex w-full justify-end py-4">
|
||||
<SaveButton handleSubmit={handleSubmit} />
|
||||
</div>
|
||||
<Divider text={t("customPromptSection", { ns: "config" })} />
|
||||
<PublicPrompts onSelect={pickPublicPrompt} />
|
||||
<Field
|
||||
@ -156,6 +160,9 @@ export const SettingsTab = ({ brainId }: SettingsTabProps): JSX.Element => {
|
||||
className="flex-1"
|
||||
{...register("prompt.content")}
|
||||
/>
|
||||
<div className="flex w-full justify-end py-4">
|
||||
<SaveButton handleSubmit={handleSubmit} />
|
||||
</div>
|
||||
{promptId !== "" && (
|
||||
<Button disabled={isUpdating} onClick={() => void removeBrainPrompt()}>
|
||||
{t("removePrompt", { ns: "config" })}
|
||||
|
@ -1,47 +1,48 @@
|
||||
{
|
||||
"lang": "en-US",
|
||||
"title": "Quivr - Get a Second Brain with Generative AI",
|
||||
"title.short": "Get a Second Brain with",
|
||||
"description": "Quivr is your second brain in the cloud, designed to easily store and retrieve unstructured information.",
|
||||
"getStarted": "Get Started",
|
||||
"features": "Features",
|
||||
"two_brains_title": "Two brains is better than one",
|
||||
"two_brains_desc": "Quivr is your second brain in the cloud, designed to easily store and retrieve unstructured information.",
|
||||
"any_kind_of_data_title": "Store any kind of data",
|
||||
"any_kind_of_data_desc": "Quivr can handle almost any type of data you throw at it. Text, images, code snippets, we've got you covered.",
|
||||
"fast_and_accurate_title": "Get a Fast and Consistent Brain",
|
||||
"fast_and_accurate_desc": "Quivr is your second brain in the cloud, designed to easily store and retrieve unstructured information.",
|
||||
"fast_and_efficient_title": "Fast and Efficient",
|
||||
"fast_and_efficient_desc": "Designed with speed and efficiency at its core. Quivr ensures rapid access to your data.",
|
||||
"secure_title": "Secure",
|
||||
"secure_desc": "Your data, your control. Always.",
|
||||
"open_source_title": "Open source",
|
||||
"open_source_desc": "Freedom is beautiful, so is Quivr. Open source and free to use.",
|
||||
"toastDismiss": "dismiss",
|
||||
"email": "Email",
|
||||
"password": "Password",
|
||||
"or": "or",
|
||||
"loginButton": "Login",
|
||||
"signUpButton": "Sign up",
|
||||
"logoutButton": "Logout",
|
||||
"updateButton": "Update",
|
||||
"uploadButton": "Upload",
|
||||
"uploadingButton": "Uploading...",
|
||||
"crawlButton": "Crawl",
|
||||
"chatButton": "Chat",
|
||||
"deleteButton": "Delete",
|
||||
"deleteForeverButton": "Delete forever",
|
||||
"doneButton": "Done",
|
||||
"resetButton": "Reset",
|
||||
"newChatButton": "New Chat",
|
||||
"createButton": "Create",
|
||||
"shareButton": "Share",
|
||||
"Upload": "Upload",
|
||||
"Chat": "Chat",
|
||||
"Explore": "Explore",
|
||||
"loading": "Loading...",
|
||||
"comingSoon": "Coming soon",
|
||||
"Viewer": "Viewer",
|
||||
"Editor": "Editor",
|
||||
"Owner": "Owner"
|
||||
}
|
||||
"lang": "en-US",
|
||||
"title": "Quivr - Get a Second Brain with Generative AI",
|
||||
"title.short": "Get a Second Brain with",
|
||||
"description": "Quivr is your second brain in the cloud, designed to easily store and retrieve unstructured information.",
|
||||
"getStarted": "Get Started",
|
||||
"features": "Features",
|
||||
"two_brains_title": "Two brains is better than one",
|
||||
"two_brains_desc": "Quivr is your second brain in the cloud, designed to easily store and retrieve unstructured information.",
|
||||
"any_kind_of_data_title": "Store any kind of data",
|
||||
"any_kind_of_data_desc": "Quivr can handle almost any type of data you throw at it. Text, images, code snippets, we've got you covered.",
|
||||
"fast_and_accurate_title": "Get a Fast and Consistent Brain",
|
||||
"fast_and_accurate_desc": "Quivr is your second brain in the cloud, designed to easily store and retrieve unstructured information.",
|
||||
"fast_and_efficient_title": "Fast and Efficient",
|
||||
"fast_and_efficient_desc": "Designed with speed and efficiency at its core. Quivr ensures rapid access to your data.",
|
||||
"secure_title": "Secure",
|
||||
"secure_desc": "Your data, your control. Always.",
|
||||
"open_source_title": "Open source",
|
||||
"open_source_desc": "Freedom is beautiful, so is Quivr. Open source and free to use.",
|
||||
"toastDismiss": "dismiss",
|
||||
"email": "Email",
|
||||
"password": "Password",
|
||||
"or": "or",
|
||||
"loginButton": "Login",
|
||||
"signUpButton": "Sign up",
|
||||
"logoutButton": "Logout",
|
||||
"updateButton": "Update",
|
||||
"uploadButton": "Upload",
|
||||
"uploadingButton": "Uploading...",
|
||||
"crawlButton": "Crawl",
|
||||
"chatButton": "Chat",
|
||||
"deleteButton": "Delete",
|
||||
"deleteForeverButton": "Delete forever",
|
||||
"doneButton": "Done",
|
||||
"resetButton": "Reset",
|
||||
"newChatButton": "New Chat",
|
||||
"createButton": "Create",
|
||||
"shareButton": "Share",
|
||||
"Upload": "Upload",
|
||||
"Chat": "Chat",
|
||||
"Explore": "Explore",
|
||||
"loading": "Loading...",
|
||||
"comingSoon": "Coming soon",
|
||||
"Viewer": "Viewer",
|
||||
"Editor": "Editor",
|
||||
"Owner": "Owner",
|
||||
"saveButton": "Save"
|
||||
}
|
||||
|
@ -1,47 +1,48 @@
|
||||
{
|
||||
"any_kind_of_data_desc": "Quivr puede gestionar casi cualquier tipo de dato que le brindes. Texto, imagen, fragmentos de código, te tenemos cubierto.",
|
||||
"any_kind_of_data_title": "Almacena cualquier tipo de dato",
|
||||
"Chat": "Conversar",
|
||||
"chatButton": "Conversar",
|
||||
"comingSoon": "Próximamente",
|
||||
"crawlButton": "Rastrear",
|
||||
"createButton": "Crear",
|
||||
"deleteButton": "Borrar",
|
||||
"deleteForeverButton": "Borrar para siempre",
|
||||
"description": "Quivr es tu segundo cerebro en la nube, diseñado para facilitar el almacenamiento y obtención de información inestructurada.",
|
||||
"doneButton": "Listo",
|
||||
"Editor": "Editor",
|
||||
"email": "Correo electrónico",
|
||||
"Explore": "Explorar",
|
||||
"fast_and_accurate_desc": "Quivr es tu segundo cerebro en la nube, diseñado para almacenar y obtener información inestructurada.",
|
||||
"fast_and_accurate_title": "Obtén un Cerebro rápido y consistente",
|
||||
"fast_and_efficient_desc": "Diseñado con velocidad y eficiciencia como base. Quivr asegura rápido acceso a tus datos.",
|
||||
"fast_and_efficient_title": "Rápido y eficiente",
|
||||
"features": "Características",
|
||||
"getStarted": "Empezar a usar",
|
||||
"lang": "es-ES",
|
||||
"loading": "Cargando...",
|
||||
"loginButton": "Iniciar sesión",
|
||||
"logoutButton": "Cerrar sesión",
|
||||
"newChatButton": "Nueva conversación",
|
||||
"open_source_desc": "La libertad es hermosa, al igual que Quivr. Código abierto y de uso gratuito.",
|
||||
"open_source_title": "Open source",
|
||||
"or": "o",
|
||||
"Owner": "Propietario",
|
||||
"password": "Contraseña",
|
||||
"resetButton": "Restaurar",
|
||||
"secure_desc": "Tú controlas tus datos. Siempre.",
|
||||
"secure_title": "Seguro",
|
||||
"shareButton": "Compartir",
|
||||
"signUpButton": "Registrarse",
|
||||
"title": "Quivr - Tu segundo cerebro con IA generativa",
|
||||
"title.short": "Obtén un Segundo Cerebro con",
|
||||
"toastDismiss": "cerrar",
|
||||
"two_brains_desc": "Quivr es tu segundo cerebro en la nube, diseñado para almacenar y obtener información inestructurada.",
|
||||
"two_brains_title": "Dos cerebros son mejores que uno",
|
||||
"updateButton": "Actualizar",
|
||||
"Upload": "Subir",
|
||||
"uploadButton": "Subir",
|
||||
"uploadingButton": "Subiendo...",
|
||||
"Viewer": "Espectador"
|
||||
}
|
||||
"any_kind_of_data_desc": "Quivr puede gestionar casi cualquier tipo de dato que le brindes. Texto, imagen, fragmentos de código, te tenemos cubierto.",
|
||||
"any_kind_of_data_title": "Almacena cualquier tipo de dato",
|
||||
"Chat": "Conversar",
|
||||
"chatButton": "Conversar",
|
||||
"comingSoon": "Próximamente",
|
||||
"crawlButton": "Rastrear",
|
||||
"createButton": "Crear",
|
||||
"deleteButton": "Borrar",
|
||||
"deleteForeverButton": "Borrar para siempre",
|
||||
"description": "Quivr es tu segundo cerebro en la nube, diseñado para facilitar el almacenamiento y obtención de información inestructurada.",
|
||||
"doneButton": "Listo",
|
||||
"Editor": "Editor",
|
||||
"email": "Correo electrónico",
|
||||
"Explore": "Explorar",
|
||||
"fast_and_accurate_desc": "Quivr es tu segundo cerebro en la nube, diseñado para almacenar y obtener información inestructurada.",
|
||||
"fast_and_accurate_title": "Obtén un Cerebro rápido y consistente",
|
||||
"fast_and_efficient_desc": "Diseñado con velocidad y eficiciencia como base. Quivr asegura rápido acceso a tus datos.",
|
||||
"fast_and_efficient_title": "Rápido y eficiente",
|
||||
"features": "Características",
|
||||
"getStarted": "Empezar a usar",
|
||||
"lang": "es-ES",
|
||||
"loading": "Cargando...",
|
||||
"loginButton": "Iniciar sesión",
|
||||
"logoutButton": "Cerrar sesión",
|
||||
"newChatButton": "Nueva conversación",
|
||||
"open_source_desc": "La libertad es hermosa, al igual que Quivr. Código abierto y de uso gratuito.",
|
||||
"open_source_title": "Open source",
|
||||
"or": "o",
|
||||
"Owner": "Propietario",
|
||||
"password": "Contraseña",
|
||||
"resetButton": "Restaurar",
|
||||
"secure_desc": "Tú controlas tus datos. Siempre.",
|
||||
"secure_title": "Seguro",
|
||||
"shareButton": "Compartir",
|
||||
"signUpButton": "Registrarse",
|
||||
"title": "Quivr - Tu segundo cerebro con IA generativa",
|
||||
"title.short": "Obtén un Segundo Cerebro con",
|
||||
"toastDismiss": "cerrar",
|
||||
"two_brains_desc": "Quivr es tu segundo cerebro en la nube, diseñado para almacenar y obtener información inestructurada.",
|
||||
"two_brains_title": "Dos cerebros son mejores que uno",
|
||||
"updateButton": "Actualizar",
|
||||
"Upload": "Subir",
|
||||
"uploadButton": "Subir",
|
||||
"uploadingButton": "Subiendo...",
|
||||
"Viewer": "Espectador",
|
||||
"saveButton": "Guardar"
|
||||
}
|
||||
|
@ -1,47 +1,48 @@
|
||||
{
|
||||
"lang": "fr-FR",
|
||||
"title": "Quivr - Obtenez un deuxième cerveau avec l'IA générative",
|
||||
"title.short": "Obtenez un deuxième cerveau avec",
|
||||
"description": "Quivr est votre deuxième cerveau dans le nuage, conçu pour stocker et récupérer facilement des informations non structurées.",
|
||||
"getStarted": "Commencer",
|
||||
"features": "Fonctionnalités",
|
||||
"two_brains_title": "Deux cerveaux valent mieux qu'un",
|
||||
"two_brains_desc": "Quivr est votre deuxième cerveau dans le nuage, conçu pour stocker et récupérer facilement des informations non structurées.",
|
||||
"any_kind_of_data_title": "Stockez n'importe quel type de données",
|
||||
"any_kind_of_data_desc": "Quivr peut gérer presque n'importe quel type de données que vous lui donnez. Texte, images, extraits de code, nous avons ce qu'il vous faut.",
|
||||
"fast_and_accurate_title": "Obtenez un cerveau rapide et cohérent",
|
||||
"fast_and_accurate_desc": "Quivr est votre deuxième cerveau dans le nuage, conçu pour stocker et récupérer facilement des informations non structurées.",
|
||||
"fast_and_efficient_title": "Rapide et efficace",
|
||||
"fast_and_efficient_desc": "Conçu avec la rapidité et l'efficacité à son cœur. Quivr assure un accès rapide à vos données.",
|
||||
"secure_title": "Sécurisé",
|
||||
"secure_desc": "Vos données, votre contrôle. Toujours.",
|
||||
"open_source_title": "Open source",
|
||||
"open_source_desc": "La liberté est belle, tout comme Quivr. Open source et gratuit à utiliser.",
|
||||
"toastDismiss": "ignorer",
|
||||
"email": "Email",
|
||||
"password": "Mot de passe",
|
||||
"or": "ou",
|
||||
"loginButton": "Connexion",
|
||||
"signUpButton": "S'inscrire",
|
||||
"logoutButton": "Déconnexion",
|
||||
"updateButton": "Mettre à jour",
|
||||
"uploadButton": "Télécharger",
|
||||
"uploadingButton": "Téléchargement...",
|
||||
"crawlButton": "Explorer",
|
||||
"chatButton": "Chat",
|
||||
"deleteButton": "Supprimer",
|
||||
"deleteForeverButton": "Supprimer définitivement",
|
||||
"doneButton": "Fait",
|
||||
"resetButton": "Réinitialiser",
|
||||
"newChatButton": "Nouveau chat",
|
||||
"createButton": "Créer",
|
||||
"shareButton": "Partager",
|
||||
"Upload": "Télécharger",
|
||||
"Chat": "Chat",
|
||||
"Explore": "Explorer",
|
||||
"loading": "Chargement...",
|
||||
"comingSoon": "Bientôt disponible",
|
||||
"Viewer": "Visualiseur",
|
||||
"Editor": "Éditeur",
|
||||
"Owner": "Propriétaire"
|
||||
}
|
||||
"lang": "fr-FR",
|
||||
"title": "Quivr - Obtenez un deuxième cerveau avec l'IA générative",
|
||||
"title.short": "Obtenez un deuxième cerveau avec",
|
||||
"description": "Quivr est votre deuxième cerveau dans le nuage, conçu pour stocker et récupérer facilement des informations non structurées.",
|
||||
"getStarted": "Commencer",
|
||||
"features": "Fonctionnalités",
|
||||
"two_brains_title": "Deux cerveaux valent mieux qu'un",
|
||||
"two_brains_desc": "Quivr est votre deuxième cerveau dans le nuage, conçu pour stocker et récupérer facilement des informations non structurées.",
|
||||
"any_kind_of_data_title": "Stockez n'importe quel type de données",
|
||||
"any_kind_of_data_desc": "Quivr peut gérer presque n'importe quel type de données que vous lui donnez. Texte, images, extraits de code, nous avons ce qu'il vous faut.",
|
||||
"fast_and_accurate_title": "Obtenez un cerveau rapide et cohérent",
|
||||
"fast_and_accurate_desc": "Quivr est votre deuxième cerveau dans le nuage, conçu pour stocker et récupérer facilement des informations non structurées.",
|
||||
"fast_and_efficient_title": "Rapide et efficace",
|
||||
"fast_and_efficient_desc": "Conçu avec la rapidité et l'efficacité à son cœur. Quivr assure un accès rapide à vos données.",
|
||||
"secure_title": "Sécurisé",
|
||||
"secure_desc": "Vos données, votre contrôle. Toujours.",
|
||||
"open_source_title": "Open source",
|
||||
"open_source_desc": "La liberté est belle, tout comme Quivr. Open source et gratuit à utiliser.",
|
||||
"toastDismiss": "ignorer",
|
||||
"email": "Email",
|
||||
"password": "Mot de passe",
|
||||
"or": "ou",
|
||||
"loginButton": "Connexion",
|
||||
"signUpButton": "S'inscrire",
|
||||
"logoutButton": "Déconnexion",
|
||||
"updateButton": "Mettre à jour",
|
||||
"uploadButton": "Télécharger",
|
||||
"uploadingButton": "Téléchargement...",
|
||||
"crawlButton": "Explorer",
|
||||
"chatButton": "Chat",
|
||||
"deleteButton": "Supprimer",
|
||||
"deleteForeverButton": "Supprimer définitivement",
|
||||
"doneButton": "Fait",
|
||||
"resetButton": "Réinitialiser",
|
||||
"newChatButton": "Nouveau chat",
|
||||
"createButton": "Créer",
|
||||
"shareButton": "Partager",
|
||||
"Upload": "Télécharger",
|
||||
"Chat": "Chat",
|
||||
"Explore": "Explorer",
|
||||
"loading": "Chargement...",
|
||||
"comingSoon": "Bientôt disponible",
|
||||
"Viewer": "Visualiseur",
|
||||
"Editor": "Éditeur",
|
||||
"Owner": "Propriétaire",
|
||||
"saveButton": "Sauvegarder"
|
||||
}
|
||||
|
@ -1,47 +1,48 @@
|
||||
{
|
||||
"lang": "pt-BR",
|
||||
"title": "Quivr - Tenha um Segundo Cérebro com IA Generativa",
|
||||
"title.short": "Tenha um Segundo Cérebro com",
|
||||
"description": "Quivr é o seu segundo cérebro na nuvem, projetado para armazenar e recuperar facilmente informações não estruturadas.",
|
||||
"getStarted": "Começar",
|
||||
"features": "Recursos",
|
||||
"two_brains_title": "Dois cérebros são melhores que um",
|
||||
"two_brains_desc": "Quivr é o seu segundo cérebro na nuvem, projetado para armazenar e recuperar facilmente informações não estruturadas.",
|
||||
"any_kind_of_data_title": "Armazene qualquer tipo de dado",
|
||||
"any_kind_of_data_desc": "Quivr pode lidar com quase qualquer tipo de dado que você jogar nele. Texto, imagens, trechos de código, estamos aqui para ajudar.",
|
||||
"fast_and_accurate_title": "Tenha um Cérebro Rápido e Consistente",
|
||||
"fast_and_accurate_desc": "Quivr é o seu segundo cérebro na nuvem, projetado para armazenar e recuperar facilmente informações não estruturadas.",
|
||||
"fast_and_efficient_title": "Rápido e Eficiente",
|
||||
"fast_and_efficient_desc": "Projetado com velocidade e eficiência em seu núcleo. Quivr garante acesso rápido aos seus dados.",
|
||||
"secure_title": "Seguro",
|
||||
"secure_desc": "Seus dados, seu controle. Sempre.",
|
||||
"open_source_title": "Código aberto",
|
||||
"open_source_desc": "A liberdade é bela, assim como o Quivr. Código aberto e gratuito para usar.",
|
||||
"toastDismiss": "fechar",
|
||||
"email": "Email",
|
||||
"password": "Senha",
|
||||
"or": "ou",
|
||||
"loginButton": "Entrar",
|
||||
"signUpButton": "Cadastre-se",
|
||||
"logoutButton": "Sair",
|
||||
"updateButton": "Atualizar",
|
||||
"uploadButton": "Enviar",
|
||||
"uploadingButton": "Enviando...",
|
||||
"crawlButton": "Rastrear",
|
||||
"chatButton": "Chat",
|
||||
"deleteButton": "Excluir",
|
||||
"deleteForeverButton": "Excluir permanentemente",
|
||||
"doneButton": "Concluído",
|
||||
"resetButton": "Redefinir",
|
||||
"newChatButton": "Novo Chat",
|
||||
"createButton": "Criar",
|
||||
"shareButton": "Compartilhar",
|
||||
"Upload": "Enviar",
|
||||
"Chat": "Chat",
|
||||
"Explore": "Explorar",
|
||||
"loading": "Carregando...",
|
||||
"comingSoon": "Em breve",
|
||||
"Viewer": "Visualizador",
|
||||
"Editor": "Editor",
|
||||
"Owner": "Proprietário"
|
||||
}
|
||||
"lang": "pt-BR",
|
||||
"title": "Quivr - Tenha um Segundo Cérebro com IA Generativa",
|
||||
"title.short": "Tenha um Segundo Cérebro com",
|
||||
"description": "Quivr é o seu segundo cérebro na nuvem, projetado para armazenar e recuperar facilmente informações não estruturadas.",
|
||||
"getStarted": "Começar",
|
||||
"features": "Recursos",
|
||||
"two_brains_title": "Dois cérebros são melhores que um",
|
||||
"two_brains_desc": "Quivr é o seu segundo cérebro na nuvem, projetado para armazenar e recuperar facilmente informações não estruturadas.",
|
||||
"any_kind_of_data_title": "Armazene qualquer tipo de dado",
|
||||
"any_kind_of_data_desc": "Quivr pode lidar com quase qualquer tipo de dado que você jogar nele. Texto, imagens, trechos de código, estamos aqui para ajudar.",
|
||||
"fast_and_accurate_title": "Tenha um Cérebro Rápido e Consistente",
|
||||
"fast_and_accurate_desc": "Quivr é o seu segundo cérebro na nuvem, projetado para armazenar e recuperar facilmente informações não estruturadas.",
|
||||
"fast_and_efficient_title": "Rápido e Eficiente",
|
||||
"fast_and_efficient_desc": "Projetado com velocidade e eficiência em seu núcleo. Quivr garante acesso rápido aos seus dados.",
|
||||
"secure_title": "Seguro",
|
||||
"secure_desc": "Seus dados, seu controle. Sempre.",
|
||||
"open_source_title": "Código aberto",
|
||||
"open_source_desc": "A liberdade é bela, assim como o Quivr. Código aberto e gratuito para usar.",
|
||||
"toastDismiss": "fechar",
|
||||
"email": "Email",
|
||||
"password": "Senha",
|
||||
"or": "ou",
|
||||
"loginButton": "Entrar",
|
||||
"signUpButton": "Cadastre-se",
|
||||
"logoutButton": "Sair",
|
||||
"updateButton": "Atualizar",
|
||||
"uploadButton": "Enviar",
|
||||
"uploadingButton": "Enviando...",
|
||||
"crawlButton": "Rastrear",
|
||||
"chatButton": "Chat",
|
||||
"deleteButton": "Excluir",
|
||||
"deleteForeverButton": "Excluir permanentemente",
|
||||
"doneButton": "Concluído",
|
||||
"resetButton": "Redefinir",
|
||||
"newChatButton": "Novo Chat",
|
||||
"createButton": "Criar",
|
||||
"shareButton": "Compartilhar",
|
||||
"Upload": "Enviar",
|
||||
"Chat": "Chat",
|
||||
"Explore": "Explorar",
|
||||
"loading": "Carregando...",
|
||||
"comingSoon": "Em breve",
|
||||
"Viewer": "Visualizador",
|
||||
"Editor": "Editor",
|
||||
"Owner": "Proprietário",
|
||||
"saveButton": "Salvar"
|
||||
}
|
||||
|
@ -1,47 +1,48 @@
|
||||
{
|
||||
"lang": "ru-RU",
|
||||
"title": "Quivr - Второй мозг с генеративным ИИ",
|
||||
"title.short": "Второй мозг с",
|
||||
"description": "Quivr - это ваш второй мозг в облаке, предназначенный для легкого хранения и извлечения неструктурированной информации.",
|
||||
"getStarted": "Начать",
|
||||
"features": "Особенности",
|
||||
"two_brains_title": "Два мозга лучше одного",
|
||||
"two_brains_desc": "Quivr - это ваш второй мозг в облаке, предназначенный для легкого хранения и извлечения неструктурированной информации.",
|
||||
"any_kind_of_data_title": "Храните любые данные",
|
||||
"any_kind_of_data_desc": "Quivr может обрабатывать практически любой тип данных, с которым вы работаете. Текст, изображения, фрагменты кода - мы позаботились о вас.",
|
||||
"fast_and_accurate_title": "Получите быстрый и последовательный мозг",
|
||||
"fast_and_accurate_desc": "Quivr - это ваш второй мозг в облаке, предназначенный для легкого хранения и извлечения неструктурированной информации.",
|
||||
"fast_and_efficient_title": "Быстро и эффективно",
|
||||
"fast_and_efficient_desc": "Создан для скорости и эффективности. Quivr обеспечивает быстрый доступ к вашим данным.",
|
||||
"secure_title": "Безопасность",
|
||||
"secure_desc": "Ваши данные - ваши контроль. Всегда.",
|
||||
"open_source_title": "Открытый исходный код",
|
||||
"open_source_desc": "Свобода красива, так же как и Quivr. Открытый и бесплатный для использования.",
|
||||
"toastDismiss": "закрыть",
|
||||
"email": "Email",
|
||||
"password": "Пароль",
|
||||
"or": "или",
|
||||
"loginButton": "Войти",
|
||||
"signUpButton": "Зарегистрироваться",
|
||||
"logoutButton": "Выйти",
|
||||
"updateButton": "Обновить",
|
||||
"uploadButton": "Загрузить",
|
||||
"uploadingButton": "Загрузка...",
|
||||
"crawlButton": "Извлечь информацию",
|
||||
"chatButton": "Чат",
|
||||
"deleteButton": "Удалить",
|
||||
"deleteForeverButton": "Удалить навсегда",
|
||||
"doneButton": "Готово",
|
||||
"resetButton": "Сбросить",
|
||||
"newChatButton": "Новый чат",
|
||||
"createButton": "Создать",
|
||||
"shareButton": "Поделиться",
|
||||
"Upload": "Загрузка",
|
||||
"Chat": "Чат",
|
||||
"Explore": "Исследовать",
|
||||
"loading": "Загрузка...",
|
||||
"comingSoon": "Скоро",
|
||||
"Viewer": "Просмотр",
|
||||
"Editor": "Редактор",
|
||||
"Owner": "Владелец"
|
||||
"lang": "ru-RU",
|
||||
"title": "Quivr - Второй мозг с генеративным ИИ",
|
||||
"title.short": "Второй мозг с",
|
||||
"description": "Quivr - это ваш второй мозг в облаке, предназначенный для легкого хранения и извлечения неструктурированной информации.",
|
||||
"getStarted": "Начать",
|
||||
"features": "Особенности",
|
||||
"two_brains_title": "Два мозга лучше одного",
|
||||
"two_brains_desc": "Quivr - это ваш второй мозг в облаке, предназначенный для легкого хранения и извлечения неструктурированной информации.",
|
||||
"any_kind_of_data_title": "Храните любые данные",
|
||||
"any_kind_of_data_desc": "Quivr может обрабатывать практически любой тип данных, с которым вы работаете. Текст, изображения, фрагменты кода - мы позаботились о вас.",
|
||||
"fast_and_accurate_title": "Получите быстрый и последовательный мозг",
|
||||
"fast_and_accurate_desc": "Quivr - это ваш второй мозг в облаке, предназначенный для легкого хранения и извлечения неструктурированной информации.",
|
||||
"fast_and_efficient_title": "Быстро и эффективно",
|
||||
"fast_and_efficient_desc": "Создан для скорости и эффективности. Quivr обеспечивает быстрый доступ к вашим данным.",
|
||||
"secure_title": "Безопасность",
|
||||
"secure_desc": "Ваши данные - ваши контроль. Всегда.",
|
||||
"open_source_title": "Открытый исходный код",
|
||||
"open_source_desc": "Свобода красива, так же как и Quivr. Открытый и бесплатный для использования.",
|
||||
"toastDismiss": "закрыть",
|
||||
"email": "Email",
|
||||
"password": "Пароль",
|
||||
"or": "или",
|
||||
"loginButton": "Войти",
|
||||
"signUpButton": "Зарегистрироваться",
|
||||
"logoutButton": "Выйти",
|
||||
"updateButton": "Обновить",
|
||||
"uploadButton": "Загрузить",
|
||||
"uploadingButton": "Загрузка...",
|
||||
"crawlButton": "Извлечь информацию",
|
||||
"chatButton": "Чат",
|
||||
"deleteButton": "Удалить",
|
||||
"deleteForeverButton": "Удалить навсегда",
|
||||
"doneButton": "Готово",
|
||||
"resetButton": "Сбросить",
|
||||
"newChatButton": "Новый чат",
|
||||
"createButton": "Создать",
|
||||
"shareButton": "Поделиться",
|
||||
"Upload": "Загрузка",
|
||||
"Chat": "Чат",
|
||||
"Explore": "Исследовать",
|
||||
"loading": "Загрузка...",
|
||||
"comingSoon": "Скоро",
|
||||
"Viewer": "Просмотр",
|
||||
"Editor": "Редактор",
|
||||
"Owner": "Владелец",
|
||||
"saveButton": "Сохранить"
|
||||
}
|
||||
|
@ -1,47 +1,48 @@
|
||||
{
|
||||
"lang": "zh-CN",
|
||||
"title": "Quivr - 通过人工智能获得第二个大脑",
|
||||
"title.short": "获得第二个大脑",
|
||||
"description": "Quivr 是您在云中的第二个大脑,让您轻松存储和检索非结构化信息。",
|
||||
"getStarted": "开始使用",
|
||||
"features": "功能",
|
||||
"two_brains_title": "两个脑袋总比一个好",
|
||||
"two_brains_desc": "Quivr 是您在云中的第二个大脑,让您轻松存储和检索非结构化信息。",
|
||||
"any_kind_of_data_title": "存储任何类型的数据",
|
||||
"any_kind_of_data_desc": "Quivr几乎可以处理任何类型的数据。文本、图像、代码片段,我们会帮你处理的。",
|
||||
"fast_and_accurate_title": "获得一个快速而稳定的大脑",
|
||||
"fast_and_accurate_desc": "Quivr 是您在云中的第二个大脑,让您轻松存储和检索非结构化信息。",
|
||||
"fast_and_efficient_title": "快速高效",
|
||||
"fast_and_efficient_desc": "以速度和效率为核心设计。Quivr确保快速访问您的数据。",
|
||||
"secure_title": "安全",
|
||||
"secure_desc": "您的数据,由您掌控。始终如此。",
|
||||
"open_source_title": "开源",
|
||||
"open_source_desc": "自由是美好的,Quivr 也是如此。开放源代码,免费使用。",
|
||||
"toastDismiss": "dismiss",
|
||||
"email": "Email",
|
||||
"password": "密码",
|
||||
"or": "或",
|
||||
"loginButton": "登录",
|
||||
"signUpButton": "注册",
|
||||
"logoutButton": "注销",
|
||||
"updateButton": "更新",
|
||||
"uploadButton": "上传",
|
||||
"uploadingButton": "上传中...",
|
||||
"crawlButton": "抓取",
|
||||
"chatButton": "聊天",
|
||||
"deleteButton": "删除",
|
||||
"deleteForeverButton": "永久删除",
|
||||
"doneButton": "完成",
|
||||
"resetButton": "重置",
|
||||
"newChatButton": "新聊天",
|
||||
"createButton": "创建",
|
||||
"shareButton": "分享",
|
||||
"Upload": "上传",
|
||||
"Chat": "聊天",
|
||||
"Explore": "探索",
|
||||
"loading": "加载中...",
|
||||
"comingSoon": "即将推出",
|
||||
"Viewer": "查看",
|
||||
"Editor": "编辑",
|
||||
"Owner": "作者"
|
||||
}
|
||||
"lang": "zh-CN",
|
||||
"title": "Quivr - 通过人工智能获得第二个大脑",
|
||||
"title.short": "获得第二个大脑",
|
||||
"description": "Quivr 是您在云中的第二个大脑,让您轻松存储和检索非结构化信息。",
|
||||
"getStarted": "开始使用",
|
||||
"features": "功能",
|
||||
"two_brains_title": "两个脑袋总比一个好",
|
||||
"two_brains_desc": "Quivr 是您在云中的第二个大脑,让您轻松存储和检索非结构化信息。",
|
||||
"any_kind_of_data_title": "存储任何类型的数据",
|
||||
"any_kind_of_data_desc": "Quivr几乎可以处理任何类型的数据。文本、图像、代码片段,我们会帮你处理的。",
|
||||
"fast_and_accurate_title": "获得一个快速而稳定的大脑",
|
||||
"fast_and_accurate_desc": "Quivr 是您在云中的第二个大脑,让您轻松存储和检索非结构化信息。",
|
||||
"fast_and_efficient_title": "快速高效",
|
||||
"fast_and_efficient_desc": "以速度和效率为核心设计。Quivr确保快速访问您的数据。",
|
||||
"secure_title": "安全",
|
||||
"secure_desc": "您的数据,由您掌控。始终如此。",
|
||||
"open_source_title": "开源",
|
||||
"open_source_desc": "自由是美好的,Quivr 也是如此。开放源代码,免费使用。",
|
||||
"toastDismiss": "dismiss",
|
||||
"email": "Email",
|
||||
"password": "密码",
|
||||
"or": "或",
|
||||
"loginButton": "登录",
|
||||
"signUpButton": "注册",
|
||||
"logoutButton": "注销",
|
||||
"updateButton": "更新",
|
||||
"uploadButton": "上传",
|
||||
"uploadingButton": "上传中...",
|
||||
"crawlButton": "抓取",
|
||||
"chatButton": "聊天",
|
||||
"deleteButton": "删除",
|
||||
"deleteForeverButton": "永久删除",
|
||||
"doneButton": "完成",
|
||||
"resetButton": "重置",
|
||||
"newChatButton": "新聊天",
|
||||
"createButton": "创建",
|
||||
"shareButton": "分享",
|
||||
"Upload": "上传",
|
||||
"Chat": "聊天",
|
||||
"Explore": "探索",
|
||||
"loading": "加载中...",
|
||||
"comingSoon": "即将推出",
|
||||
"Viewer": "查看",
|
||||
"Editor": "编辑",
|
||||
"Owner": "作者",
|
||||
"saveButton": "保存"
|
||||
}
|
||||
|
21
frontend/shared/SaveButton.tsx
Normal file
21
frontend/shared/SaveButton.tsx
Normal file
@ -0,0 +1,21 @@
|
||||
import { ReactElement } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
import Button from "@/lib/components/ui/Button";
|
||||
|
||||
interface Props {
|
||||
handleSubmit: (checkDirty: boolean) => Promise<void>;
|
||||
}
|
||||
export const SaveButton = ({ handleSubmit }: Props): ReactElement => {
|
||||
const { t } = useTranslation(["translation"]);
|
||||
|
||||
return (
|
||||
<Button
|
||||
variant={"primary"}
|
||||
onClick={() => void handleSubmit(true)}
|
||||
type="button"
|
||||
>
|
||||
{t("saveButton")}
|
||||
</Button>
|
||||
);
|
||||
};
|
Loading…
Reference in New Issue
Block a user