mirror of
https://github.com/cloudreve/frontend.git
synced 2025-12-25 19:52:48 +00:00
fix(i18n): missing translations
This commit is contained in:
parent
d59102c590
commit
01343d7656
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "cloudreve-frontend",
|
||||
"version": "3.6.1",
|
||||
"version": "3.6.2",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@babel/core": "7.6.0",
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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"}
|
||||
>
|
||||
|
|
|
|||
Loading…
Reference in New Issue