feat(i18n): add translation for "All" in GroupSwitch component for English, Simplified Chinese, and Traditional Chinese

This commit is contained in:
hamster1963
2026-06-10 15:19:34 +08:00
parent 575c14dfe5
commit a3afa04c69
4 changed files with 14 additions and 1 deletions
+5 -1
View File
@@ -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({
)}
>
<div className="relative z-20 flex items-center gap-1">
<p className="whitespace-nowrap">{tab}</p>
<p className="whitespace-nowrap">
{tab === "All" ? t("group.all", { defaultValue: "All" }) : tab}
</p>
</div>
</div>
))}
+3
View File
@@ -160,5 +160,8 @@
"up_total": "Up Total",
"down_total": "Down Total"
}
},
"group": {
"all": "All"
}
}
+3
View File
@@ -161,5 +161,8 @@
"up_total": "上传总量",
"down_total": "下载总量"
}
},
"group": {
"all": "全部"
}
}
+3
View File
@@ -156,5 +156,8 @@
"up_total": "上傳總量",
"down_total": "下載總量"
}
},
"group": {
"all": "全部"
}
}