Skip to content

Speakr is a personal, self-hosted web application designed for transcribing audio recordings

Python

Localize prompt variables, append/replace mode, customize-summary modal, ASR editor save UX, and prompt-preview legend across all six languages

Murtaza Nasir165933ed0ab2
diff --git a/static/locales/de.json b/static/locales/de.json
index 55735482..7aaa0666 100644
--- a/static/locales/de.json
+++ b/static/locales/de.json
@@ -772,7 +772,9 @@
"summaryPromptPlaceholder": "Standard-Zusammenfassungsprompt eingeben...",
"title": "Titel",
"transcriptionLanguage": "Transcription Language",
- "yourFullName": "Ihr vollständiger Name"
+ "yourFullName": "Ihr vollständiger Name",
+ "transcriptionModel": "Transkriptionsmodell",
+ "useResolvedDefault": "(Tag-/Ordner-/globalen Standard verwenden)"
},
"groups": {
"addMembers": "Mitglieder hinzufügen...",
@@ -1509,5 +1511,40 @@
},
"uploadProgress": {
"title": "Upload-Fortschritt"
+ },
+ "promptVariables": {
+ "title": "Prompt-Variablen",
+ "infoTooltip": "Über Prompt-Variablen",
+ "hintUpload": "Das ausgewählte Tag oder der Ordner verwendet Platzhalter im Prompt. Fülle sie aus und sie werden in den Zusammenfassungs-Prompt für diese Aufnahme eingesetzt. Leere Werte werden zu einer leeren Zeichenkette. Bis zu 8.000 Zeichen pro Wert, 32.000 insgesamt.",
+ "hintReprocess": "Diese Werte werden in die Platzhalter im aufgelösten Prompt eingesetzt. Änderungen werden in der Aufnahme gespeichert. Leere Werte werden zu einer leeren Zeichenkette. Bis zu 8.000 Zeichen pro Wert, 32.000 insgesamt.",
+ "placeholderPrefix": "Eingeben"
+ },
+ "summaryMode": {
+ "applyMode": "Anwendungsmodus",
+ "append": "Anhängen",
+ "appendHelp": "Standard-Prompt verwenden und dies als zusätzlichen Kontext hinzufügen.",
+ "replace": "Ersetzen",
+ "replaceHelp": "Nur diesen Text als Zusammenfassungsanweisungen verwenden."
+ },
+ "customizeSummary": {
+ "title": "Zusammenfassungs-Prompt anpassen",
+ "body": "Einmaligen Kontext für diese Zusammenfassung hinzufügen oder den aufgelösten Prompt vollständig ersetzen.",
+ "additionalContext": "Zusätzlicher Kontext",
+ "customPrompt": "Benutzerdefinierter Prompt",
+ "appendPlaceholder": "z. B. Die heutige Tagesordnung ist: ...",
+ "replacePlaceholder": "Vollständigen Zusammenfassungs-Prompt eingeben...",
+ "generateSummary": "Zusammenfassung generieren"
+ },
+ "asrEditor": {
+ "saved": "Gespeichert",
+ "ctrlSHint": "Strg+S zum Speichern",
+ "saveWithoutClosing": "Speichern ohne Schließen (Strg+S)"
+ },
+ "preview": {
+ "placeholderLegend": "Platzhalter-Legende:",
+ "systemReplaced": "vom System ersetzt (aktuelles Datum, Transkript, Tag-Namen usw.)",
+ "userSupplied": "vom Benutzer beim Hochladen oder erneuten Verarbeiten angegeben",
+ "userMessageHeading": "Benutzernachricht:",
+ "liveUpdateNote": "Der Bereich Zusammenfassungsanweisungen aktualisiert sich, während du deinen Prompt oben bearbeitest. Platzhalter werden bei der Verarbeitung einer Aufnahme durch echte Werte ersetzt."
}
-}
\ No newline at end of file
+}
diff --git a/static/locales/en.json b/static/locales/en.json
index 1b815095..fe30701c 100644
--- a/static/locales/en.json
+++ b/static/locales/en.json
@@ -775,7 +775,9 @@
"summaryPromptPlaceholder": "Enter the default summarization prompt...",
"title": "Title",
"transcriptionLanguage": "Transcription Language",
- "yourFullName": "Your full name"
+ "yourFullName": "Your full name",
+ "transcriptionModel": "Transcription model",
+ "useResolvedDefault": "(use tag/folder/global default)"
},
"groups": {
"addMembers": "Add members...",
@@ -1521,5 +1523,40 @@
},
"uploadProgress": {
"title": "Upload Progress"
+ },
+ "promptVariables": {
+ "title": "Prompt variables",
+ "infoTooltip": "About prompt variables",
+ "hintUpload": "The selected tag or folder uses prompt placeholders. Fill these in and they'll be substituted into the summarisation prompt for this recording. Empty values substitute to an empty string. Up to 8,000 characters per value, 32,000 across all variables.",
+ "hintReprocess": "These values are substituted into placeholders in the resolved prompt. Edits here are saved on the recording. Empty values substitute to an empty string. Up to 8,000 characters per value, 32,000 across all variables.",
+ "placeholderPrefix": "Enter"
+ },
+ "summaryMode": {
+ "applyMode": "Apply mode",
+ "append": "Append",
+ "appendHelp": "Use the default prompt and add this as extra context.",
+ "replace": "Replace",
+ "replaceHelp": "Use only this text as the summarisation instructions."
+ },
+ "customizeSummary": {
+ "title": "Customise summary prompt",
+ "body": "Add one-off context for this summary, or replace the resolved prompt entirely.",
+ "additionalContext": "Additional context",
+ "customPrompt": "Custom prompt",
+ "appendPlaceholder": "e.g. Today's agenda is: ...",
+ "replacePlaceholder": "Enter a complete summarisation prompt...",
+ "generateSummary": "Generate Summary"
+ },
+ "asrEditor": {
+ "saved": "Saved",
+ "ctrlSHint": "Ctrl+S to save",
+ "saveWithoutClosing": "Save without closing (Ctrl+S)"
+ },
+ "preview": {
+ "placeholderLegend": "Placeholder legend:",
+ "systemReplaced": "system-replaced (current date, transcript, tag names, etc.)",
+ "userSupplied": "user-supplied at upload or reprocess",
+ "userMessageHeading": "User Message:",
+ "liveUpdateNote": "The Summarization Instructions slot updates as you edit your custom prompt above. Placeholders are replaced with real values when a recording is processed."
}
-}
\ No newline at end of file
+}
diff --git a/static/locales/es.json b/static/locales/es.json
index fc207db0..55cc0d6d 100644
--- a/static/locales/es.json
+++ b/static/locales/es.json
@@ -772,7 +772,9 @@
"summaryPromptPlaceholder": "Ingrese el prompt predeterminado de resumen...",
"title": "Título",
"transcriptionLanguage": "Transcription Language",
- "yourFullName": "Su nombre completo"
+ "yourFullName": "Su nombre completo",
+ "transcriptionModel": "Modelo de transcripción",
+ "useResolvedDefault": "(usar valor por defecto de etiqueta/carpeta/global)"
},
"groups": {
"addMembers": "Añadir miembros...",
@@ -1509,5 +1511,40 @@
},
"uploadProgress": {
"title": "Progreso de Carga"
+ },
+ "promptVariables": {
+ "title": "Variables del prompt",
+ "infoTooltip": "Acerca de las variables del prompt",
+ "hintUpload": "La etiqueta o carpeta seleccionada usa marcadores de posición. Complétalos y se sustituirán en el prompt de resumen para esta grabación. Los valores vacíos se sustituyen por una cadena vacía. Hasta 8.000 caracteres por valor, 32.000 en total.",
+ "hintReprocess": "Estos valores se sustituyen en los marcadores de posición del prompt resuelto. Los cambios se guardan en la grabación. Los valores vacíos se sustituyen por una cadena vacía. Hasta 8.000 caracteres por valor, 32.000 en total.",
+ "placeholderPrefix": "Introducir"
+ },
+ "summaryMode": {
+ "applyMode": "Modo de aplicación",
+ "append": "Añadir",
+ "appendHelp": "Usar el prompt por defecto y añadir esto como contexto adicional.",
+ "replace": "Reemplazar",
+ "replaceHelp": "Usar únicamente este texto como instrucciones de resumen."
+ },
+ "customizeSummary": {
+ "title": "Personalizar prompt de resumen",
+ "body": "Añade contexto puntual para este resumen o reemplaza por completo el prompt resuelto.",
+ "additionalContext": "Contexto adicional",
+ "customPrompt": "Prompt personalizado",
+ "appendPlaceholder": "p. ej. El orden del día es: ...",
+ "replacePlaceholder": "Introduce un prompt de resumen completo...",
+ "generateSummary": "Generar resumen"
+ },
+ "asrEditor": {
+ "saved": "Guardado",
+ "ctrlSHint": "Ctrl+S para guardar",
+ "saveWithoutClosing": "Guardar sin cerrar (Ctrl+S)"
+ },
+ "preview": {
+ "placeholderLegend": "Leyenda de marcadores:",
+ "systemReplaced": "reemplazado por el sistema (fecha actual, transcripción, nombres de etiquetas, etc.)",
+ "userSupplied": "proporcionado por el usuario al subir o reprocesar",
+ "userMessageHeading": "Mensaje del usuario:",
+ "liveUpdateNote": "La sección de instrucciones de resumen se actualiza mientras editas tu prompt personalizado arriba. Los marcadores se sustituyen por valores reales al procesar una grabación."
}
-}
\ No newline at end of file
+}
diff --git a/static/locales/fr.json b/static/locales/fr.json
index 48528d60..03a04159 100644
--- a/static/locales/fr.json
+++ b/static/locales/fr.json
@@ -772,7 +772,9 @@
"summaryPromptPlaceholder": "Entrez l'invite de résumé par défaut...",
"title": "Titre",
"transcriptionLanguage": "Transcription Language",
- "yourFullName": "Votre nom complet"
+ "yourFullName": "Votre nom complet",
+ "transcriptionModel": "Modèle de transcription",
+ "useResolvedDefault": "(utiliser la valeur par défaut tag/dossier/global)"
},
"groups": {
"addMembers": "Ajouter des membres...",
@@ -1509,5 +1511,40 @@
},
"uploadProgress": {
"title": "Progression du Téléchargement"
+ },
+ "promptVariables": {
+ "title": "Variables de l'invite",
+ "infoTooltip": "À propos des variables de l'invite",
+ "hintUpload": "Le tag ou le dossier sélectionné utilise des espaces réservés. Renseignez-les et ils seront substitués dans l'invite de résumé pour cet enregistrement. Les valeurs vides sont remplacées par une chaîne vide. Jusqu'à 8 000 caractères par valeur, 32 000 au total.",
+ "hintReprocess": "Ces valeurs sont substituées aux espaces réservés dans l'invite résolue. Les modifications sont enregistrées sur l'enregistrement. Les valeurs vides sont remplacées par une chaîne vide. Jusqu'à 8 000 caractères par valeur, 32 000 au total.",
+ "placeholderPrefix": "Entrer"
+ },
+ "summaryMode": {
+ "applyMode": "Mode d'application",
+ "append": "Ajouter",
+ "appendHelp": "Utiliser l'invite par défaut et ajouter ceci comme contexte supplémentaire.",
+ "replace": "Remplacer",
+ "replaceHelp": "Utiliser uniquement ce texte comme instructions de résumé."
+ },
+ "customizeSummary": {
+ "title": "Personnaliser l'invite de résumé",
+ "body": "Ajoutez un contexte ponctuel pour ce résumé ou remplacez entièrement l'invite résolue.",
+ "additionalContext": "Contexte supplémentaire",
+ "customPrompt": "Invite personnalisée",
+ "appendPlaceholder": "ex. L'ordre du jour est : ...",
+ "replacePlaceholder": "Saisissez une invite de résumé complète...",
+ "generateSummary": "Générer le résumé"
+ },
+ "asrEditor": {
+ "saved": "Enregistré",
+ "ctrlSHint": "Ctrl+S pour enregistrer",
+ "saveWithoutClosing": "Enregistrer sans fermer (Ctrl+S)"
+ },
+ "preview": {
+ "placeholderLegend": "Légende des espaces réservés :",
+ "systemReplaced": "remplacé par le système (date du jour, transcription, noms des tags, etc.)",
+ "userSupplied": "fourni par l'utilisateur lors du téléversement ou du retraitement",
+ "userMessageHeading": "Message utilisateur :",
+ "liveUpdateNote": "L'emplacement des instructions de résumé se met à jour pendant que vous modifiez votre invite personnalisée ci-dessus. Les espaces réservés sont remplacés par les valeurs réelles lors du traitement d'un enregistrement."
}
-}
\ No newline at end of file
+}
diff --git a/static/locales/ru.json b/static/locales/ru.json
index 3e7050a4..f17f39e6 100644
--- a/static/locales/ru.json
+++ b/static/locales/ru.json
@@ -772,7 +772,9 @@
"summaryPromptPlaceholder": "Введите запрос резюмирования по умолчанию...",
"title": "Заголовок",
"transcriptionLanguage": "Transcription Language",
- "yourFullName": "Ваше полное имя"
+ "yourFullName": "Ваше полное имя",
+ "transcriptionModel": "Модель транскрипции",
+ "useResolvedDefault": "(использовать стандарт тега/папки/глобальный)"
},
"groups": {
"addMembers": "Добавить участников...",
@@ -1509,5 +1511,40 @@
},
"uploadProgress": {
"title": "Прогресс загрузки"
+ },
+ "promptVariables": {
+ "title": "Переменные подсказки",
+ "infoTooltip": "О переменных подсказки",
+ "hintUpload": "Выбранный тег или папка использует подстановочные знаки. Заполните их, и они будут подставлены в подсказку для резюме этой записи. Пустые значения заменяются пустой строкой. До 8 000 символов на значение, 32 000 всего.",
+ "hintReprocess": "Эти значения подставляются в подстановочные знаки разрешённой подсказки. Правки сохраняются в записи. Пустые значения заменяются пустой строкой. До 8 000 символов на значение, 32 000 всего.",
+ "placeholderPrefix": "Введите"
+ },
+ "summaryMode": {
+ "applyMode": "Режим применения",
+ "append": "Добавить",
+ "appendHelp": "Использовать стандартную подсказку и добавить это в качестве дополнительного контекста.",
+ "replace": "Заменить",
+ "replaceHelp": "Использовать только этот текст в качестве инструкций для резюме."
+ },
+ "customizeSummary": {
+ "title": "Настроить подсказку резюме",
+ "body": "Добавьте разовый контекст для этого резюме или полностью замените разрешённую подсказку.",
+ "additionalContext": "Дополнительный контекст",
+ "customPrompt": "Своя подсказка",
+ "appendPlaceholder": "например, Сегодняшняя повестка: ...",
+ "replacePlaceholder": "Введите полную подсказку для резюме...",
+ "generateSummary": "Создать резюме"
+ },
+ "asrEditor": {
+ "saved": "Сохранено",
+ "ctrlSHint": "Ctrl+S для сохранения",
+ "saveWithoutClosing": "Сохранить без закрытия (Ctrl+S)"
+ },
+ "preview": {
+ "placeholderLegend": "Обозначения подстановок:",
+ "systemReplaced": "заменяется системой (текущая дата, транскрипция, имена тегов и т. д.)",
+ "userSupplied": "предоставляется пользователем при загрузке или повторной обработке",
+ "userMessageHeading": "Сообщение пользователя:",
+ "liveUpdateNote": "Раздел инструкций для резюме обновляется по мере редактирования вашей подсказки выше. Подстановочные знаки заменяются реальными значениями при обработке записи."
}
-}
\ No newline at end of file
+}
diff --git a/static/locales/zh.json b/static/locales/zh.json
index 2ff3c937..b0ae33cb 100644
--- a/static/locales/zh.json
+++ b/static/locales/zh.json
@@ -849,7 +849,9 @@
"summaryPromptPlaceholder": "输入默认摘要提示...",
"title": "标题",
"transcriptionLanguage": "Transcription Language",
- "yourFullName": "您的全名"
+ "yourFullName": "您的全名",
+ "transcriptionModel": "转录模型",
+ "useResolvedDefault": "(使用标签/文件夹/全局默认)"
},
"groups": {
"addMembers": "添加成员...",
@@ -1660,5 +1662,40 @@
},
"uploadProgress": {
"title": "上传进度"
+ },
+ "promptVariables": {
+ "title": "提示变量",
+ "infoTooltip": "关于提示变量",
+ "hintUpload": "所选标签或文件夹使用提示占位符。填写后将替换到此录音的摘要提示中。空值替换为空字符串。每个值最多 8,000 字符,全部变量合计最多 32,000 字符。",
+ "hintReprocess": "这些值会替换已解析提示中的占位符。此处的修改会保存到录音中。空值替换为空字符串。每个值最多 8,000 字符,全部变量合计最多 32,000 字符。",
+ "placeholderPrefix": "输入"
+ },
+ "summaryMode": {
+ "applyMode": "应用模式",
+ "append": "追加",
+ "appendHelp": "使用默认提示,并将此内容作为额外上下文。",
+ "replace": "替换",
+ "replaceHelp": "仅使用此文本作为摘要指令。"
+ },
+ "customizeSummary": {
+ "title": "自定义摘要提示",
+ "body": "为此摘要添加一次性上下文,或完全替换已解析的提示。",
+ "additionalContext": "附加上下文",
+ "customPrompt": "自定义提示",
+ "appendPlaceholder": "例如:今天的议程是:…",
+ "replacePlaceholder": "输入完整的摘要提示…",
+ "generateSummary": "生成摘要"
+ },
+ "asrEditor": {
+ "saved": "已保存",
+ "ctrlSHint": "Ctrl+S 保存",
+ "saveWithoutClosing": "保存但不关闭 (Ctrl+S)"
+ },
+ "preview": {
+ "placeholderLegend": "占位符图例:",
+ "systemReplaced": "由系统替换(当前日期、转录、标签名称等)",
+ "userSupplied": "上传或重新处理时由用户提供",
+ "userMessageHeading": "用户消息:",
+ "liveUpdateNote": "上方编辑自定义提示时,摘要指令区会实时更新。处理录音时,占位符将被替换为真实值。"
}
-}
\ No newline at end of file
+}
diff --git a/templates/account.html b/templates/account.html
index dba8583d..5fd5093a 100644
--- a/templates/account.html
+++ b/templates/account.html
@@ -723,37 +723,37 @@
<div class="mt-4 bg-[var(--bg-secondary)] rounded-lg border border-[var(--border-secondary)]">
<button type="button" id="toggleFullPromptStructure"
class="w-full px-4 py-3 flex justify-between items-center text-sm text-[var(--text-secondary)] hover:bg-[var(--bg-tertiary)] transition-colors duration-200 rounded-lg">
- <span><i class="fas fa-code mr-2"></i>View Full LLM Prompt Structure</span>
+ <span><i class="fas fa-code mr-2"></i><span data-i18n="adminDashboard.viewFullPromptStructure">View Full LLM Prompt Structure</span></span>
<i id="fullPromptChevron" class="fas fa-chevron-down text-[var(--text-muted)]"></i>
</button>
<div id="fullPromptStructureBody" class="hidden border-t border-[var(--border-secondary)] p-4 space-y-4">
<div class="flex flex-wrap items-center gap-3 text-xs text-[var(--text-secondary)]">
- <span class="font-medium">Placeholder legend:</span>
+ <span class="font-medium" data-i18n="preview.placeholderLegend">Placeholder legend:</span>
<span class="inline-flex items-center gap-1.5">
<span class="px-1.5 py-0.5 rounded text-[11px] font-semibold bg-blue-500/15 text-blue-300 border border-blue-500/30 font-mono">{example}</span>
- <span>system-replaced (current date, transcript, tag names, etc.)</span>
+ <span data-i18n="preview.systemReplaced">system-replaced (current date, transcript, tag names, etc.)</span>
</span>
<span class="inline-flex items-center gap-1.5">
<span class="px-1.5 py-0.5 rounded text-[11px] font-semibold bg-amber-500/15 text-amber-300 border border-amber-500/30 font-mono">{% raw %}{{example}}{% endraw %}</span>
- <span>user-supplied at upload or reprocess</span>
+ <span data-i18n="preview.userSupplied">user-supplied at upload or reprocess</span>
</span>
</div>
<div>
- <h5 class="text-xs font-semibold text-[var(--text-accent)] mb-1">System Prompt:</h5>
+ <h5 class="text-xs font-semibold text-[var(--text-accent)] mb-1" data-i18n="adminDashboard.systemPrompt">System Prompt:</h5>
<div class="bg-[var(--bg-primary)] p-3 rounded border border-[var(--border-primary)]">
<pre id="previewSystemPrompt" class="text-xs text-[var(--text-secondary)] whitespace-pre-wrap font-mono"></pre>
</div>
</div>
<div>
- <h5 class="text-xs font-semibold text-[var(--text-accent)] mb-1">User Message:</h5>
+ <h5 class="text-xs font-semibold text-[var(--text-accent)] mb-1" data-i18n="preview.userMessageHeading">User Message:</h5>
<div class="bg-[var(--bg-primary)] p-3 rounded border border-[var(--border-primary)]">
<pre id="previewUserMessage" class="text-xs text-[var(--text-secondary)] whitespace-pre-wrap font-mono"></pre>
</div>
<p class="text-xs text-[var(--text-muted)] mt-2">
<i class="fas fa-info-circle mr-1"></i>
- The Summarization Instructions slot updates as you edit your custom prompt above. Placeholders are replaced with real values when a recording is processed.
+ <span data-i18n="preview.liveUpdateNote">The Summarization Instructions slot updates as you edit your custom prompt above. Placeholders are replaced with real values when a recording is processed.</span>
</p>
</div>
</div>
diff --git a/templates/admin.html b/templates/admin.html
index f1b05d4e..292b0b12 100644
--- a/templates/admin.html
+++ b/templates/admin.html
@@ -864,14 +864,14 @@
<div class="p-6 space-y-6">
<!-- Placeholder legend so the two distinct syntaxes in the previews below are unambiguous. -->
<div class="flex flex-wrap items-center gap-3 text-xs text-[var(--text-secondary)] -mt-2">
- <span class="font-medium">Placeholder legend:</span>
+ <span class="font-medium">${ t('preview.placeholderLegend') }</span>
<span class="inline-flex items-center gap-1.5">
<span class="px-1.5 py-0.5 rounded text-[11px] font-semibold bg-blue-500/15 text-blue-300 border border-blue-500/30 font-mono">{example}</span>
- <span>system-replaced (current date, transcript, tag names, etc.)</span>
+ <span>${ t('preview.systemReplaced') }</span>
</span>
<span class="inline-flex items-center gap-1.5">
<span class="px-1.5 py-0.5 rounded text-[11px] font-semibold bg-amber-500/15 text-amber-300 border border-amber-500/30 font-mono">{{example}}</span>
- <span>user-supplied at upload or reprocess</span>
+ <span>${ t('preview.userSupplied') }</span>
</span>
</div>
diff --git a/templates/components/upload-view.html b/templates/components/upload-view.html
index 7811abca..134d29b2 100644
--- a/templates/components/upload-view.html
+++ b/templates/components/upload-view.html
@@ -331,19 +331,19 @@
class="flex-1 flex items-center justify-between px-3 py-2 bg-[var(--bg-tertiary)] rounded-md hover:bg-[var(--bg-accent)] transition-colors text-xs font-medium">
<span class="flex items-center gap-2 text-[var(--text-secondary)]">
<i class="fas fa-keyboard text-[var(--text-muted)]"></i>
- <span>Prompt variables</span>
+ <span>${ t('promptVariables.title') }</span>
<span class="text-[10px] text-[var(--text-muted)]">(${ selectedPromptVariables.length })</span>
</span>
<i :class="['fas text-[var(--text-muted)]', showPromptVariablesPanel ? 'fa-chevron-up' : 'fa-chevron-down']"></i>
</button>
<details class="relative">
<summary
- title="About prompt variables"
+ :title="t('promptVariables.infoTooltip')"
class="list-none cursor-pointer flex items-center justify-center px-3 h-full bg-[var(--bg-tertiary)] rounded-md hover:bg-[var(--bg-accent)] text-[var(--text-muted)] hover:text-[var(--text-accent)] transition-colors">
<i class="fas fa-info-circle text-xs"></i>
</summary>
<div class="absolute right-0 top-full mt-1 z-20 w-64 p-3 text-[11px] text-[var(--text-secondary)] leading-snug bg-[var(--bg-secondary)] border border-[var(--border-primary)] rounded-md shadow-lg">
- The selected tag or folder uses prompt placeholders. Fill these in and they'll be substituted into the summarisation prompt for this recording. Empty values substitute to an empty string. Up to 8,000 characters per value, 32,000 across all variables.
+ ${ t('promptVariables.hintUpload') }
</div>
</details>
</div>
@@ -369,7 +369,7 @@
@input="uploadPromptVariables[variable.name] = $event.target.value"
rows="2"
maxlength="8000"
- :placeholder="'Enter ' + variable.label.toLowerCase() + '...'"
+ :placeholder="t('promptVariables.placeholderPrefix') + ' ' + variable.label.toLowerCase() + '...'"
class="w-full px-2 py-1 text-sm bg-[var(--bg-primary)] text-[var(--text-primary)] border border-[var(--border-primary)] rounded focus:outline-none focus:ring-1 focus:ring-[var(--ring-focus)] resize-y font-mono"></textarea>
<div class="flex justify-end text-[10px] text-[var(--text-muted)] font-mono">
${ (uploadPromptVariables[variable.name] || '').length } / 8000
@@ -452,11 +452,11 @@
a single visible model means there is no real choice to offer. -->
<div v-if="transcriptionModelOptions && transcriptionModelOptions.length > 1">
<label class="block text-xs font-medium text-[var(--text-secondary)] mb-1">
- Transcription model
+ ${ t('form.transcriptionModel') }
</label>
<select v-model="uploadTranscriptionModel"
class="w-full px-2 py-1 text-sm bg-[var(--bg-primary)] text-[var(--text-primary)] border border-[var(--border-primary)] rounded focus:outline-none focus:ring-1 focus:ring-[var(--ring-focus)]">
- <option value="">(use tag/folder/global default)</option>
+ <option value="">${ t('form.useResolvedDefault') }</option>
<option v-for="opt in transcriptionModelOptions" :key="opt.value" :value="opt.value" v-text="opt.label || opt.value"></option>
</select>
</div>
diff --git a/templates/modals/asr-editor-modal.html b/templates/modals/asr-editor-modal.html
index 0c7ebcd2..8c0bf964 100644
--- a/templates/modals/asr-editor-modal.html
+++ b/templates/modals/asr-editor-modal.html
@@ -7,7 +7,7 @@
<span v-if="asrEditorSaveFlash"
class="inline-flex items-center gap-1.5 text-xs font-medium text-[var(--text-success-strong)] bg-[var(--bg-success-light)] px-2 py-1 rounded-md transition-opacity">
<i class="fas fa-check-circle"></i>
- <span>Saved</span>
+ <span v-text="t('asrEditor.saved')"></span>
</span>
</div>
<button @click="closeAsrEditorModal" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors">
@@ -156,13 +156,13 @@
<div class="bg-[var(--bg-tertiary)] px-6 py-4 flex justify-between items-center border-t border-[var(--border-primary)] flex-shrink-0 rounded-b-xl">
<span class="text-xs text-[var(--text-muted)] hidden sm:inline-flex items-center gap-1.5">
<i class="fas fa-keyboard text-[10px]"></i>
- <span>Ctrl+S to save</span>
+ <span v-text="t('asrEditor.ctrlSHint')"></span>
</span>
<div class="flex justify-end space-x-3 ml-auto">
<button @click="closeAsrEditorModal" class="px-4 py-2 bg-[var(--bg-secondary)] text-[var(--text-secondary)] rounded-lg border border-[var(--border-secondary)] hover:bg-[var(--bg-tertiary)]" v-text="t('common.cancel')"></button>
- <button @click="saveAsrTranscription(true)" class="px-4 py-2 bg-[var(--bg-secondary)] text-[var(--text-secondary)] rounded-lg border border-[var(--border-secondary)] hover:bg-[var(--bg-tertiary)] flex items-center gap-2" :title="'Save without closing (Ctrl+S)'">
+ <button @click="saveAsrTranscription(true)" class="px-4 py-2 bg-[var(--bg-secondary)] text-[var(--text-secondary)] rounded-lg border border-[var(--border-secondary)] hover:bg-[var(--bg-tertiary)] flex items-center gap-2" :title="t('asrEditor.saveWithoutClosing')">
<i class="fas fa-save text-xs"></i>
- <span>Save</span>
+ <span v-text="t('common.save')"></span>
</button>
<button @click="saveAsrTranscription(false)" class="px-4 py-2 bg-[var(--bg-accent)] text-[var(--text-accent)] rounded-lg hover:bg-[var(--bg-accent-hover)]" v-text="t('buttons.saveChanges')"></button>
</div>
diff --git a/templates/modals/customize-summary-prompt-modal.html b/templates/modals/customize-summary-prompt-modal.html
index 1fda3a41..fd1f1e91 100644
--- a/templates/modals/customize-summary-prompt-modal.html
+++ b/templates/modals/customize-summary-prompt-modal.html
@@ -4,7 +4,7 @@
<div class="p-5 border-b border-[var(--border-primary)] flex-shrink-0 flex justify-between items-center">
<div class="flex items-center gap-2">
<i class="fas fa-magic text-[var(--text-accent)]"></i>
- <h3 class="text-lg font-semibold text-[var(--text-primary)]">Customise summary prompt</h3>
+ <h3 class="text-lg font-semibold text-[var(--text-primary)]">${ t('customizeSummary.title') }</h3>
</div>
<button @click="closeCustomizeSummaryModal" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors">
<i class="fas fa-times"></i>
@@ -13,7 +13,7 @@
<div class="px-6 py-5 overflow-y-auto flex-1 space-y-4">
<p class="text-sm text-[var(--text-muted)]">
- Add an agenda, list of attendees, or any other context you want the model to consider when summarising this recording. The text below is combined with the saved summary prompt unless you switch the mode.
+ ${ t('customizeSummary.body') }
</p>
<div class="grid grid-cols-2 gap-2 p-1 bg-[var(--bg-tertiary)] border border-[var(--border-secondary)] rounded-lg">
@@ -21,29 +21,29 @@
:class="['flex items-start gap-2 p-3 rounded-md cursor-pointer transition-colors', customizeSummaryMode === 'append' ? 'bg-[var(--bg-secondary)] border border-[var(--border-accent)] shadow-sm' : 'border border-transparent hover:bg-[var(--bg-secondary)]']">
<input type="radio" value="append" v-model="customizeSummaryMode" class="mt-1 h-4 w-4 text-[var(--text-accent)] border-[var(--border-secondary)] focus:ring-[var(--border-focus)]">
<span class="flex-1">
- <span class="block text-sm font-medium text-[var(--text-primary)]">Append</span>
- <span class="block text-xs text-[var(--text-muted)] mt-0.5">Use my saved prompt and add this as extra context.</span>
+ <span class="block text-sm font-medium text-[var(--text-primary)]">${ t('summaryMode.append') }</span>
+ <span class="block text-xs text-[var(--text-muted)] mt-0.5">${ t('summaryMode.appendHelp') }</span>
</span>
</label>
<label
:class="['flex items-start gap-2 p-3 rounded-md cursor-pointer transition-colors', customizeSummaryMode === 'replace' ? 'bg-[var(--bg-secondary)] border border-[var(--border-accent)] shadow-sm' : 'border border-transparent hover:bg-[var(--bg-secondary)]']">
<input type="radio" value="replace" v-model="customizeSummaryMode" class="mt-1 h-4 w-4 text-[var(--text-accent)] border-[var(--border-secondary)] focus:ring-[var(--border-focus)]">
<span class="flex-1">
- <span class="block text-sm font-medium text-[var(--text-primary)]">Replace</span>
- <span class="block text-xs text-[var(--text-muted)] mt-0.5">Use only this text as the summarisation instructions.</span>
+ <span class="block text-sm font-medium text-[var(--text-primary)]">${ t('summaryMode.replace') }</span>
+ <span class="block text-xs text-[var(--text-muted)] mt-0.5">${ t('summaryMode.replaceHelp') }</span>
</span>
</label>
</div>
<div>
<label class="block text-xs font-medium text-[var(--text-secondary)] mb-1.5 uppercase tracking-wide">
- <span v-if="customizeSummaryMode === 'append'">Additional context</span>
- <span v-else>Custom prompt</span>
+ <span v-if="customizeSummaryMode === 'append'">${ t('customizeSummary.additionalContext') }</span>
+ <span v-else>${ t('customizeSummary.customPrompt') }</span>
</label>
<textarea
v-model="customizeSummaryPrompt"
rows="10"
- :placeholder="customizeSummaryMode === 'append' ? 'e.g.\nAgenda:\n1. Budget review\n2. Q3 hiring plan\n3. New product launch' : 'Write the full summarisation instructions you want the model to follow...'"
+ :placeholder="customizeSummaryMode === 'append' ? t('customizeSummary.appendPlaceholder') : t('customizeSummary.replacePlaceholder')"
class="w-full px-3 py-2 text-sm bg-[var(--bg-input)] text-[var(--text-primary)] border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] focus:border-[var(--border-focus)] resize-y font-mono"></textarea>
</div>
</div>
@@ -51,13 +51,13 @@
<div class="bg-[var(--bg-tertiary)] px-6 py-4 flex justify-end gap-3 border-t border-[var(--border-primary)] flex-shrink-0 rounded-b-xl">
<button @click="closeCustomizeSummaryModal"
class="px-4 py-2 bg-[var(--bg-secondary)] text-[var(--text-secondary)] rounded-lg border border-[var(--border-secondary)] hover:bg-[var(--bg-tertiary)] transition-colors">
- Cancel
+ ${ t('buttons.cancel') }
</button>
<button @click="submitCustomizeSummaryModal"
:disabled="!customizeSummaryPrompt.trim()"
:class="['px-4 py-2 rounded-lg flex items-center gap-2 transition-all', customizeSummaryPrompt.trim() ? 'bg-gradient-to-r from-blue-600 to-purple-600 text-white hover:shadow-md hover:from-blue-700 hover:to-purple-700' : 'bg-[var(--bg-secondary)] text-[var(--text-muted)] border border-[var(--border-secondary)] cursor-not-allowed']">
<i class="fas fa-magic text-xs"></i>
- <span>Generate Summary</span>
+ <span>${ t('customizeSummary.generateSummary') }</span>
</button>
</div>
</div>
diff --git a/templates/modals/reprocess-modal.html b/templates/modals/reprocess-modal.html
index f65a92f6..f0ab2919 100644
--- a/templates/modals/reprocess-modal.html
+++ b/templates/modals/reprocess-modal.html
@@ -94,9 +94,9 @@
Only show when there are at least 2 visible models; a single
visible model means there is no real choice to offer. -->
<div v-if="transcriptionModelOptions && transcriptionModelOptions.length > 1">
- <label for="asr-model-reprocess" class="block text-sm font-medium text-[var(--text-muted)]">Transcription model</label>
+ <label for="asr-model-reprocess" class="block text-sm font-medium text-[var(--text-muted)]">${ t('form.transcriptionModel') }</label>
<select id="asr-model-reprocess" v-model="asrReprocessOptions.transcription_model" class="mt-1 block w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md shadow-sm focus:outline-none focus:ring-[var(--border-focus)] focus:border-[var(--border-focus)] sm:text-sm bg-[var(--bg-input)] text-[var(--text-primary)]">
- <option value="">(use tag/folder/global default)</option>
+ <option value="">${ t('form.useResolvedDefault') }</option>
<option v-for="opt in transcriptionModelOptions" :key="opt.value" :value="opt.value" v-text="opt.label || opt.value"></option>
</select>
</div>
@@ -106,15 +106,15 @@
<div v-if="reprocessType === 'summary' && reprocessAvailableVariables.length > 0" class="space-y-3 pt-4 border-t border-[var(--border-primary)]">
<h4 class="text-md font-semibold text-[var(--text-secondary)] flex items-center gap-2">
<i class="fas fa-keyboard text-[var(--text-muted)] text-xs"></i>
- Prompt variables
+ ${ t('promptVariables.title') }
<details class="relative">
<summary
- title="About prompt variables"
+ :title="t('promptVariables.infoTooltip')"
class="list-none cursor-pointer text-[var(--text-muted)] hover:text-[var(--text-accent)] transition-colors">
<i class="fas fa-info-circle text-xs"></i>
</summary>
<div class="absolute left-0 top-full mt-1 z-20 w-64 p-3 text-[11px] font-normal text-[var(--text-secondary)] leading-snug bg-[var(--bg-secondary)] border border-[var(--border-primary)] rounded-md shadow-lg">
- These values are substituted into {{ '{{name}}' }} placeholders in the resolved prompt. Edits here are saved on the recording. Empty values substitute to an empty string. Up to 8,000 characters per value, 32,000 across all variables.
+ ${ t('promptVariables.hintReprocess') }
</div>
</details>
</h4>
@@ -139,7 +139,7 @@
@input="reprocessPromptVariables[variable.name] = $event.target.value"
rows="2"
maxlength="8000"
- :placeholder="'Enter ' + variable.label.toLowerCase() + '...'"
+ :placeholder="t('promptVariables.placeholderPrefix') + ' ' + variable.label.toLowerCase() + '...'"
class="w-full px-2 py-1 text-sm bg-[var(--bg-input)] text-[var(--text-primary)] border border-[var(--border-secondary)] rounded focus:outline-none focus:ring-1 focus:ring-[var(--border-focus)] resize-y font-mono"></textarea>
<div class="flex justify-end text-[10px] text-[var(--text-muted)] font-mono">
${ (reprocessPromptVariables[variable.name] || '').length } / 8000
@@ -190,22 +190,22 @@
<!-- Apply mode toggle for tag and custom prompt sources -->
<div v-if="summaryReprocessPromptSource === 'tag' || summaryReprocessPromptSource === 'custom'">
- <label class="block text-sm font-medium text-[var(--text-muted)] mb-2">Apply mode</label>
+ <label class="block text-sm font-medium text-[var(--text-muted)] mb-2">${ t('summaryMode.applyMode') }</label>
<div class="grid grid-cols-2 gap-2 p-1 bg-[var(--bg-tertiary)] border border-[var(--border-secondary)] rounded-md">
<label
:class="['flex items-start gap-2 p-2 rounded cursor-pointer transition-colors', summaryReprocessPromptMode === 'append' ? 'bg-[var(--bg-secondary)] border border-[var(--border-accent)] shadow-sm' : 'border border-transparent hover:bg-[var(--bg-secondary)]']">
<input type="radio" v-model="summaryReprocessPromptMode" value="append" class="mt-0.5 h-4 w-4 text-[var(--text-accent)] border-[var(--border-secondary)] focus:ring-[var(--border-focus)]">
<span class="flex-1">
- <span class="block text-sm font-medium text-[var(--text-primary)]">Append</span>
- <span class="block text-xs text-[var(--text-muted)] mt-0.5">Use the default prompt and add this as extra context.</span>
+ <span class="block text-sm font-medium text-[var(--text-primary)]">${ t('summaryMode.append') }</span>
+ <span class="block text-xs text-[var(--text-muted)] mt-0.5">${ t('summaryMode.appendHelp') }</span>
</span>
</label>
<label
:class="['flex items-start gap-2 p-2 rounded cursor-pointer transition-colors', summaryReprocessPromptMode === 'replace' ? 'bg-[var(--bg-secondary)] border border-[var(--border-accent)] shadow-sm' : 'border border-transparent hover:bg-[var(--bg-secondary)]']">
<input type="radio" v-model="summaryReprocessPromptMode" value="replace" class="mt-0.5 h-4 w-4 text-[var(--text-accent)] border-[var(--border-secondary)] focus:ring-[var(--border-focus)]">
<span class="flex-1">
- <span class="block text-sm font-medium text-[var(--text-primary)]">Replace</span>
- <span class="block text-xs text-[var(--text-muted)] mt-0.5">Use only this text as the summarisation instructions.</span>
+ <span class="block text-sm font-medium text-[var(--text-primary)]">${ t('summaryMode.replace') }</span>
+ <span class="block text-xs text-[var(--text-muted)] mt-0.5">${ t('summaryMode.replaceHelp') }</span>
</span>
</label>
</div>