- {t("your-ai-workforce")}
+ {t("workforce.your-ai-workforce")}
{/*
-
{t("ongoing-tasks")}
+
{t("task-hub.ongoing-tasks")}
@@ -260,7 +260,7 @@ export default function Home() {
onClick={createChat}
>
-
{t("new-project")}
+
{t("task-hub.new-project")}
- {t("table")}
+ {t("task-hub.table")}
- {t("list")}
+ {t("task-hub.list")}
@@ -306,7 +306,7 @@ export default function Home() {
/>
- {task.summaryTask || t("new-project")}
+ {task.summaryTask || t("task-hub.new-project")}
@@ -532,11 +532,11 @@ export default function Home() {
- {t("table")}
+ {t("task-hub.table")}
- {t("list")}
+ {t("task-hub.list")}
@@ -577,7 +577,7 @@ export default function Home() {
- {task?.question || t("new-project")}
+ {task?.question || t("task-hub.new-project")}
@@ -609,7 +609,7 @@ export default function Home() {
{" "}
- {task?.question.split("|")[0] || t("new-project")}
+ {task?.question.split("|")[0] || t("task-hub.new-project")}
{" "}
- {task?.question.split("|")[0] || t("new-project")}
+ {task?.question.split("|")[0] || t("task-hub.new-project")}
@@ -653,7 +653,7 @@ export default function Home() {
}}
>
- {t("share")}
+ {t("task-hub.share")}
@@ -671,7 +671,7 @@ export default function Home() {
size={16}
className="text-icon-primary group-hover:text-icon-cuation"
/>
- {t("delete")}
+ {t("task-hub.delete")}
diff --git a/src/pages/Setting/General.tsx b/src/pages/Setting/General.tsx
index f718f8497..e7ef2d847 100644
--- a/src/pages/Setting/General.tsx
+++ b/src/pages/Setting/General.tsx
@@ -11,7 +11,8 @@ import { proxyFetchPut, proxyFetchGet } from "@/api/http";
import { createRef, RefObject } from "react";
import { useEffect, useState } from "react";
import { useChatStore } from "@/store/chatStore";
-import {LocaleEnum, switchLanguage} from "@/i18n";
+import { LocaleEnum, switchLanguage } from "@/i18n";
+import { useTranslation } from "react-i18next";
import {
Select,
@@ -24,6 +25,7 @@ import {
} from "@/components/ui/select";
export default function SettingGeneral() {
+ const { t } = useTranslation();
const authStore = useAuthStore();
const navigate = useNavigate();
const [isLoading, setIsLoading] = useState(false);
@@ -39,12 +41,12 @@ export default function SettingGeneral() {
const [themeList, setThemeList] = useState
([
{
img: light,
- label: "Light",
+ label: "general.light",
value: "light",
},
{
img: transparent,
- label: "Transparent",
+ label: "general.transparent",
value: "transparent",
},
]);
@@ -91,12 +93,12 @@ export default function SettingGeneral() {
setThemeList([
{
img: light,
- label: "Light",
+ label: "general.light",
value: "light",
},
{
img: transparent,
- label: "Transparent",
+ label: "general.transparent",
value: "transparent",
},
]);
@@ -104,7 +106,7 @@ export default function SettingGeneral() {
setThemeList([
{
img: light,
- label: "Light",
+ label: "general.light",
value: "light",
},
]);
@@ -115,10 +117,12 @@ export default function SettingGeneral() {
- Account
+ {t("general.account")}
- You are currently signed in with {authStore.email}
+ {t("general.you-are-currently-signed-in-with", {
+ email: authStore.email,
+ })}
- Language
+ {t("general.language")}
- Appearance
+ {t("general.appearance")}
{themeList.map((item: any) => (
@@ -190,7 +196,7 @@ export default function SettingGeneral() {
item.value == appearance ? "underline" : ""
}`}
>
- {item.label}
+ {t(item.label)}
))}