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")} />
{#if !layout.transcriptCollapsed && !layout.notesCollapsed} layout.persist()} /> @@ -357,89 +362,99 @@ {:else}

-

- @@ -461,7 +476,7 @@ {:else if recording.state === "idle"} -

Transcript will appear here as you record.

+

{t("transcript.will_appear")}

{:else}