diff --git a/public/locales/en-US/dashboard.json b/public/locales/en-US/dashboard.json index a69ccbb..8ac9e15 100644 --- a/public/locales/en-US/dashboard.json +++ b/public/locales/en-US/dashboard.json @@ -62,6 +62,7 @@ "shareLinks": "Share links", "totalBlobs": "Blobs", "homepage": "Homepage", + "github": "GitHub", "documents": "Documents", "discordCommunity": "Discord community", "telegram": "Telegram group", diff --git a/public/locales/ja-JP/dashboard.json b/public/locales/ja-JP/dashboard.json index 5e4c762..f46c8d0 100644 --- a/public/locales/ja-JP/dashboard.json +++ b/public/locales/ja-JP/dashboard.json @@ -62,6 +62,7 @@ "shareLinks": "共有リンク", "totalBlobs": "ファイルBlob", "homepage": "ホーム", + "github": "GitHub", "documents": "ドキュメント", "discordCommunity": "Discordコミュニティ", "telegram": "Telegramグループ", diff --git a/public/locales/zh-CN/dashboard.json b/public/locales/zh-CN/dashboard.json index a5664b3..be02d28 100644 --- a/public/locales/zh-CN/dashboard.json +++ b/public/locales/zh-CN/dashboard.json @@ -62,6 +62,7 @@ "shareLinks": "分享链接", "totalBlobs": "文件 Blob", "homepage": "主页", + "github": "GitHub", "documents": "文档", "discordCommunity": "Discord 社群", "telegram": "Telegram 社群", diff --git a/public/locales/zh-TW/dashboard.json b/public/locales/zh-TW/dashboard.json index a221521..ee1940c 100644 --- a/public/locales/zh-TW/dashboard.json +++ b/public/locales/zh-TW/dashboard.json @@ -62,6 +62,7 @@ "shareLinks": "分享連結", "totalBlobs": "檔案 Blob", "homepage": "主頁", + "github": "GitHub", "documents": "檔案", "discordCommunity": "Discord 社群", "telegram": "Telegram 社群", diff --git a/src/component/Admin/Common/GroupSelectionInput.tsx b/src/component/Admin/Common/GroupSelectionInput.tsx index 04edd06..08ee1de 100644 --- a/src/component/Admin/Common/GroupSelectionInput.tsx +++ b/src/component/Admin/Common/GroupSelectionInput.tsx @@ -1,7 +1,6 @@ import { ListItemText } from "@mui/material"; import FormControl from "@mui/material/FormControl"; import { useEffect, useState } from "react"; -import { useTranslation } from "react-i18next"; import { getGroupList } from "../../../api/api"; import { GroupEnt } from "../../../api/dashboard"; import { useAppDispatch } from "../../../redux/hooks"; @@ -29,7 +28,6 @@ const GroupSelectionInput = ({ fullWidth, required, }: GroupSelectionInputProps) => { - const { t } = useTranslation("dashboard"); const dispatch = useAppDispatch(); const [loading, setLoading] = useState(true); const [groups, setGroups] = useState([]); @@ -81,7 +79,7 @@ const GroupSelectionInput = ({ {emptyValue !== undefined && emptyText && ( {t(emptyText)}} + primary={{emptyText}} slotProps={{ primary: { variant: "body2" }, }} diff --git a/src/component/Admin/Home/Home.tsx b/src/component/Admin/Home/Home.tsx index 0e18267..ab0df93 100644 --- a/src/component/Admin/Home/Home.tsx +++ b/src/component/Admin/Home/Home.tsx @@ -97,7 +97,7 @@ const Home = () => { existingUrls={summary?.site_urls ?? []} /> - + @@ -330,7 +330,7 @@ const Home = () => { - + @@ -362,7 +362,7 @@ const Home = () => { - window.open("https://github.com/cloudreve/Cloudreve/discussions")}> + window.open("https://github.com/cloudreve/cloudreve/discussions")}> @@ -391,7 +391,7 @@ const Home = () => { { {props.showCancel && ( )} {!props.hideOk && ( @@ -104,7 +104,7 @@ const DraggableDialog = (props: DraggableDialogProps) => { onClick={props.onAccept} color="primary" > - {t(props.okText ?? "common:ok")} + {props.okText ?? t("common:ok")} )} diff --git a/src/component/FileManager/Dialogs/Share/ShareDialog.tsx b/src/component/FileManager/Dialogs/Share/ShareDialog.tsx index 69fa403..6a82ef2 100644 --- a/src/component/FileManager/Dialogs/Share/ShareDialog.tsx +++ b/src/component/FileManager/Dialogs/Share/ShareDialog.tsx @@ -162,7 +162,7 @@ const ShareDialog = () => { fullWidth: true, maxWidth: "xs", }} - cancelText={shareLink ? "common:close" : undefined} + cancelText={shareLink ? t("common:close") : undefined} secondaryAction={ shareLink ? // @ts-ignore