chore: tooltips and locales

This commit is contained in:
dongchengjie
2024-06-26 05:33:06 +08:00
parent 709a23cf09
commit 1f422afe3d
21 changed files with 108 additions and 32 deletions

View File

@@ -1,4 +1,4 @@
import { useEffect, useRef } from "react";
import { useEffect } from "react";
import { useTranslation } from "react-i18next";
import {
Button,

View File

@@ -171,10 +171,10 @@ export const EditorViewer = (props: Props) => {
</DialogContent>
<DialogActions>
<Button onClick={onClose} variant={readOnly ? "contained" : "outlined"}>
{t("Cancel")}
<Button onClick={onClose} variant="outlined">
{t(readOnly ? "Close" : "Cancel")}
</Button>
{readOnly ? null : (
{!readOnly && (
<Button onClick={onSave} variant="contained">
{t("Save")}
</Button>

View File

@@ -61,7 +61,7 @@ export const LogViewer = (props: Props) => {
<DialogActions>
<Button onClick={onClose} variant="outlined">
{t("Back")}
{t("Close")}
</Button>
</DialogActions>
</Dialog>