fix(i18n): missing translations

This commit is contained in:
HFO4 2022-12-19 17:31:23 +08:00
parent d59102c590
commit 01343d7656
3 changed files with 7 additions and 6 deletions

View File

@ -1,6 +1,6 @@
{
"name": "cloudreve-frontend",
"version": "3.6.1",
"version": "3.6.2",
"private": true,
"dependencies": {
"@babel/core": "7.6.0",

View File

@ -6,8 +6,10 @@ import Typography from "@material-ui/core/Typography";
import DialogActions from "@material-ui/core/DialogActions";
import Button from "@material-ui/core/Button";
import Dialog from "@material-ui/core/Dialog";
import { useTranslation } from "react-i18next";
export default function AlertDialog({ title, msg, open, onClose }) {
const { t } = useTranslation("common");
return (
<Dialog
open={open}
@ -23,7 +25,7 @@ export default function AlertDialog({ title, msg, open, onClose }) {
</DialogContent>
<DialogActions>
<Button onClick={onClose} color="primary">
知道了
{t("ok")}
</Button>
</DialogActions>
</Dialog>

View File

@ -255,7 +255,7 @@ export default function Group() {
color="inherit"
variant="subtitle1"
>
{t("selectedObject", { num: selected.length })}
{t("selectedObjects", { num: selected.length })}
</Typography>
<Tooltip title={tDashboard("policy.delete")}>
<IconButton
@ -443,9 +443,8 @@ export default function Group() {
{row.Status === 0 && (
<Typography
style={{
color:
theme.palette.success
.main,
color: theme.palette.success
.main,
}}
variant={"body2"}
>