Update i18n

This commit is contained in:
2023-06-25 21:18:38 +08:00
parent 9c5239b3c6
commit ddd3548e2b
4 changed files with 19 additions and 8 deletions

View File

@@ -10,6 +10,7 @@ import Task from "../components/Task.tsx";
import Fab from "preact-material-components/Fab";
import Icon from "preact-material-components/Icon";
import { set_state } from "../server/state.ts";
import t from "../server/i18n.ts";
export type TaskManagerProps = {
base: string;
@@ -169,23 +170,23 @@ export default class TaskManager extends Component<TaskManagerProps> {
<div class="task_amounts">
<div class="mdc-theme--secondary-light">
<p>count</p>
<p>Total Task</p>
<p>{t("task.all")}</p>
</div>
<div class="btn-success">
<p>count</p>
<p>Running</p>
<p>{t("task.running")}</p>
</div>
<div class="btn-warning">
<p>count</p>
<p>Waiting</p>
<p>{t("task.waiting")}</p>
</div>
<div class="btn-danger">
<p>count</p>
<p>Fail</p>
<p>{t("task.failed")}</p>
</div>
<div class="btn-primary">
<p>count</p>
<p>Finished</p>
<p>{t("task.finished")}</p>
</div>
</div>
<div class="task_details">

View File

@@ -200,4 +200,4 @@ body {
.dark-scheme .mdc-notched-outline__idle{
color: white!important;
}
}

View File

@@ -1,3 +1,8 @@
{
"id": "Task ID: "
"id": "Task ID: ",
"all": "All task",
"running": "Running",
"waiting": "Waiting",
"failed": "Failed",
"finished": "Finished"
}

View File

@@ -1,3 +1,8 @@
{
"id": "任务ID:"
"id": "任务ID:",
"all": "所有任务",
"running": "运行中",
"waiting": "等待中",
"failed": "已失败",
"finished": "已完成"
}