From 48b5428000b36414e1c24452cf0b79b4600c04fd Mon Sep 17 00:00:00 2001 From: Henry Li Date: Sat, 24 Jan 2026 22:19:37 +0800 Subject: [PATCH] feat: add i18n --- .../src/components/workspace/settings/skill-settings-page.tsx | 2 +- .../src/components/workspace/settings/tool-settings-page.tsx | 2 +- frontend/src/core/i18n/locales/en-US.ts | 1 + frontend/src/core/i18n/locales/types.ts | 1 + frontend/src/core/i18n/locales/zh-CN.ts | 1 + 5 files changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/workspace/settings/skill-settings-page.tsx b/frontend/src/components/workspace/settings/skill-settings-page.tsx index 7d95f99..014770d 100644 --- a/frontend/src/components/workspace/settings/skill-settings-page.tsx +++ b/frontend/src/components/workspace/settings/skill-settings-page.tsx @@ -35,7 +35,7 @@ export function SkillSettingsPage() { description={t.settings.skills.description} > {isLoading ? ( -
Loading...
+
{t.common.loading}
) : error ? (
Error: {error.message}
) : ( diff --git a/frontend/src/components/workspace/settings/tool-settings-page.tsx b/frontend/src/components/workspace/settings/tool-settings-page.tsx index b616092..dd3cd0d 100644 --- a/frontend/src/components/workspace/settings/tool-settings-page.tsx +++ b/frontend/src/components/workspace/settings/tool-settings-page.tsx @@ -24,7 +24,7 @@ export function ToolSettingsPage() { description={t.settings.tools.description} > {isLoading ? ( -
Loading...
+
{t.common.loading}
) : error ? (
Error: {error.message}
) : ( diff --git a/frontend/src/core/i18n/locales/en-US.ts b/frontend/src/core/i18n/locales/en-US.ts index 7fc0480..5807aa9 100644 --- a/frontend/src/core/i18n/locales/en-US.ts +++ b/frontend/src/core/i18n/locales/en-US.ts @@ -21,6 +21,7 @@ export const enUS: Translations = { public: "Public", custom: "Custom", notAvailableInDemoMode: "Not available in demo mode", + loading: "Loading...", }, // Welcome diff --git a/frontend/src/core/i18n/locales/types.ts b/frontend/src/core/i18n/locales/types.ts index b70ccd2..dbdbb57 100644 --- a/frontend/src/core/i18n/locales/types.ts +++ b/frontend/src/core/i18n/locales/types.ts @@ -19,6 +19,7 @@ export interface Translations { public: string; custom: string; notAvailableInDemoMode: string; + loading: string; }; // Welcome diff --git a/frontend/src/core/i18n/locales/zh-CN.ts b/frontend/src/core/i18n/locales/zh-CN.ts index 4c6d0a8..000fd92 100644 --- a/frontend/src/core/i18n/locales/zh-CN.ts +++ b/frontend/src/core/i18n/locales/zh-CN.ts @@ -21,6 +21,7 @@ export const zhCN: Translations = { public: "公共", custom: "自定义", notAvailableInDemoMode: "在演示模式下不可用", + loading: "加载中...", }, // Welcome