add Translate

This commit is contained in:
Jackxwb
2024-05-14 23:43:58 +08:00
parent b4922cc21b
commit b88bff3971
3 changed files with 13 additions and 7 deletions

View File

@@ -418,7 +418,10 @@
"Not set": "Not set",
"Comment": "Comment",
"No comment": "No comment",
"Edit table": "Edit table"
"Edit table": "Edit table",
"Indices": "Indices",
"No indices": "No indices",
"Delete table": "Delete table"
}
},
"ReportBug": {

View File

@@ -418,7 +418,10 @@
"Not set": "未设置",
"Comment": "注释",
"No comment": "无注释",
"Edit table": "修改表"
"Edit table": "修改表",
"Indices": "索引",
"No indices": "无索引",
"Delete table": "删除表"
}
},
"ReportBug": {

View File

@@ -112,9 +112,9 @@ export default function Table(props) {
content={
<div className="popover-theme">
<div className="mb-2">
<strong>Comment :</strong>{" "}
<strong>{t("Page.editor.TableCard.Comment")}:</strong>{" "}
{tableData.comment === "" ? (
"No comment"
t("Page.editor.TableCard.No comment")
) : (
<div>{tableData.comment}</div>
)}
@@ -125,10 +125,10 @@ export default function Table(props) {
tableData.indices.length === 0 ? "" : "block"
}`}
>
Indices :
{t("Page.editor.TableCard.Indices")} :
</strong>{" "}
{tableData.indices.length === 0 ? (
"No indices"
t("Page.editor.TableCard.No indices")
) : (
<div>
{tableData.indices.map((index, k) => (
@@ -163,7 +163,7 @@ export default function Table(props) {
deleteTable(tableData.id);
}}
>
Delete table
{t("Page.editor.TableCard.Delete table")}
</Button>
</div>
}