diff --git a/src/components/chat-view/ChatView.tsx b/src/components/chat-view/ChatView.tsx index 601eb4b..e4d2f99 100644 --- a/src/components/chat-view/ChatView.tsx +++ b/src/components/chat-view/ChatView.tsx @@ -165,7 +165,7 @@ const Chat = forwardRef((props, ref) => { } } - const [tab, setTab] = useState<'chat' | 'commands' | 'custom-mode'>('chat') + const [tab, setTab] = useState<'chat' | 'commands' | 'custom-mode'>('custom-mode') const [selectedSerializedNodes, setSelectedSerializedNodes] = useState([]) useEffect(() => { diff --git a/src/components/chat-view/CustomModeView.tsx b/src/components/chat-view/CustomModeView.tsx index 6e3f37a..6f078ec 100644 --- a/src/components/chat-view/CustomModeView.tsx +++ b/src/components/chat-view/CustomModeView.tsx @@ -14,6 +14,8 @@ import { modes as buildinModes } from '../../utils/modes'; import { openOrCreateMarkdownFile } from '../../utils/obsidian'; import { PromptGenerator, getFullLanguageName } from '../../utils/prompt-generator'; +import { t } from '../../lang/helpers'; + const CustomModeView = () => { const app = useApp() @@ -173,7 +175,7 @@ const CustomModeView = () => { {/* Mode configuration title and buttons */}
-

Mode Configuration

+

{t('prompt.title')}

{/*