From b965256ee7c24afe0f8fdaae68d2fa758eefb6bb Mon Sep 17 00:00:00 2001 From: Chloe Mouret Date: Fri, 25 Aug 2023 11:45:57 +0200 Subject: [PATCH 1/2] add 2 save buttons --- .../components/SettingsTab/SettingsTab.tsx | 9 ++++++++- frontend/shared/SaveButton.tsx | 16 ++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 frontend/shared/SaveButton.tsx diff --git a/frontend/app/brains-management/[brainId]/components/BrainManagementTabs/components/SettingsTab/SettingsTab.tsx b/frontend/app/brains-management/[brainId]/components/BrainManagementTabs/components/SettingsTab/SettingsTab.tsx index 2aab64d392ce..313a3f60be0c 100644 --- a/frontend/app/brains-management/[brainId]/components/BrainManagementTabs/components/SettingsTab/SettingsTab.tsx +++ b/frontend/app/brains-management/[brainId]/components/BrainManagementTabs/components/SettingsTab/SettingsTab.tsx @@ -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 => {
{ {...register("maxTokens")} /> +
+ +
{ className="flex-1" {...register("prompt.content")} /> +
+ +
{promptId !== "" && ( +); From 19c7d2acb27be3b4bd4d3c6e1eb2d0348c5ca09d Mon Sep 17 00:00:00 2001 From: Chloe Mouret Date: Fri, 25 Aug 2023 14:43:32 +0200 Subject: [PATCH 2/2] use translation --- frontend/public/locales/en/translation.json | 93 ++++++++++--------- frontend/public/locales/es/translation.json | 93 ++++++++++--------- frontend/public/locales/fr/translation.json | 93 ++++++++++--------- .../public/locales/pt-br/translation.json | 93 ++++++++++--------- frontend/public/locales/ru/translation.json | 91 +++++++++--------- .../public/locales/zh-cn/translation.json | 93 ++++++++++--------- frontend/shared/SaveButton.tsx | 23 +++-- 7 files changed, 295 insertions(+), 284 deletions(-) diff --git a/frontend/public/locales/en/translation.json b/frontend/public/locales/en/translation.json index 6caeba138a17..4fa8dd8e7d39 100644 --- a/frontend/public/locales/en/translation.json +++ b/frontend/public/locales/en/translation.json @@ -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" -} \ No newline at end of file + "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" +} diff --git a/frontend/public/locales/es/translation.json b/frontend/public/locales/es/translation.json index 30d8d12f8c51..49e7ad2238bf 100644 --- a/frontend/public/locales/es/translation.json +++ b/frontend/public/locales/es/translation.json @@ -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" -} \ No newline at end of file + "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" +} diff --git a/frontend/public/locales/fr/translation.json b/frontend/public/locales/fr/translation.json index 9850fe1c73d5..14d41c1c88ec 100644 --- a/frontend/public/locales/fr/translation.json +++ b/frontend/public/locales/fr/translation.json @@ -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" -} \ No newline at end of file + "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" +} diff --git a/frontend/public/locales/pt-br/translation.json b/frontend/public/locales/pt-br/translation.json index d78bddd6dfc7..a3f7563f1046 100644 --- a/frontend/public/locales/pt-br/translation.json +++ b/frontend/public/locales/pt-br/translation.json @@ -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" -} \ No newline at end of file + "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" +} diff --git a/frontend/public/locales/ru/translation.json b/frontend/public/locales/ru/translation.json index 8aeef0ab7d0a..c0fe5de26397 100644 --- a/frontend/public/locales/ru/translation.json +++ b/frontend/public/locales/ru/translation.json @@ -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": "Сохранить" } diff --git a/frontend/public/locales/zh-cn/translation.json b/frontend/public/locales/zh-cn/translation.json index 0f0079254cc1..e07afd6de665 100644 --- a/frontend/public/locales/zh-cn/translation.json +++ b/frontend/public/locales/zh-cn/translation.json @@ -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": "作者" -} \ No newline at end of file + "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": "保存" +} diff --git a/frontend/shared/SaveButton.tsx b/frontend/shared/SaveButton.tsx index ee51ad8c9b26..660fea46dc50 100644 --- a/frontend/shared/SaveButton.tsx +++ b/frontend/shared/SaveButton.tsx @@ -1,16 +1,21 @@ import { ReactElement } from "react"; +import { useTranslation } from "react-i18next"; import Button from "@/lib/components/ui/Button"; interface Props { handleSubmit: (checkDirty: boolean) => Promise; } -export const SaveButton = ({ handleSubmit }: Props): ReactElement => ( - -); +export const SaveButton = ({ handleSubmit }: Props): ReactElement => { + const { t } = useTranslation(["translation"]); + + return ( + + ); +};