From f8f369fbb239b77134fd0019730c0d4677211b98 Mon Sep 17 00:00:00 2001 From: ManishMadan2882 Date: Thu, 29 May 2025 03:58:34 +0530 Subject: [PATCH] (fix/tools) avoid max width for buttons, i18n --- frontend/src/locale/en.json | 7 ++++++- frontend/src/locale/es.json | 6 +++++- frontend/src/locale/jp.json | 7 ++++++- frontend/src/locale/ru.json | 6 +++++- frontend/src/locale/zh-TW.json | 6 +++++- frontend/src/settings/Tools.tsx | 11 ++++------- 6 files changed, 31 insertions(+), 12 deletions(-) diff --git a/frontend/src/locale/en.json b/frontend/src/locale/en.json index f29f13d4..d5aa7d85 100644 --- a/frontend/src/locale/en.json +++ b/frontend/src/locale/en.json @@ -11,6 +11,7 @@ "help": "Help", "emailUs": "Email us", "documentation": "Documentation", + "manageAgents": "Manage Agents", "demo": [ { "header": "Learn about DocsGPT", @@ -72,7 +73,11 @@ }, "actions": "Actions", "view": "View", - "deleteWarning": "Are you sure you want to delete \"{{name}}\"?" + "deleteWarning": "Are you sure you want to delete \"{{name}}\"?", + "backToAll": "Back to all documents", + "chunks": "Chunks", + "noChunks": "No chunks found", + "noChunksAlt": "No chunks found" }, "apiKeys": { "label": "Chatbots", diff --git a/frontend/src/locale/es.json b/frontend/src/locale/es.json index fe658b92..90ce0844 100644 --- a/frontend/src/locale/es.json +++ b/frontend/src/locale/es.json @@ -71,7 +71,11 @@ }, "actions": "Acciones", "view": "Ver", - "deleteWarning": "¿Estás seguro de que deseas eliminar \"{{name}}\"?" + "deleteWarning": "¿Estás seguro de que deseas eliminar \"{{name}}\"?", + "backToAll": "Volver a todos los documentos", + "chunks": "Fragmentos", + "noChunks": "No se encontraron fragmentos", + "noChunksAlt": "No se encontraron fragmentos" }, "apiKeys": { "label": "Chatbots", diff --git a/frontend/src/locale/jp.json b/frontend/src/locale/jp.json index b768ef00..18e3bf4f 100644 --- a/frontend/src/locale/jp.json +++ b/frontend/src/locale/jp.json @@ -52,6 +52,7 @@ "add": "追加" }, "documents": { + "title": "この表には、利用可能なすべてのドキュメントとアップロードしたドキュメントが含まれています", "label": "ドキュメント", "name": "ドキュメント名", "date": "ベクトル日付", @@ -71,7 +72,11 @@ }, "actions": "アクション", "view": "表示", - "deleteWarning": "\"{{name}}\"を削除してもよろしいですか?" + "deleteWarning": "\"{{name}}\"を削除してもよろしいですか?", + "backToAll": "すべてのドキュメントに戻る", + "chunks": "チャンク", + "noChunks": "チャンクが見つかりません", + "noChunksAlt": "チャンクが見つかりません" }, "apiKeys": { "label": "チャットボット", diff --git a/frontend/src/locale/ru.json b/frontend/src/locale/ru.json index b2e07caf..1a3b8848 100644 --- a/frontend/src/locale/ru.json +++ b/frontend/src/locale/ru.json @@ -72,7 +72,11 @@ }, "actions": "Действия", "view": "Просмотр", - "deleteWarning": "Вы уверены, что хотите удалить \"{{name}}\"?" + "deleteWarning": "Вы уверены, что хотите удалить \"{{name}}\"?", + "backToAll": "Вернуться ко всем документам", + "chunks": "Фрагменты", + "noChunks": "Фрагменты не найдены", + "noChunksAlt": "Фрагменты не найдены" }, "apiKeys": { "label": "API ключи", diff --git a/frontend/src/locale/zh-TW.json b/frontend/src/locale/zh-TW.json index 394c2b43..f20ade6b 100644 --- a/frontend/src/locale/zh-TW.json +++ b/frontend/src/locale/zh-TW.json @@ -72,7 +72,11 @@ }, "actions": "操作", "view": "查看", - "deleteWarning": "您確定要刪除 \"{{name}}\" 嗎?" + "deleteWarning": "您確定要刪除 \"{{name}}\" 嗎?", + "backToAll": "返回所有文件", + "chunks": "文本塊", + "noChunks": "未找到文本塊", + "noChunksAlt": "未找到文本塊" }, "apiKeys": { "label": "聊天機器人", diff --git a/frontend/src/settings/Tools.tsx b/frontend/src/settings/Tools.tsx index 05350e03..a3d37557 100644 --- a/frontend/src/settings/Tools.tsx +++ b/frontend/src/settings/Tools.tsx @@ -157,11 +157,8 @@ export default function Tools() { ) : (
-
-
- +
+