diff --git a/src/components/GroupSwitch.tsx b/src/components/GroupSwitch.tsx
index f898308..3f6e4a4 100644
--- a/src/components/GroupSwitch.tsx
+++ b/src/components/GroupSwitch.tsx
@@ -1,4 +1,5 @@
import { useEffect, useRef } from "react";
+import { useTranslation } from "react-i18next";
import { useActiveIndicator } from "@/hooks/use-active-indicator";
import { cn } from "@/lib/utils";
@@ -11,6 +12,7 @@ export default function GroupSwitch({
currentTab: string;
setCurrentTab: (tab: string) => void;
}) {
+ const { t } = useTranslation();
const customBackgroundImage =
(window.CustomBackgroundImage as string) !== ""
? window.CustomBackgroundImage
@@ -117,7 +119,9 @@ export default function GroupSwitch({
)}
>
-
{tab}
+
+ {tab === "All" ? t("group.all", { defaultValue: "All" }) : tab}
+
))}
diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json
index 6b6cd02..222d976 100644
--- a/src/locales/en/translation.json
+++ b/src/locales/en/translation.json
@@ -160,5 +160,8 @@
"up_total": "Up Total",
"down_total": "Down Total"
}
+ },
+ "group": {
+ "all": "All"
}
}
diff --git a/src/locales/zh-CN/translation.json b/src/locales/zh-CN/translation.json
index 58a3e11..48d735b 100644
--- a/src/locales/zh-CN/translation.json
+++ b/src/locales/zh-CN/translation.json
@@ -161,5 +161,8 @@
"up_total": "上传总量",
"down_total": "下载总量"
}
+ },
+ "group": {
+ "all": "全部"
}
}
diff --git a/src/locales/zh-TW/translation.json b/src/locales/zh-TW/translation.json
index f713e17..093d1e4 100644
--- a/src/locales/zh-TW/translation.json
+++ b/src/locales/zh-TW/translation.json
@@ -156,5 +156,8 @@
"up_total": "上傳總量",
"down_total": "下載總量"
}
+ },
+ "group": {
+ "all": "全部"
}
}