feat: add i18n
This commit is contained in:
parent
481396210b
commit
48b5428000
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue