From a112b81d6e256bc587fa850cfaf4e4834d9037fc Mon Sep 17 00:00:00 2001 From: iamdoubz <> Date: Sun, 12 Jul 2026 11:12:01 -0500 Subject: [PATCH] feat(i18n): convert TranscriptNotes chrome to t() (Batch C) --- src/lib/views/TranscriptNotes.svelte | 145 +++++++++++++++------------ 1 file changed, 81 insertions(+), 64 deletions(-) diff --git a/src/lib/views/TranscriptNotes.svelte b/src/lib/views/TranscriptNotes.svelte index 402bc46..13348f9 100644 --- a/src/lib/views/TranscriptNotes.svelte +++ b/src/lib/views/TranscriptNotes.svelte @@ -7,6 +7,7 @@ import { settings } from "../stores/settings.svelte"; import { player } from "../stores/player.svelte"; import { api, type SpeakerInfo } from "../api"; + import { t } from "../i18n/index.svelte"; import { renderMarkdown } from "../markdown"; import { save, open } from "@tauri-apps/plugin-dialog"; import { layout, clamp } from "../stores/layout.svelte"; @@ -51,7 +52,7 @@ // just the raw ISO code — falls back to the code itself if it's not in // the (curated) catalog, and to "auto-detecting…" before any is known. function languageLabel(code: string | null): string { - if (!code) return "auto-detecting…"; + if (!code) return t("transcript.lang_auto"); return settings.languages.find((l) => l.code === code)?.label ?? code; } @@ -162,7 +163,7 @@ if (!m) return; const path = await save({ defaultPath: `${m.title}.md`, - filters: [{ name: "Markdown", extensions: ["md"] }], + filters: [{ name: t("transcript.filter_md"), extensions: ["md"] }], }); if (path) await api.exportMeeting(m.id, path, "md"); } @@ -179,7 +180,7 @@ if (!m) return; const path = await save({ defaultPath: `${m.title}.pdf`, - filters: [{ name: "PDF", extensions: ["pdf"] }], + filters: [{ name: t("transcript.filter_pdf"), extensions: ["pdf"] }], }); if (path) await api.exportMeeting(m.id, path, "pdf"); } @@ -189,7 +190,7 @@ if (!m) return; const path = await save({ defaultPath: `${m.title}.docx`, - filters: [{ name: "Word document", extensions: ["docx"] }], + filters: [{ name: t("transcript.filter_docx"), extensions: ["docx"] }], }); if (path) await api.exportMeeting(m.id, path, "docx"); } @@ -202,7 +203,7 @@ if (!m) return; const path = await save({ defaultPath: `${m.title}.md`, - filters: [{ name: "Obsidian note", extensions: ["md"] }], + filters: [{ name: t("transcript.filter_obsidian"), extensions: ["md"] }], }); if (path) await api.exportMeeting(m.id, path, "obsidian"); } @@ -259,7 +260,7 @@ class="meeting-title" value={m.title} onchange={onTitleChange} - aria-label="Meeting title" + aria-label={t("transcript.title_aria")} />
No transcript for this meeting.
+{t("transcript.empty")}
{:else} {#each m.segments as s (s.id)}Transcript will appear here as you record.
+{t("transcript.will_appear")}
{:else}