Skip to content

DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.

fix: optimize error display and simplify internationalization configuration

hairyfd068f87cd8e7
diff --git a/src/components/SetupScreen.tsx b/src/components/SetupScreen.tsx
index f3caf8ed..1110fe70 100644
--- a/src/components/SetupScreen.tsx
+++ b/src/components/SetupScreen.tsx
@@ -41,7 +41,7 @@ export default function SetupScreen({
const { t } = useI18n();
const loading = status === "starting";
const error = status === "error";
- const heading = error ? t("status.error", { error: errorMsg || t("errors.unknown") }) : title;
+ const heading = error ? t("status.error") : title;
const description = error ? "" : detail || t("status.installing");
const visibleLogs = logs.length ? logs : [t("ui.waiting_logs")];
@@ -58,8 +58,8 @@ export default function SetupScreen({
</div>
</div>
- <h2 className="mt-[18px] mb-1.5 text-xl font-semibold text-ink">{heading}</h2>
- <p className="mb-6 min-h-[18px] text-[13px] break-all text-muted">{description}</p>
+ <h2 className="mt-[18px] mb-1.5 text-xl font-semibold text-ink truncate">{heading}</h2>
+ <p className="mb-6 min-h-[18px] text-[13px] break-all text-muted">{errorMsg || description}</p>
<div className="mb-5 flex items-center gap-3">
<div className="h-2 flex-1 overflow-hidden rounded-full bg-panel2" role="progressbar" aria-valuenow={Math.round(percentage)}>
diff --git a/src/i18n/en.ts b/src/i18n/en.ts
index c3c878e9..0b38f061 100644
--- a/src/i18n/en.ts
+++ b/src/i18n/en.ts
@@ -23,7 +23,7 @@ export const en: Translations = {
extracting: "Extracting resource package...",
starting: "Starting DeepSeek Harness service...",
ready: "Service is ready",
- error: "Startup failed: {{error}}",
+ error: "Startup failed",
loading: "Loading interface...",
},
errors: {
diff --git a/src/i18n/zh.ts b/src/i18n/zh.ts
index 114bf60a..032ffaa9 100644
--- a/src/i18n/zh.ts
+++ b/src/i18n/zh.ts
@@ -23,7 +23,7 @@ export const zh: Translations = {
extracting: "正在解压资源包...",
starting: "正在启动 DeepSeek Harness 服务...",
ready: "服务已就绪",
- error: "启动失败:{{error}}",
+ error: "启动失败",
loading: "正在加载界面...",
},
errors: {