From bc7da0085b0d682634983c1cf67a6a3f73865c26 Mon Sep 17 00:00:00 2001 From: paisley <8197966+su8su@users.noreply.github.com> Date: Wed, 11 Feb 2026 17:08:57 +0800 Subject: [PATCH] chore: fix some ui problems (#51) --- src/i18n/index.ts | 3 + src/main.tsx | 1 + src/pages/Setup/index.tsx | 304 +++++++++++++++++++------------------- 3 files changed, 158 insertions(+), 150 deletions(-) diff --git a/src/i18n/index.ts b/src/i18n/index.ts index 0dba78b15..84de778c3 100644 --- a/src/i18n/index.ts +++ b/src/i18n/index.ts @@ -83,6 +83,9 @@ i18n interpolation: { escapeValue: false, // React already escapes }, + react: { + useSuspense: false, + }, }); export default i18n; diff --git a/src/main.tsx b/src/main.tsx index 4faf2f106..a2e30fb03 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -5,6 +5,7 @@ import React from 'react'; import ReactDOM from 'react-dom/client'; import { HashRouter } from 'react-router-dom'; import App from './App'; +import './i18n'; import './styles/globals.css'; ReactDOM.createRoot(document.getElementById('root')!).render( diff --git a/src/pages/Setup/index.tsx b/src/pages/Setup/index.tsx index 6bbc8c56a..594665e4c 100644 --- a/src/pages/Setup/index.tsx +++ b/src/pages/Setup/index.tsx @@ -20,6 +20,7 @@ import { ExternalLink, BookOpen, } from 'lucide-react'; +import { TitleBar } from '@/components/layout/TitleBar'; import { Button } from '@/components/ui/button'; import { Input } from '@/components/ui/input'; import { Label } from '@/components/ui/label'; @@ -182,122 +183,125 @@ export function Setup() { return ( -
{t(`steps.${step.id}.description`)}
+{t(`steps.${step.id}.description`)}
-+
{t('welcome.description')}
@@ -331,7 +335,7 @@ function WelcomeContent() { ))}+
{openclawDir}
)}{t('runtime.issue.title')}
-+
{t('runtime.issue.desc')}
Application Logs
+Application Logs
+
{t('provider.modelIdDesc')}
+
{t('provider.storedLocally')}
@@ -1073,12 +1077,12 @@ function SetupChannelContent() {+
{t('channel.connectedDesc')}
+
{t('channel.subtitle')}
{channelMeta.name}
-+
{t(channelMeta.description)}
{t(meta?.description || '')}
+{t(meta?.description || '')}
{t('channel.howTo')}
+{t('channel.howTo')}
{meta?.docsUrl && (