mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-03 06:12:14 +08:00
feat: add i18n
This commit is contained in:
@@ -35,7 +35,7 @@ export function SkillSettingsPage() {
|
||||
description={t.settings.skills.description}
|
||||
>
|
||||
{isLoading ? (
|
||||
<div>Loading...</div>
|
||||
<div className="text-muted-foreground text-sm">{t.common.loading}</div>
|
||||
) : error ? (
|
||||
<div>Error: {error.message}</div>
|
||||
) : (
|
||||
|
||||
@@ -24,7 +24,7 @@ export function ToolSettingsPage() {
|
||||
description={t.settings.tools.description}
|
||||
>
|
||||
{isLoading ? (
|
||||
<div>Loading...</div>
|
||||
<div className="text-muted-foreground text-sm">{t.common.loading}</div>
|
||||
) : error ? (
|
||||
<div>Error: {error.message}</div>
|
||||
) : (
|
||||
|
||||
@@ -21,6 +21,7 @@ export const enUS: Translations = {
|
||||
public: "Public",
|
||||
custom: "Custom",
|
||||
notAvailableInDemoMode: "Not available in demo mode",
|
||||
loading: "Loading...",
|
||||
},
|
||||
|
||||
// Welcome
|
||||
|
||||
@@ -19,6 +19,7 @@ export interface Translations {
|
||||
public: string;
|
||||
custom: string;
|
||||
notAvailableInDemoMode: string;
|
||||
loading: string;
|
||||
};
|
||||
|
||||
// Welcome
|
||||
|
||||
@@ -21,6 +21,7 @@ export const zhCN: Translations = {
|
||||
public: "公共",
|
||||
custom: "自定义",
|
||||
notAvailableInDemoMode: "在演示模式下不可用",
|
||||
loading: "加载中...",
|
||||
},
|
||||
|
||||
// Welcome
|
||||
|
||||
Reference in New Issue
Block a user