diff --git a/src/renderer/src/i18n/labels.ts b/src/renderer/src/i18n/labels.ts index eb718533..da783253 100644 --- a/src/renderer/src/i18n/labels.ts +++ b/src/renderer/src/i18n/labels.ts @@ -20,6 +20,9 @@ const APPROVAL_KINDS: Record = { }; export const approvalKindLabel = (kind: string) => labelOf("approval kind", APPROVAL_KINDS, kind); +const OFFICE_ACTIVITIES: Record = { active: t("Active"), thinking: t("Thinking"), busy: t("Busy"), idle: t("Idle") }; +export const officeActivityLabel = (activity: string) => labelOf("office activity", OFFICE_ACTIVITIES, activity); + const APPROVAL_STATES: Record = { pending: t("Pending"), approved: t("Approved"), declined: t("Declined"), superseded: t("Superseded") }; export const approvalStateLabel = (state: string) => labelOf("approval state", APPROVAL_STATES, state); diff --git a/src/renderer/src/i18n/zh.ts b/src/renderer/src/i18n/zh.ts index 46cf87c4..9d6d48e1 100644 --- a/src/renderer/src/i18n/zh.ts +++ b/src/renderer/src/i18n/zh.ts @@ -699,6 +699,13 @@ export const zh: Record = { "Waiting for the {name} sign-in in your browser (check {check} of {checks}).": "正在等待你在浏览器中完成 {name} 登录(第 {check}/{checks} 次检查)。", "Stop waiting": "停止等待", "People to mention": "可提及的人", + "{title}: use the arrow keys to read each value": "{title}:用方向键逐项读取数值", + "{rate}% of judged work accepted": "已评判的工作中 {rate}% 被接受", + "No work judged yet": "还没有评判过的工作", + "Office floor. People here: {count}. The person list in the toolbar shows each of them.": "办公室。在场人数:{count}。工具栏的人员列表可逐一查看。", + "Show a person": "查看某人", + "Show a person…": "查看某人…", + "{name}, {activity}": "{name},{activity}", "Layout": "布局", "View": "视图", "Run status": "运行状态", diff --git a/src/renderer/src/pages/OfficePage.tsx b/src/renderer/src/pages/OfficePage.tsx index 19efdecc..01f8b04d 100644 --- a/src/renderer/src/pages/OfficePage.tsx +++ b/src/renderer/src/pages/OfficePage.tsx @@ -5,6 +5,7 @@ import { activeOrgId, requireActiveEmployee } from "./types"; import { hashString, renderOffice, type RenderPerson } from "./office/office-renderer"; import { OfficeSimulation, cameraFor, type MoveInput } from "./office/simulation"; import { AgentDetailCard } from "./office/AgentDetailCard"; +import { officeActivityLabel } from "../i18n/labels"; import { cardPositionFor, CARD_FALLBACK_H } from "./office/agent-card-position"; import type { AgentActivity, Camera, OfficeAgentInput, Vec } from "./office/office-types"; import { t } from "../i18n/i18n"; @@ -235,6 +236,8 @@ export function OfficePage({ snapshot }: PageProps) {
)}
+