From fdae2357424275a017a2edf8ff8ca9a28370f087 Mon Sep 17 00:00:00 2001 From: ManishMadan2882 Date: Thu, 7 Aug 2025 12:53:12 +0530 Subject: [PATCH] (feat:sources) i18n --- frontend/src/components/FileTreeComponent.tsx | 22 +++++++++---------- frontend/src/locale/en.json | 11 ++++++++-- frontend/src/locale/es.json | 10 ++++++++- frontend/src/locale/jp.json | 10 ++++++++- frontend/src/locale/ru.json | 10 ++++++++- frontend/src/locale/zh-TW.json | 10 ++++++++- frontend/src/locale/zh.json | 10 ++++++++- frontend/src/settings/Sources.tsx | 4 ++-- 8 files changed, 67 insertions(+), 20 deletions(-) diff --git a/frontend/src/components/FileTreeComponent.tsx b/frontend/src/components/FileTreeComponent.tsx index e0f06663..cbd78277 100644 --- a/frontend/src/components/FileTreeComponent.tsx +++ b/frontend/src/components/FileTreeComponent.tsx @@ -495,11 +495,11 @@ const FileTreeComponent: React.FC = ({ {processingRef.current ? currentOpRef.current === 'add' - ? 'Uploading…' - : 'Deleting…' + ? t('settings.sources.uploading') + : t('settings.sources.deleting') : null} {queueLength > 0 - ? `${processingRef.current ? ' • ' : ''}Queued: ${queueLength}` + ? `${processingRef.current ? ' • ' : ''}${t('settings.sources.queued', { count: queueLength })}` : ''} )} @@ -509,12 +509,12 @@ const FileTreeComponent: React.FC = ({ title={ processingRef.current ? currentOpRef.current === 'add' - ? 'Uploading files...' - : 'Deleting...' - : 'Add file' + ? t('settings.sources.uploadingFilesTitle') + : t('settings.sources.deletingTitle') + : t('settings.sources.addFile') } > - Add file + {t('settings.sources.addFile')} )} @@ -621,7 +621,7 @@ const FileTreeComponent: React.FC = ({