Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.
feat(web): translate the Meetings tab and meeting pages
Kilynd8b6d573c52a
diff --git a/apps/web/src/components/document-anchor-links.ts b/apps/web/src/components/document-anchor-links.tsindex efa9c97a..93aa28d1 100644--- a/apps/web/src/components/document-anchor-links.ts+++ b/apps/web/src/components/document-anchor-links.ts@@ -7,10 +7,10 @@ import {} from "react";import { useLocation } from "react-router";-import { extractRenderedDocumentHeadings } from "./document-headings";+import { commonMessages } from "@/i18n/common.messages";+import { useT } from "@/i18n/use-translation";-const unavailableSectionMessage =- "This section is unavailable in the current document.";+import { extractRenderedDocumentHeadings } from "./document-headings";export function scrollToDocumentAnchor(root: HTMLElement | null, hash: string) {if (!root || !hash.startsWith("#")) return false;@@ -54,10 +54,9 @@ export function useDocumentAnchorLinks() {const { hash, key } = useLocation();const pendingObserver = useRef<MutationObserver | null>(null);- const [failure, setFailure] = useState<{- identity: string;- message: string;- } | null>(null);+ const t = useT();+ // The identity of the document whose section could not be found.+ const [failure, setFailure] = useState<{ identity: string } | null>(null);useEffect(() => {const root = rootRef.current;if (!identity || !hash || !root) return;@@ -74,7 +73,7 @@ export function useDocumentAnchorLinks(? null: previous?.identity === identity? previous- : { identity, message: unavailableSectionMessage },+ : { identity },);if (found) observer.disconnect();};@@ -106,14 +105,15 @@ export function useDocumentAnchorLinks(event.stopPropagation();pendingObserver.current?.disconnect();setFailure(- scrollToDocumentAnchor(rootRef.current, reference)- ? null- : { identity, message: unavailableSectionMessage },+ scrollToDocumentAnchor(rootRef.current, reference) ? null : { identity },);return true;}return {- error: failure?.identity === identity ? failure?.message : undefined,+ error:+ failure && failure.identity === identity+ ? t(commonMessages.sectionUnavailable)+ : undefined,openAnchor,};}diff --git a/apps/web/src/components/document-table-of-contents.tsx b/apps/web/src/components/document-table-of-contents.tsxindex 6bc0f17a..decfb1bb 100644--- a/apps/web/src/components/document-table-of-contents.tsx+++ b/apps/web/src/components/document-table-of-contents.tsx@@ -2,6 +2,9 @@ import { Cancel01Icon } from "@hugeicons/core-free-icons";import { Icon } from "@/components/ui/icon";import type { RefObject } from "react";+import { commonMessages } from "@/i18n/common.messages";+import { useT } from "@/i18n/use-translation";+import { Button } from "./ui/button";import type { DocumentHeading } from "./document-headings";@@ -16,6 +19,7 @@ export function DocumentTableOfContents({id?: string;onClose: () => void;}) {+ const t = useT();const baseLevel = Math.min(...headings.map((heading) => heading.level), 6);return (<aside@@ -23,9 +27,12 @@ export function DocumentTableOfContents({id={id}><header className="flex h-12 items-center justify-between border-b border-app-border/60 px-3">- <h3 className="text-sm font-semibold">Table of contents</h3>+ <h3 className="text-sm font-semibold">+ {t(commonMessages.tableOfContents)}+ </h3><Button- aria-label="Close table of contents"+ data-voice-close+ aria-label={t(commonMessages.closeTableOfContents)}onClick={onClose}size="icon"tone="ghost"@@ -34,11 +41,13 @@ export function DocumentTableOfContents({</Button></header><nav- aria-label="Document table of contents"+ aria-label={t(commonMessages.documentTableOfContents)}className="workspace-scrollbar h-[calc(100%-48px)] overflow-y-auto p-2">{headings.length === 0 ? (- <p className="px-2 py-6 text-sm text-app-muted">No headings</p>+ <p className="px-2 py-6 text-sm text-app-muted">+ {t(commonMessages.noHeadings)}+ </p>) : (headings.map((heading) => (<buttondiff --git a/apps/web/src/features/memory/hide-meeting-dialog.tsx b/apps/web/src/features/memory/hide-meeting-dialog.tsxindex d66ec753..957c7a29 100644--- a/apps/web/src/features/memory/hide-meeting-dialog.tsx+++ b/apps/web/src/features/memory/hide-meeting-dialog.tsx@@ -1,6 +1,9 @@import { Button } from "@/components/ui/button";import { ModalDialog } from "@/components/ui/modal-dialog";+import { commonMessages } from "@/i18n/common.messages";+import { RichMessage, useT } from "@/i18n/use-translation";+import { meetingsMessages as m } from "./meetings.messages";import { useHideMeeting } from "./memory-queries";/** Confirms deleting a meeting from the caller's own Meetings. */@@ -19,18 +22,21 @@ export function HideMeetingDialog({tenantId: string;}) {const hide = useHideMeeting(tenantId);+ const t = useT();return (<ModalDialogdescription={- <>- <strong>{name}</strong> will no longer show in your Meetings. Others- who can see it keep it.- </>+ <RichMessage+ message={m.deleteBody}+ tags={{ strong: (text) => <strong>{text}</strong> }}+ values={{ name }}+ />}footer={<>- <Button onClick={onClose}>Cancel</Button>+ <Button onClick={onClose}>{t(commonMessages.cancel)}</Button><Button+ data-voice-risk="never"loading={hide.isPending}onClick={() =>hide.mutate(captureId, {@@ -42,17 +48,17 @@ export function HideMeetingDialog({}tone="danger">- Delete+ {t(commonMessages.delete)}</Button></>}onClose={onClose}size="sm"- title="Delete meeting"+ title={t(m.deleteMeeting)}>{hide.isError ? (<p className="px-5 py-4 text-sm text-app-danger" role="alert">- Couldn’t delete the meeting. Try again.+ {t(m.couldNotDelete)}</p>) : null}</ModalDialog>diff --git a/apps/web/src/features/memory/meeting-audio-player.tsx b/apps/web/src/features/memory/meeting-audio-player.tsxindex 92c1475d..81a4259b 100644--- a/apps/web/src/features/memory/meeting-audio-player.tsx+++ b/apps/web/src/features/memory/meeting-audio-player.tsx@@ -6,6 +6,10 @@ import {import { Icon } from "@/components/ui/icon";import { useRef, useState, type CSSProperties } from "react";+import { useT } from "@/i18n/use-translation";++import { meetingsMessages as m } from "./meetings.messages";+/** "754.2" seconds -> "12:34"; hours appear only when needed. */export function formatPlaybackTime(seconds: number) {if (!Number.isFinite(seconds) || seconds < 0) return "0:00";@@ -39,6 +43,7 @@ export function MeetingAudioPlayer({/** Replaces the time line, e.g. while the recording is still loading. */status?: string;}) {+ const t = useT();const audioRef = useRef<HTMLAudioElement>(null);const [playing, setPlaying] = useState(false);const [current, setCurrent] = useState(0);@@ -56,7 +61,7 @@ export function MeetingAudioPlayer({return (<section- aria-label="Meeting recording"+ aria-label={t(m.recording)}className="flex items-center gap-3 rounded-xl border border-app-border bg-app-surface px-3 py-2.5">{src ? (@@ -81,7 +86,7 @@ export function MeetingAudioPlayer({</audio>) : null}<button- aria-label={playing ? "Pause recording" : "Play recording"}+ aria-label={t(playing ? m.pauseRecording : m.playRecording)}className="flex size-9 shrink-0 items-center justify-center rounded-full bg-app-ink text-app-surface transition-[transform,opacity] duration-150 active:scale-95 disabled:opacity-30 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-app-focus focus-visible:ring-offset-2"disabled={!ready}onClick={toggle}@@ -96,18 +101,21 @@ export function MeetingAudioPlayer({<div className="min-w-0 flex-1"><div className="flex items-baseline justify-between gap-3"><span className="truncate text-[14px] font-medium text-app-ink">- Meeting recording+ {t(m.recording)}</span><span className="shrink-0 text-[12px] tabular-nums text-app-muted">{failed- ? "This browser cannot play it; download instead."+ ? t(m.cannotPlay): (status ??`${formatPlaybackTime(current)} / ${formatPlaybackTime(duration)}`)}</span></div><input- aria-label="Seek recording"- aria-valuetext={`${formatPlaybackTime(current)} of ${formatPlaybackTime(duration)}`}+ aria-label={t(m.seekRecording)}+ aria-valuetext={t(m.playbackPosition, {+ current: formatPlaybackTime(current),+ total: formatPlaybackTime(duration),+ })}className="meeting-audio-track mt-1.5 block w-full"disabled={!ready || !duration}max={duration || 0}@@ -127,11 +135,11 @@ export function MeetingAudioPlayer({/></div><button- aria-label={`Download ${filename}`}+ aria-label={t(m.downloadFile, { filename })}className="flex size-8 shrink-0 items-center justify-center rounded-lg text-app-muted transition-colors hover:bg-app-hover hover:text-app-ink disabled:opacity-40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-app-focus"disabled={downloadDisabled}onClick={onDownload}- title="Download recording"+ title={t(m.downloadRecording)}type="button"><Icon icon={Download01Icon} size={16} />diff --git a/apps/web/src/features/memory/meeting-overview-card.tsx b/apps/web/src/features/memory/meeting-overview-card.tsxindex 7394e0b8..6c86fc33 100644--- a/apps/web/src/features/memory/meeting-overview-card.tsx+++ b/apps/web/src/features/memory/meeting-overview-card.tsx@@ -2,7 +2,11 @@ import { cn } from "@/lib/cn";import { BubbleChatIcon } from "@hugeicons/core-free-icons";import { Fragment } from "react";import { Icon } from "@/components/ui/icon";+import type { Message } from "@/i18n/messages";+import { useT } from "@/i18n/use-translation";+import type { MeetingOutcome, MeetingTopic } from "./meeting-overview";+import { meetingsMessages as m } from "./meetings.messages";/*** Topic cards cycle through categorical Nature tints (500 shell at 10%,@@ -16,6 +20,9 @@ const topicTints = ["bg-bubblegum-500/10 text-bubblegum-700",] as const;+// Section headings and the None observed line stay as the stored page words+// them: they are its fixed format, and the table of contents and section+// links are keyed on them./** Shares the knowledge document's column and H2 around these sections. */const sectionFrame = "mb-3 w-full";const sectionHeading =@@ -29,6 +36,7 @@ const LONG_TOPIC_TEXT = 120;* topic. The heading matches the knowledge document's H2 around it.*/export function MeetingOverviewCard({ topics }: { topics: MeetingTopic[] }) {+ const t = useT();const longTopics = topics.some((topic) =>(topic.intro ?? "").length +@@ -37,12 +45,12 @@ export function MeetingOverviewCard({ topics }: { topics: MeetingTopic[] }) {);return (<section- aria-label="Meeting overview"+ aria-label={t(m.overview)}className={cn("@container", sectionFrame)}><h2 className={sectionHeading}>Meeting Summary</h2><ol- aria-label="Topics"+ aria-label={t(m.topics)}className={cn("grid grid-cols-1 gap-3 rounded-xl border border-app-border bg-app-surface p-4 md:p-5 @lg:grid-cols-2",!longTopics && "@3xl:grid-cols-3",@@ -113,10 +121,11 @@ export function MeetingKeywords({keywords: string[];title: string;}) {+ const t = useT();return (<section aria-label={title} className={sectionFrame}><h2 className={sectionHeading}>{title}</h2>- <ul className="flex flex-wrap gap-1.5" aria-label="Keywords">+ <ul className="flex flex-wrap gap-1.5" aria-label={t(m.keywords)}>{keywords.map((keyword) => (<liclassName="rounded-full border border-app-border bg-app-surface px-2.5 py-0.5 text-[14px] leading-5 text-app-body"@@ -138,6 +147,17 @@ const outcomeTints: Record<NonNullable<MeetingOutcome["label"]>, string> = {"border-(--app-status-warning-border) bg-(--app-status-warning-surface) text-(--app-status-warning-text)",};+// The stored page marks each entry in English; the tag names its kind in+// the language on screen.+const outcomeNames: Record<+ NonNullable<MeetingOutcome["label"]>,+ Message<string>+> = {+ Decision: m.outcomeDecision,+ Completed: m.outcomeCompleted,+ Action: m.outcomeAction,+};+/*** Decisions And Outcomes or Action Items, each entry led by its kind as a* tag instead of the `Decision:` / `Completed:` / `Action:` prefix.@@ -149,6 +169,7 @@ export function MeetingOutcomes({outcomes: MeetingOutcome[];title: string;}) {+ const t = useT();return (<section aria-label={title} className={sectionFrame}><h2 className={sectionHeading}>{title}</h2>@@ -167,7 +188,7 @@ export function MeetingOutcomes({outcomeTints[item.label],)}>- {item.label}+ {t(outcomeNames[item.label])}</span>) : null}<div className="min-w-0">diff --git a/apps/web/src/features/memory/meeting-page.tsx b/apps/web/src/features/memory/meeting-page.tsxindex 92728c64..d3ee8257 100644--- a/apps/web/src/features/memory/meeting-page.tsx+++ b/apps/web/src/features/memory/meeting-page.tsx@@ -29,6 +29,7 @@ import { DocumentTableOfContents } from "@/components/document-table-of-contentsimport { useDocumentAnchorLinks } from "@/components/document-anchor-links";import { resolveMemoryDocumentLink } from "./memory-document-links";import { Button } from "@/components/ui/button";+import { libraryMessages } from "@/features/library/library.messages";import {WORKSPACE_TREE_ID,useWorkspaceTree,@@ -36,10 +37,14 @@ import {import { requireRoomRouteParam } from "@/features/rooms/room-route-params";import { teamHubData } from "@/features/teamhub/teamhub-api";import { useTeamHubRuntime } from "@/features/teamhub/teamhub-runtime";+import { useT } from "@/i18n/use-translation";++import { meetingsMessages as m } from "./meetings.messages";/** One read-only meeting, named by the `entry` query of `/library/meetings`. */export function MeetingPage() {const { client } = useTeamHubRuntime();+ const t = useT();const tenantId = requireRoomRouteParam(useParams().tenantId, "Tenant");const navigate = useNavigate();const [searchParams, setSearchParams] = useSearchParams();@@ -76,18 +81,20 @@ export function MeetingPage() {<Buttonaria-controls={WORKSPACE_TREE_ID}aria-expanded={workspaceTree.open}- aria-label="Open Owned by Me"+ aria-label={t(m.openOwnedByMe)}className="sm:hidden"onClick={() => workspaceTree.setOpen(true)}size="icon"- title="Owned by Me"+ title={t(libraryMessages.ownedByMe)}tone="ghost"><Icon icon={SidebarLeftIcon} size={16} /></Button><div className="flex items-center gap-2"><Icon icon={BookOpen01Icon} className="text-app-muted" size={16} />- <h1 className="text-[15px] font-semibold text-app-ink">Meetings</h1>+ <h1 className="text-[15px] font-semibold text-app-ink">+ {t(m.pageTitle)}+ </h1></div></div><div className="flex items-center gap-2">@@ -95,11 +102,11 @@ export function MeetingPage() {<Buttonaria-controls="meeting-table-of-contents"aria-expanded={tocOpen}- aria-label="Table of contents"+ aria-label={t(m.tableOfContents)}aria-pressed={tocOpen}onClick={() => setTocOpen((value) => !value)}size="icon"- title="Table of contents"+ title={t(m.tableOfContents)}tone="ghost"><Icon icon={LeftToRightListBulletIcon} size={16} />@@ -110,7 +117,7 @@ export function MeetingPage() {<div className="relative flex min-h-0 flex-1"><section- aria-label="Meeting content"+ aria-label={t(m.content)}className="workspace-scrollbar min-h-0 min-w-0 flex-1 overflow-y-auto"ref={contentRef}onClickCapture={openAnchor}@@ -129,16 +136,16 @@ export function MeetingPage() {className="flex min-h-[420px] items-center justify-center gap-2 text-sm text-app-muted"><Icon icon={Loading03Icon} className="animate-spin" size={16} />- Loading meeting...+ {t(m.loadingMeeting)}</div>) : listed && selected.error ? (<div- aria-label={selected.error.message || "Meeting is unavailable."}+ aria-label={selected.error.message || t(m.unavailable)}className="mx-auto max-w-3xl px-6 py-10"role="alert"><p className="text-sm text-app-danger">- {selected.error.message || "Meeting is unavailable."}+ {selected.error.message || t(m.unavailable)}</p><ButtonclassName="mt-3"@@ -146,7 +153,7 @@ export function MeetingPage() {size="compact"tone="secondary">- <Icon icon={RefreshIcon} size={14} /> Retry meeting+ <Icon icon={RefreshIcon} size={14} /> {t(m.retryMeeting)}</Button></div>) : listed && selected.data?.meeting ? (diff --git a/apps/web/src/features/memory/meeting-reader.tsx b/apps/web/src/features/memory/meeting-reader.tsxindex 78b15b58..d01ae85c 100644--- a/apps/web/src/features/memory/meeting-reader.tsx+++ b/apps/web/src/features/memory/meeting-reader.tsx@@ -10,6 +10,10 @@ import {} from "@/features/rooms/files/artifact-preview-loader";import { useTeamHubRuntime } from "@/features/teamhub/teamhub-runtime";import type { TeamHubMemoryEntry } from "@/features/teamhub/teamhub-types";+import { commonMessages } from "@/i18n/common.messages";+import { translate } from "@/i18n/language";+import type { Message } from "@/i18n/messages";+import { useT } from "@/i18n/use-translation";import { MeetingAudioPlayer } from "./meeting-audio-player";import { parseMeetingSummary } from "./meeting-overview";import {@@ -19,6 +23,7 @@ import {} from "./meeting-overview-card";import { HideMeetingDialog } from "./hide-meeting-dialog";import { formatMeetingWhen, meetingWhen } from "./meetings-calendar";+import { meetingsMessages as m } from "./meetings.messages";const meetingSummaryHiddenSectionTitles = ["CRM Evidence Cache",@@ -51,6 +56,7 @@ export function MeetingReader({resolveLink?: (reference: string) => string | null | undefined;tenantId: string;}) {+ const t = useT();const meeting = entry.meeting!;const [deleting, setDeleting] = useState(false);const tab: MeetingTab =@@ -73,33 +79,40 @@ export function MeetingReader({);const summaryDocument = (markdown: string) => (<ReadOnlyBlockNoteDocumentLoader- ariaLabel="Meeting summary document"+ ariaLabel={t(m.summaryDocument)}hiddenSectionTitles={meetingSummaryHiddenSectionTitles}markdown={markdown}presentation="knowledge"resolveLink={resolveLink}/>);- const tabs: Array<{ id: MeetingTab; label: string }> = [- { id: "summary", label: "Summary" },- { id: "transcript", label: "Transcript" },+ const tabs: Array<{ id: MeetingTab; label: Message<string> }> = [+ { id: "summary", label: m.summary },+ { id: "transcript", label: m.transcript },];return (<articleclassName="meeting-document mx-auto w-full max-w-4xl px-5 py-7 md:px-10"- aria-label="Meeting"+ aria-label={t(m.meeting)}><header className="mb-4 flex items-start gap-3"><div className="min-w-0 flex-1"><h2 className="break-words text-xl text-app-ink">{when- ? `Meeting · ${formatMeetingWhen(when.date, when.time)}`+ ? t(m.meetingHeading, {+ when: formatMeetingWhen(when.date, when.time, t),+ }): entry.title}</h2>- <p className="mt-1 text-xs text-app-muted">Read only</p>+ <p className="mt-1 text-xs text-app-muted">{t(m.readOnly)}</p></div>- <Button onClick={() => setDeleting(true)} size="compact" tone="ghost">- Delete+ <Button+ data-voice-risk="never"+ onClick={() => setDeleting(true)}+ size="compact"+ tone="ghost"+ >+ {t(commonMessages.delete)}</Button></header>{deleting ? (@@ -107,7 +120,9 @@ export function MeetingReader({captureId={meeting.capture_id}name={when- ? `Meeting ${formatMeetingWhen(when.date, when.time)}`+ ? t(m.meetingNamed, {+ when: formatMeetingWhen(when.date, when.time, t),+ }): entry.title}onClose={() => setDeleting(false)}@@ -116,7 +131,7 @@ export function MeetingReader({/>) : null}<div- aria-label="Meeting views"+ aria-label={t(m.views)}className="flex items-center gap-1 border-b border-app-border"role="tablist">@@ -135,7 +150,7 @@ export function MeetingReader({role="tab"type="button">- {item.label}+ {t(item.label)}</button>))}</div>@@ -162,13 +177,13 @@ export function MeetingReader({)}>- Download summary+ {t(m.downloadSummary)}</Button></div>{/* One reading surface: the table of contents reads everyheading inside it, the card's included. */}<article- aria-label="Meeting summary"+ aria-label={t(m.meetingSummary)}className="[&>article:not(:first-child)]:pt-0 [&>article:not(:last-child)]:pb-0"data-content-renderer="blocknote"data-editable="false"@@ -198,7 +213,7 @@ export function MeetingReader({</>) : (<p className="text-sm text-app-muted" role="status">- The summary is still being written. The transcript is ready now.+ {t(m.summaryPending)}</p>)}{/* The recording closes the summary, ready to replay a moment. */}@@ -242,6 +257,7 @@ function MeetingVersionReader({variant: "player" | "document";}) {const { client } = useTeamHubRuntime();+ const t = useT();const [preview, setPreview] = useState<LoadedArtifactPreview>();const [error, setError] = useState<string>();const [attempt, setAttempt] = useState(0);@@ -283,7 +299,9 @@ function MeetingVersionReader({return;}setError(- failure instanceof Error ? failure.message : "File unavailable.",+ failure instanceof Error+ ? failure.message+ : translate(m.fileUnavailable),);});return () => {@@ -307,7 +325,9 @@ function MeetingVersionReader({} catch (failure) {if (!signal.aborted)setError(- failure instanceof Error ? failure.message : "Download failed.",+ failure instanceof Error+ ? failure.message+ : translate(m.downloadFailed),);} finally {if (!signal.aborted) setDownloading(false);@@ -316,13 +336,13 @@ function MeetingVersionReader({const header = (<div className="mb-3 flex justify-end"><Button- aria-label={`Download ${filename}`}+ aria-label={t(m.downloadFile, { filename })}size="compact"tone="secondary"disabled={!preview || downloading}onClick={() => void download()}>- {variant === "player" ? "Download recording" : "Download transcript"}+ {t(variant === "player" ? m.downloadRecording : m.downloadTranscript)}</Button></div>);@@ -334,17 +354,15 @@ function MeetingVersionReader({size="compact"tone="secondary">- Retry+ {t(commonMessages.retry)}</Button></div>) : !preview ? (<p className="text-sm text-app-muted" role="status">- {variant === "player" ? "Loading recording…" : "Loading transcript…"}+ {t(variant === "player" ? m.loadingRecording : m.loadingTranscript)}</p>) : preview.decision.kind === "download" ? (- <p className="text-sm text-app-muted">- Preview unavailable. Download the recording to open it.- </p>+ <p className="text-sm text-app-muted">{t(m.previewUnavailable)}</p>) : (<ArtifactContentRendererLoaderkind={preview.decision.kind}@@ -362,7 +380,7 @@ function MeetingVersionReader({if (error)return (<section- aria-label="Meeting recording"+ aria-label={t(m.recording)}className="flex items-center gap-3 rounded-xl border border-app-border bg-app-surface px-3 py-2.5 text-sm"><span className="min-w-0 flex-1 text-app-danger" role="alert">@@ -373,7 +391,7 @@ function MeetingVersionReader({size="compact"tone="secondary">- Retry+ {t(commonMessages.retry)}</Button></section>);@@ -390,10 +408,10 @@ function MeetingVersionReader({src={playable ? preview.objectUrl : undefined}status={!preview- ? "Loading…"+ ? t(commonMessages.loading): playable? undefined- : "Preview unavailable · download to listen"+ : t(m.previewUnavailableListen)}/>);diff --git a/apps/web/src/features/memory/meetings-calendar.ts b/apps/web/src/features/memory/meetings-calendar.tsindex a2250322..d04f5c69 100644--- a/apps/web/src/features/memory/meetings-calendar.ts+++ b/apps/web/src/features/memory/meetings-calendar.ts@@ -1,4 +1,7 @@import type { TeamHubMemoryEntry } from "@/features/teamhub/teamhub-types";+import { type Translate, formatLocale, translate } from "@/i18n/language";++import { meetingsMessages as m } from "./meetings.messages";export interface CalendarMeeting {id: string;@@ -23,20 +26,6 @@ export interface CalendarMonth {}const monthsShown = 12;-export const monthLabels = [- "Jan",- "Feb",- "Mar",- "Apr",- "May",- "Jun",- "Jul",- "Aug",- "Sep",- "Oct",- "Nov",- "Dec",-];// Meeting folders are named in the server's local time; the calendar uses the// same dates so a meeting sits on the same day in both places.const meetingPath =@@ -85,6 +74,7 @@ export function meetingsByDate(export function calendarMonths(today: string,counts: ReadonlyMap<string, number>,+ locale: string = formatLocale(),): CalendarMonth[] {const [year, month] = today.split("-").map(Number) as [number, number];const months: CalendarMonth[] = [];@@ -109,7 +99,7 @@ export function calendarMonths(}months.push({key: first.toISOString().slice(0, 7),- label: monthLabels[first.getUTCMonth()]!,+ label: dateFormat(locale, "month").format(first),weeks,});}@@ -125,15 +115,65 @@ export function meetingLevel(count: number): 0 | 1 | 2 | 3 | 4 {return 4;}+type DateParts = "month" | "monthDay" | "weekday" | "weekdayMonthDay";+const dateParts: Record<DateParts, Intl.DateTimeFormatOptions> = {+ month: { month: "short" },+ monthDay: { month: "short", day: "numeric" },+ weekday: { weekday: "short" },+ weekdayMonthDay: { weekday: "short", month: "short", day: "numeric" },+};+const dateFormats = new Map<string, Intl.DateTimeFormat>();++// Meeting dates are calendar days already; UTC keeps them on that day.+function dateFormat(locale: string, parts: DateParts) {+ const key = `${locale}:${parts}`;+ let format = dateFormats.get(key);+ if (!format) {+ format = new Intl.DateTimeFormat(locale, {+ ...dateParts[parts],+ timeZone: "UTC",+ });+ dateFormats.set(key, format);+ }+ return format;+}++function utcDay(date: string) {+ return new Date(`${date}T00:00:00Z`);+}++/** "2026-10-01" -> "Oct 1" in the language on screen. */+export function formatMeetingMonthDay(+ date: string,+ locale: string = formatLocale(),+) {+ return dateFormat(locale, "monthDay").format(utcDay(date));+}++/** "2026-10-01" -> "Thu" in the language on screen. */+export function formatMeetingWeekday(+ date: string,+ locale: string = formatLocale(),+) {+ return dateFormat(locale, "weekday").format(utcDay(date));+}+/** "2026-10-01", "09:05:00" -> "Oct 1, 09:05". */-export function formatMeetingWhen(date: string, time: string) {- const [, month, day] = date.split("-");- return `${monthLabels[Number(month) - 1]} ${Number(day)}, ${time.slice(0, 5)}`;+export function formatMeetingWhen(+ date: string,+ time: string,+ t: Translate = translate,+) {+ return t(m.whenFormat, {+ day: formatMeetingMonthDay(date),+ time: time.slice(0, 5),+ });}/** "2026-10-01" -> "Thu, Oct 1"; the date is already a local day. */-export function formatMeetingDay(date: string) {- const [, month, day] = date.split("-");- const weekday = new Date(`${date}T00:00:00Z`).getUTCDay();- return `${["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"][weekday]}, ${monthLabels[Number(month) - 1]} ${Number(day)}`;+export function formatMeetingDay(+ date: string,+ locale: string = formatLocale(),+) {+ return dateFormat(locale, "weekdayMonthDay").format(utcDay(date));}diff --git a/apps/web/src/features/memory/meetings-language.test.tsx b/apps/web/src/features/memory/meetings-language.test.tsxnew file mode 100644index 00000000..711a0fdb--- /dev/null+++ b/apps/web/src/features/memory/meetings-language.test.tsx@@ -0,0 +1,129 @@+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";+import { act, render, screen } from "@testing-library/react";+import { createMemoryRouter, RouterProvider } from "react-router";+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";++import { TeamHubRuntimeProvider } from "@/features/teamhub/teamhub-runtime";+import type { TeamHubMemoryEntry } from "@/features/teamhub/teamhub-types";+import { resetLanguageForTest, setLanguage } from "@/i18n/language";+import zhCN from "@/i18n/locales/zh-CN.json";+import { createTestTeamHubRuntime } from "@/test/teamhub-test-runtime";++import {+ calendarMonths,+ formatMeetingDay,+ formatMeetingWhen,+} from "./meetings-calendar";+import { MeetingsPanel } from "./meetings-panel";++const words = zhCN.meetings;+const entry = {+ id: "meeting_000000000000000000000001",+ kind: "meeting",+ title: "Meeting 09-05-00",+ path: "Meetings/2026/10/01/Meeting 09-05-00",+ content: "",+ summary: "",+ updated_at: "2026-10-01T08:00:00Z",+ meeting: {+ capture_id: "capture_1",+ started_at: "2026-10-01T08:00:00Z",+ recording_document_id: "audio",+ recording_version_id: "audio_v1",+ recording_filename: "morning.m4a",+ transcript_document_id: "transcript",+ transcript_version_id: "transcript_v1",+ summary_ready: true,+ },+} satisfies TeamHubMemoryEntry;++function chinese(options: Intl.DateTimeFormatOptions) {+ return new Intl.DateTimeFormat("zh-CN", {+ ...options,+ timeZone: "UTC",+ }).format(new Date(Date.UTC(2026, 9, 1)));+}++function renderPanel() {+ const runtime = createTestTeamHubRuntime();+ runtime.server.on("GET", "/v0/tenants/{tenantId}/memory", () => ({+ items: [entry],+ }));+ const router = createMemoryRouter(+ [+ {+ element: <MeetingsPanel tenantId="tenant-1" />,+ path: "/t/:tenantId/library",+ },+ ],+ { initialEntries: ["/t/tenant-1/library?tab=meetings&meetings=all"] },+ );+ render(+ <QueryClientProvider client={new QueryClient()}>+ <TeamHubRuntimeProvider runtime={runtime}>+ <RouterProvider router={router} />+ </TeamHubRuntimeProvider>+ </QueryClientProvider>,+ );+}++describe("Meetings in the language on screen", () => {+ beforeEach(() => {+ vi.useFakeTimers({ toFake: ["Date"] });+ // 16:00 local time on 2026-10-01.+ vi.setSystemTime(new Date(2026, 9, 1, 16));+ });+ afterEach(() => {+ vi.useRealTimers();+ resetLanguageForTest();+ });++ it("keeps the English dates and writes them the Chinese way after a switch", async () => {+ expect(formatMeetingDay("2026-10-01")).toBe("Thu, Oct 1");+ expect(formatMeetingWhen("2026-10-01", "09:05:00")).toBe("Oct 1, 09:05");+ await setLanguage("zh-CN");+ const day = chinese({ day: "numeric", month: "short" });+ expect(formatMeetingDay("2026-10-01")).toBe(+ chinese({ day: "numeric", month: "short", weekday: "short" }),+ );+ expect(formatMeetingWhen("2026-10-01", "09:05:00")).toBe(+ words.whenFormat.replace("{day}", day).replace("{time}", "09:05"),+ );+ expect(calendarMonths("2026-10-01", new Map()).at(-1)!.label).toBe(+ chinese({ month: "short" }),+ );+ });++ it("names the range, the day and each meeting again when the language changes", async () => {+ await setLanguage("zh-CN");+ renderPanel();+ const when = words.whenFormat+ .replace("{day}", chinese({ day: "numeric", month: "short" }))+ .replace("{time}", "09:05");+ const name = words.meetingNamed.replace("{when}", when);+ expect(await screen.findByRole("link", { name })).toBeInTheDocument();+ expect(screen.getByRole("radio", { name: words.rangeAll })).toHaveAttribute(+ "aria-checked",+ "true",+ );+ expect(+ screen.getByRole("button", {+ name: words.deleteNamed.replace("{name}", name),+ }),+ ).toBeInTheDocument();+ expect(+ screen.getByRole("region", { name: words.calendar }),+ ).toHaveTextContent(chinese({ month: "short" }));++ await act(() => setLanguage("en"));+ expect(+ screen.getByRole("link", { name: "Meeting Oct 1, 09:05" }),+ ).toBeInTheDocument();+ expect(+ screen.getByRole("region", { name: "Meeting calendar" }),+ ).toHaveTextContent("Oct");+ expect(+ screen.getByRole("button", { name: /^Thu, Oct 1 · Today/ }),+ ).toBeInTheDocument();+ });+});diff --git a/apps/web/src/features/memory/meetings-panel.tsx b/apps/web/src/features/memory/meetings-panel.tsxindex 1ad5b586..233fd2e9 100644--- a/apps/web/src/features/memory/meetings-panel.tsx+++ b/apps/web/src/features/memory/meetings-panel.tsx@@ -11,15 +11,21 @@ import { Link, useSearchParams } from "react-router";import {calendarMonths,formatMeetingDay,+ formatMeetingMonthDay,+ formatMeetingWeekday,formatMeetingWhen,meetingLevel,meetingsByDate,- monthLabels,} from "./meetings-calendar";import { Spinner } from "@/components/ui/spinner";+import { commonMessages } from "@/i18n/common.messages";+import { formatLocale } from "@/i18n/language";+import type { Message } from "@/i18n/messages";+import { useTranslation } from "@/i18n/use-translation";import { dayKey } from "@/lib/date-format";import { meetingPath, useMeetings } from "./memory-queries";import { HideMeetingDialog } from "./hide-meeting-dialog";+import { meetingsMessages as m } from "./meetings.messages";const levelClass = ["bg-[#f1f0ec]",@@ -28,15 +34,17 @@ const levelClass = ["bg-[#7d7b6e]","bg-app-ink",] as const;-const weekdayLabels = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];const recentDayCount = 7;/** Which meetings the panel shows; `?meetings=` keeps the choice in the URL. */export type MeetingsRange = "all" | "today" | "week";-const meetingRanges: ReadonlyArray<{ id: MeetingsRange; label: string }> = [- { id: "today", label: "Today" },- { id: "week", label: "Past 7 days" },- { id: "all", label: "All meetings" },+const meetingRanges: ReadonlyArray<{+ id: MeetingsRange;+ label: Message<string>;+}> = [+ { id: "today", label: m.rangeToday },+ { id: "week", label: m.rangeWeek },+ { id: "all", label: m.rangeAll },];const rangeParam: Record<MeetingsRange, string> = {all: "all",@@ -70,6 +78,7 @@ function shiftDate(date: string, days: number) {* the list by file name, date, or time.*/export function MeetingsPanel({ tenantId }: { tenantId: string }) {+ const { language, t } = useTranslation();const meetings = useMeetings(tenantId);const byDate = useMemo(() => meetingsByDate(meetings.data ?? []),@@ -81,8 +90,9 @@ export function MeetingsPanel({ tenantId }: { tenantId: string }) {calendarMonths(today,new Map([...byDate].map(([date, items]) => [date, items.length])),+ formatLocale(language),),- [byDate, today],+ [byDate, today, language],);const latest = [...byDate.keys()].sort().at(-1);const [searchParams, setSearchParams] = useSearchParams();@@ -94,9 +104,9 @@ export function MeetingsPanel({ tenantId }: { tenantId: string }) {: range === "today"? today: shiftDate(today, -(recentDayCount - 1));- const rangeLabel = meetingRanges.find(- (candidate) => candidate.id === range,- )!.label;+ const rangeLabel = t(+ meetingRanges.find((candidate) => candidate.id === range)!.label,+ );const [chosen, setChosen] = useState<string>();const [collapsed, setCollapsed] = useState<Set<string>>(() => new Set());const [tip, setTip] = useState<{ text: string; x: number; y: number }>();@@ -106,12 +116,11 @@ export function MeetingsPanel({ tenantId }: { tenantId: string }) {}>();const recentDays = Array.from({ length: recentDayCount }, (_, index) => {const date = shiftDate(today, index - (recentDayCount - 1));- const [, month, day] = date.split("-");return {date,count: byDate.get(date)?.length ?? 0,- weekday: weekdayLabels[new Date(`${date}T00:00:00Z`).getUTCDay()]!,- label: `${monthLabels[Number(month) - 1]} ${Number(day)}`,+ weekday: formatMeetingWeekday(date),+ label: formatMeetingMonthDay(date),};});const selected = chosen ?? (byDate.has(today) ? today : (latest ?? today));@@ -124,13 +133,19 @@ export function MeetingsPanel({ tenantId }: { tenantId: string }) {date,items: needle? items.filter((item) =>- `meeting ${item.recordingFilename} ${date} ${item.time} ${formatMeetingDay(date)}`+ // "meeting" finds every entry whatever the language on screen.+ `meeting ${meetingName(item)} ${item.recordingFilename} ${date} ${item.time} ${formatMeetingDay(date)}`.toLowerCase().includes(needle),): items,})).filter((day) => day.items.length > 0);+ function meetingName(meeting: { date: string; time: string }) {+ return t(m.meetingNamed, {+ when: formatMeetingWhen(meeting.date, meeting.time, t),+ });+ }const dayRefs = useRef(new Map<string, HTMLElement>());// A day chosen on the calendar brings its meetings into view.useEffect(() => {@@ -147,7 +162,10 @@ export function MeetingsPanel({ tenantId }: { tenantId: string }) {function showTip(cell: Element, day: { date: string; count: number }) {const box = cell.getBoundingClientRect();setTip({- text: `${formatMeetingDay(day.date)} · ${day.count} ${day.count === 1 ? "meeting" : "meetings"}`,+ text: t(m.dayCountTip, {+ count: day.count,+ date: formatMeetingDay(day.date),+ }),x: box.left + box.width / 2,y: box.top,});@@ -169,7 +187,7 @@ export function MeetingsPanel({ tenantId }: { tenantId: string }) {return (<div className="flex flex-col gap-4"><div- aria-label="Meeting range"+ aria-label={t(m.range)}className="inline-flex w-fit gap-0.5 rounded-lg bg-muted p-0.5"role="radiogroup">@@ -186,7 +204,7 @@ export function MeetingsPanel({ tenantId }: { tenantId: string }) {role="radio"type="button">- {candidate.label}+ {t(candidate.label)}</button>))}</div>@@ -194,20 +212,20 @@ export function MeetingsPanel({ tenantId }: { tenantId: string }) {{meetings.isPending ? (<p className="flex items-center gap-2 text-sm text-app-muted"><Spinner size={15} />- Loading meetings…+ {t(m.loading)}</p>) : meetings.isError ? (<p role="alert" className="text-sm text-app-danger">- Meetings could not be loaded.{" "}+ {t(m.couldNotLoad)}{" "}<button type="button" onClick={() => void meetings.refetch()}>- Retry+ {t(commonMessages.retry)}</button></p>) : (<div className="flex w-full flex-col gap-4">{range === "today" ? null : (<section- aria-label="Meeting calendar"+ aria-label={t(m.calendar)}className="rounded-xl border border-border bg-card p-4 md:p-5">{recentOnly ? (@@ -222,7 +240,10 @@ export function MeetingsPanel({ tenantId }: { tenantId: string }) {key={day.date}><button- aria-label={`${day.date}: ${day.count} ${day.count === 1 ? "meeting" : "meetings"}`}+ aria-label={t(m.dayCount, {+ count: day.count,+ date: day.date,+ })}aria-pressed={day.date === selected}className={`meeting-calendar-cell flex aspect-square w-full items-center justify-center rounded-lg text-[15px] font-semibold tabular-nums transition-colors hover:outline hover:outline-1 hover:outline-app-ink/40 ${levelClass[level]} ${level >= 3 ? "text-app-surface" : "text-app-ink"} ${day.date === today ? "meeting-today" : ""} ${day.date === selected ? "ring-2 ring-app-ink ring-offset-2 ring-offset-app-surface" : ""}`}onClick={() => {@@ -233,14 +254,17 @@ export function MeetingsPanel({ tenantId }: { tenantId: string }) {return next;});}}- title={`${day.date} · ${day.count} ${day.count === 1 ? "meeting" : "meetings"}`}+ title={t(m.dayCountTip, {+ count: day.count,+ date: day.date,+ })}type="button">{day.count || ""}</button><span className="text-center leading-4"><span className="block font-medium text-app-ink">- {day.date === today ? "Today" : day.weekday}+ {day.date === today ? t(m.today) : day.weekday}</span>{day.label}</span>@@ -281,7 +305,10 @@ export function MeetingsPanel({ tenantId }: { tenantId: string }) {) : (<buttonkey={day.date}- aria-label={`${day.date}: ${day.count} ${day.count === 1 ? "meeting" : "meetings"}`}+ aria-label={t(m.dayCount, {+ count: day.count,+ date: day.date,+ })}aria-pressed={day.date === selected}className={`meeting-heatmap-cell aspect-square w-full rounded-[4px] ${levelClass[meetingLevel(day.count)]} ${day.date === today ? "meeting-today" : ""} ${day.date === selected ? "ring-2 ring-app-ink ring-offset-1 ring-offset-app-surface" : ""}`}onClick={() => {@@ -329,10 +356,10 @@ export function MeetingsPanel({ tenantId }: { tenantId: string }) {<label className="flex h-9 w-full items-center gap-2 rounded-lg border border-border bg-card px-3 text-muted-foreground transition-colors hover:border-border-hover focus-within:border-foreground focus-within:ring-2 focus-within:ring-ring/40 sm:w-64"><Icon icon={Search01Icon} size={16} /><input- aria-label="Search meetings"+ aria-label={t(m.search)}className="min-w-0 flex-1 bg-transparent text-sm text-foreground outline-none placeholder:text-app-placeholder"onChange={(event) => setQuery(event.target.value)}- placeholder="Search by date or time"+ placeholder={t(m.searchPlaceholder)}type="search"value={query}/>@@ -340,14 +367,14 @@ export function MeetingsPanel({ tenantId }: { tenantId: string }) {</div>{chosen && !byDate.has(chosen) && !needle ? (<p className="border-b border-app-border px-4 py-2.5 text-sm text-app-muted md:px-5">- No meetings on {formatMeetingDay(chosen)}.+ {t(m.noneOnDay, { day: formatMeetingDay(chosen) })}</p>) : null}{days.length ? (<div>{days.map((day) => (<section- aria-label={`Meetings on ${day.date}`}+ aria-label={t(m.meetingsOn, { date: day.date })}className="meeting-date-group"key={day.date}ref={(node) => {@@ -369,8 +396,9 @@ export function MeetingsPanel({ tenantId }: { tenantId: string }) {}type="button">- {formatMeetingDay(day.date)}- {day.date === today ? " · Today" : ""}+ {day.date === today+ ? t(m.dayToday, { day: formatMeetingDay(day.date) })+ : formatMeetingDay(day.date)}<Iconicon={ArrowDown01Icon}size={14}@@ -383,7 +411,7 @@ export function MeetingsPanel({ tenantId }: { tenantId: string }) {<ul className="pb-2" hidden={collapsed.has(day.date)}>{day.items.map((meeting) => {const to = meetingPath(tenantId, meeting.id);- const name = `Meeting ${formatMeetingWhen(meeting.date, meeting.time)}`;+ const name = meetingName(meeting);return (<liclassName="group flex items-center gap-3 transition-colors duration-300 hover:bg-muted/70"@@ -393,22 +421,28 @@ export function MeetingsPanel({ tenantId }: { tenantId: string }) {className="min-w-0 flex-1 truncate py-2 text-sm text-app-ink"to={to}>- Meeting{" "}- {formatMeetingWhen(meeting.date, meeting.time)}+ {name}</Link>{meeting.summaryReady ? (// The meeting entry opens on its summary.<Link- aria-label={`Summary of Meeting ${formatMeetingWhen(meeting.date, meeting.time)}`}+ aria-label={t(m.summaryOf, {+ when: formatMeetingWhen(+ meeting.date,+ meeting.time,+ t,+ ),+ })}className="inline-flex shrink-0 items-center gap-1 rounded text-xs text-app-muted hover:text-app-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-app-focus"to={to}><Icon icon={File01Icon} size={12} />- Summary+ {t(m.summary)}</Link>) : null}<button- aria-label={`Delete ${name}`}+ data-voice-risk="never"+ aria-label={t(m.deleteNamed, { name })}className="flex size-6 shrink-0 items-center justify-center rounded text-app-muted opacity-0 transition-opacity hover:text-app-danger focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-app-focus group-hover:opacity-100 [@media(hover:none)]:opacity-100"onClick={() =>setDeleting({@@ -416,7 +450,7 @@ export function MeetingsPanel({ tenantId }: { tenantId: string }) {name,})}- title="Delete meeting"+ title={t(m.deleteMeeting)}type="button"><Icon icon={Delete02Icon} size={14} />@@ -431,12 +465,12 @@ export function MeetingsPanel({ tenantId }: { tenantId: string }) {) : (<p className="px-4 py-3 text-sm text-app-muted md:px-5">{needle- ? `No meetings match “${query.trim()}”.`+ ? t(m.noMatch, { query: query.trim() }): range === "today"- ? "No meetings today."+ ? t(m.noneToday): recentOnly- ? "No meetings in the past 7 days."- : "No meetings yet."}+ ? t(m.noneThisWeek)+ : t(m.noneYet)}</p>)}</section>diff --git a/apps/web/src/features/memory/meetings.messages.ts b/apps/web/src/features/memory/meetings.messages.tsnew file mode 100644index 00000000..ba5f0e29--- /dev/null+++ b/apps/web/src/features/memory/meetings.messages.ts@@ -0,0 +1,88 @@+import { defineMessages } from "@/i18n/messages";++/** The Library Meetings tab and the page of one meeting. */+export const meetingsMessages = defineMessages("meetings", {+ // How a meeting and its start are named everywhere.+ whenFormat: "{day}, {time}",+ meetingNamed: "Meeting {when}",+ meetingHeading: "Meeting · {when}",++ // The Meetings tab: range, calendar and list.+ range: "Meeting range",+ rangeToday: "Today",+ rangeWeek: "Past 7 days",+ rangeAll: "All meetings",+ loading: "Loading meetings…",+ couldNotLoad: "Meetings could not be loaded.",+ calendar: "Meeting calendar",+ dayCount: {+ one: "{date}: {count} meeting",+ other: "{date}: {count} meetings",+ },+ dayCountTip: {+ one: "{date} · {count} meeting",+ other: "{date} · {count} meetings",+ },+ today: "Today",+ dayToday: "{day} · Today",+ search: "Search meetings",+ searchPlaceholder: "Search by date or time",+ noneOnDay: "No meetings on {day}.",+ meetingsOn: "Meetings on {date}",+ summaryOf: "Summary of Meeting {when}",+ summary: "Summary",+ deleteNamed: "Delete {name}",+ deleteMeeting: "Delete meeting",+ noMatch: "No meetings match “{query}”.",+ noneToday: "No meetings today.",+ noneThisWeek: "No meetings in the past 7 days.",+ noneYet: "No meetings yet.",++ // Deleting a meeting from the reader's own Meetings.+ deleteBody:+ "<strong>{name}</strong> will no longer show in your Meetings. Others who can see it keep it.",+ couldNotDelete: "Couldn’t delete the meeting. Try again.",++ // The page of one meeting.+ pageTitle: "Meetings",+ openOwnedByMe: "Open Owned by Me",+ tableOfContents: "Table of contents",+ content: "Meeting content",+ loadingMeeting: "Loading meeting...",+ unavailable: "Meeting is unavailable.",+ retryMeeting: "Retry meeting",+ meeting: "Meeting",+ readOnly: "Read only",+ views: "Meeting views",+ transcript: "Transcript",+ downloadSummary: "Download summary",+ meetingSummary: "Meeting summary",+ summaryDocument: "Meeting summary document",+ summaryPending:+ "The summary is still being written. The transcript is ready now.",+ fileUnavailable: "File unavailable.",+ downloadFailed: "Download failed.",+ downloadFile: "Download {filename}",+ downloadRecording: "Download recording",+ downloadTranscript: "Download transcript",+ loadingRecording: "Loading recording…",+ loadingTranscript: "Loading transcript…",+ previewUnavailable: "Preview unavailable. Download the recording to open it.",+ previewUnavailableListen: "Preview unavailable · download to listen",++ // The summary as the reader presents it.+ overview: "Meeting overview",+ topics: "Topics",+ keywords: "Keywords",+ outcomeDecision: "Decision",+ outcomeCompleted: "Completed",+ outcomeAction: "Action",++ // The recording player.+ recording: "Meeting recording",+ playRecording: "Play recording",+ pauseRecording: "Pause recording",+ cannotPlay: "This browser cannot play it; download instead.",+ seekRecording: "Seek recording",+ playbackPosition: "{current} of {total}",+});diff --git a/apps/web/src/features/wiki/knowledge-sidebar-trees.tsx b/apps/web/src/features/wiki/knowledge-sidebar-trees.tsxindex e2638baf..0ff83e6e 100644--- a/apps/web/src/features/wiki/knowledge-sidebar-trees.tsx+++ b/apps/web/src/features/wiki/knowledge-sidebar-trees.tsx@@ -404,7 +404,7 @@ function MeetingLink({><span className="min-w-0 flex-1 truncate">{t(m.meetingWhen, {- when: formatMeetingWhen(meeting.date, meeting.time),+ when: formatMeetingWhen(meeting.date, meeting.time, t),})}</span></Link>diff --git a/apps/web/src/i18n/common.messages.ts b/apps/web/src/i18n/common.messages.tsindex d53069bf..f2fb8b02 100644--- a/apps/web/src/i18n/common.messages.ts+++ b/apps/web/src/i18n/common.messages.ts@@ -25,4 +25,9 @@ export const commonMessages = defineMessages("common", {you: "You",justNow: "just now",loading: "Loading…",+ tableOfContents: "Table of contents",+ closeTableOfContents: "Close table of contents",+ documentTableOfContents: "Document table of contents",+ noHeadings: "No headings",+ sectionUnavailable: "This section is unavailable in the current document.",});diff --git a/apps/web/src/i18n/locales/zh-CN.glossary.md b/apps/web/src/i18n/locales/zh-CN.glossary.mdindex 2814dee2..48bfaef5 100644--- a/apps/web/src/i18n/locales/zh-CN.glossary.md+++ b/apps/web/src/i18n/locales/zh-CN.glossary.md@@ -75,6 +75,10 @@ elsewhere.| Meeting summary | 会议摘要 | || Voice Mode | 语音模式 | || Dictation | 听写 | Speaking text into a note or the composer. |+| Recording (of a meeting) | 录音 | The audio of a meeting. |+| Summary (of a meeting) | 摘要 | |+| Topics (of a meeting) | 议题 | Wiki Topics are 主题. |+| Table of contents | 目录 | || Voice provider | 语音服务商 | Soniox or xAI; the names stay as they are. || Draft | 草稿 | || Local model | 本地模型 | |diff --git a/apps/web/src/i18n/locales/zh-CN.json b/apps/web/src/i18n/locales/zh-CN.jsonindex 3342d5e2..2c861b21 100644--- a/apps/web/src/i18n/locales/zh-CN.json+++ b/apps/web/src/i18n/locales/zh-CN.json@@ -22,7 +22,12 @@"back": "返回","you": "你","justNow": "刚刚",- "loading": "加载中…"+ "loading": "加载中…",+ "tableOfContents": "目录",+ "closeTableOfContents": "关闭目录",+ "documentTableOfContents": "文档目录",+ "noHeadings": "没有标题",+ "sectionUnavailable": "当前文档中没有这个章节。"},"settings": {"navigation": "设置导航",@@ -2392,5 +2397,71 @@"providerUnreachable": "无法连接 {provider} 来检查密钥。请稍后再试。","voiceOff": "这台服务器已关闭语音。","saveFailed": "无法保存密钥,请再试一次。"+ },+ "meetings": {+ "whenFormat": "{day} {time}",+ "meetingNamed": "会议 {when}",+ "meetingHeading": "会议 · {when}",+ "range": "会议范围",+ "rangeToday": "今天",+ "rangeWeek": "过去 7 天",+ "rangeAll": "全部会议",+ "loading": "正在加载会议…",+ "couldNotLoad": "无法加载会议。",+ "calendar": "会议日历",+ "dayCount": { "other": "{date}:{count} 场会议" },+ "dayCountTip": { "other": "{date} · {count} 场会议" },+ "today": "今天",+ "dayToday": "{day} · 今天",+ "search": "搜索会议",+ "searchPlaceholder": "按日期或时间搜索",+ "noneOnDay": "{day}没有会议。",+ "meetingsOn": "{date} 的会议",+ "summaryOf": "会议 {when} 的摘要",+ "summary": "摘要",+ "deleteNamed": "删除{name}",+ "deleteMeeting": "删除会议",+ "noMatch": "没有与“{query}”匹配的会议。",+ "noneToday": "今天没有会议。",+ "noneThisWeek": "过去 7 天没有会议。",+ "noneYet": "还没有会议。",+ "deleteBody": "<strong>{name}</strong>将不再显示在你的会议中。其他能看到它的人仍会保留。",+ "couldNotDelete": "无法删除会议,请重试。",+ "pageTitle": "会议",+ "openOwnedByMe": "打开我的页面",+ "tableOfContents": "目录",+ "content": "会议内容",+ "loadingMeeting": "正在加载会议…",+ "unavailable": "会议不可用。",+ "retryMeeting": "重试加载会议",+ "meeting": "会议",+ "readOnly": "只读",+ "views": "会议视图",+ "transcript": "转写内容",+ "downloadSummary": "下载摘要",+ "meetingSummary": "会议摘要",+ "summaryDocument": "会议摘要文档",+ "summaryPending": "摘要还在生成中,转写内容已经可以查看。",+ "fileUnavailable": "文件不可用。",+ "downloadFailed": "下载失败。",+ "downloadFile": "下载 {filename}",+ "downloadRecording": "下载录音",+ "downloadTranscript": "下载转写内容",+ "loadingRecording": "正在加载录音…",+ "loadingTranscript": "正在加载转写内容…",+ "previewUnavailable": "无法预览。请下载录音后打开。",+ "previewUnavailableListen": "无法预览 · 请下载后收听",+ "overview": "会议概览",+ "topics": "议题",+ "keywords": "关键词",+ "outcomeDecision": "决定",+ "outcomeCompleted": "已完成",+ "outcomeAction": "行动项",+ "recording": "会议录音",+ "playRecording": "播放录音",+ "pauseRecording": "暂停录音",+ "cannotPlay": "此浏览器无法播放,请下载后收听。",+ "seekRecording": "调整播放进度",+ "playbackPosition": "{current} / {total}"}}