-
Continue your conversation
+
{t('session.continue.title')}
- Ask questions about your code, request changes, or get help with development tasks
+ {t('session.continue.description')}
{/* Show NextTaskBanner for existing sessions too, only if TaskMaster is installed */}
@@ -4998,7 +4998,7 @@ function ChatInterface({ selectedProject, selectedSession, ws, sendMessage, mess
-
Loading older messages...
+
{t('session.loading.olderMessages')}
)}
@@ -5008,8 +5008,8 @@ function ChatInterface({ selectedProject, selectedSession, ws, sendMessage, mess
{totalMessages > 0 && (
- Showing {sessionMessages.length} of {totalMessages} messages •
- Scroll up to load more
+ {t('session.messages.showingOf', { shown: sessionMessages.length, total: totalMessages })} •
+ {t('session.messages.scrollToLoad')}
)}
@@ -5018,12 +5018,12 @@ function ChatInterface({ selectedProject, selectedSession, ws, sendMessage, mess
{/* Legacy message count indicator (for non-paginated view) */}
{!hasMoreMessages && chatMessages.length > visibleMessageCount && (
- Showing last {visibleMessageCount} messages ({chatMessages.length} total) •
-
)}
diff --git a/src/components/CodeEditor.jsx b/src/components/CodeEditor.jsx
index e998d86..978dea3 100644
--- a/src/components/CodeEditor.jsx
+++ b/src/components/CodeEditor.jsx
@@ -12,8 +12,10 @@ import { unifiedMergeView, getChunks } from '@codemirror/merge';
import { showMinimap } from '@replit/codemirror-minimap';
import { X, Save, Download, Maximize2, Minimize2 } from 'lucide-react';
import { api } from '../utils/api';
+import { useTranslation } from 'react-i18next';
function CodeEditor({ file, onClose, projectPath, isSidebar = false, isExpanded = false, onToggleExpand = null }) {
+ const { t } = useTranslation('codeEditor');
const [content, setContent] = useState('');
const [loading, setLoading] = useState(true);
const [saving, setSaving] = useState(false);
@@ -125,13 +127,13 @@ function CodeEditor({ file, onClose, projectPath, isSidebar = false, isExpanded
toolbarHTML += '
';
if (hasDiff) {
toolbarHTML += `
-
${chunkCount > 0 ? `${currentIndex + 1}/${chunkCount}` : '0'} changes
-
@@ -574,7 +576,7 @@ function CodeEditor({ file, onClose, projectPath, isSidebar = false, isExpanded
{file.name}
{file.diffInfo && (
- Showing changes
+ {t('header.showingChanges')}
)}
@@ -586,7 +588,7 @@ function CodeEditor({ file, onClose, projectPath, isSidebar = false, isExpanded