From 3ac111b2f575de62bbaa2be15ed5d98fa46e7bf6 Mon Sep 17 00:00:00 2001 From: a7m-1st Date: Wed, 21 Jan 2026 05:53:44 +0300 Subject: [PATCH] enahnce: enhance translations --- src/components/Folder/index.tsx | 39 ++++++++++++------------------ src/i18n/locales/ar/chat.json | 6 ++++- src/i18n/locales/de/chat.json | 6 ++++- src/i18n/locales/en-us/chat.json | 6 ++++- src/i18n/locales/es/chat.json | 6 ++++- src/i18n/locales/fr/chat.json | 6 ++++- src/i18n/locales/it/chat.json | 6 ++++- src/i18n/locales/ja/chat.json | 6 ++++- src/i18n/locales/ko/chat.json | 6 ++++- src/i18n/locales/ru/chat.json | 6 ++++- src/i18n/locales/zh-Hans/chat.json | 6 ++++- src/i18n/locales/zh-Hant/chat.json | 6 ++++- 12 files changed, 70 insertions(+), 35 deletions(-) diff --git a/src/components/Folder/index.tsx b/src/components/Folder/index.tsx index 5cfa7c2b..c4abbdfc 100644 --- a/src/components/Folder/index.tsx +++ b/src/components/Folder/index.tsx @@ -10,9 +10,6 @@ import { ChevronRight, ChevronDown, AlertTriangle, - ZoomIn, - ZoomOut, - RotateCcw, } from 'lucide-react'; import { toast } from 'sonner'; import { Button } from '@/components/ui/button'; @@ -24,6 +21,7 @@ import { proxyFetchGet } from '@/api/http'; import { useTranslation } from 'react-i18next'; import useChatStoreAdapter from '@/hooks/useChatStoreAdapter'; import DOMPurify from 'dompurify'; +import { ZoomControls } from './ZoomControls'; // Type definitions interface FileTreeNode { @@ -549,22 +547,22 @@ export default function Folder({ data }: { data?: Agent }) { {selectedFile?.type === 'html' && !isShowSourceCode && htmlHasScripts && !htmlScriptsApproved && ( )} {selectedFile?.type === 'html' && !isShowSourceCode && htmlScriptsApproved && htmlHasScripts && ( - Scripts running + {t('chat.scripts-running')} )} - {zoom}% - - - - +
+ {/* Floating notch-style zoom controls */} + {/* Content area with zoom */}