Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Tag/Folder modal Sharing empty-state + consistent height; alphabetical language dropdowns; localization sweep for Stats, Processing Queue, Reprocess modal — addresses three user-reported issues; (1) Tag/Folder edit modal Sharing tab now surfaces a role-appropriate empty state when internal sharing is on but the user has no admin groups (was just a blank tab) — site admins see a link to Admin → Groups, regular users see 'Ask your administrator to create a group and add you', applies to both tag and folder edit modals via a shared .modal-tabs-pane wrapper that also fixes the modal height jumping as the user switches between Transcription / Summary & Templates / Sharing tabs (min-height: 320px on the pane keeps the modal a stable size on desktop; min-height: 0 on mobile so it can still collapse), and the JS that toggles group selection now also toggles the new empty state for both modals; (2) language dropdowns (Interface, Transcription, Output language) are now sorted alphabetically in the current locale's collation — backward-compatible because option attributes are untouched, only display order changes; sort code uses .selected property instead of select.value setter to survive detach+re-append cleanly (a previous attempt using select.value caused the dropdown to lose its selection and show English when the actual UI locale was different); auto-detect / default-model sentinel rows pinned to top via data-sort-pin='top'; new syncUILanguageDropdownToActiveLocale() handles DB↔localStorage drift by pulling the dropdown into line with whatever locale is actually rendering, so clicking the displayed value isn't a no-op anymore; (3) localization sweep adds 60+ new keys across 7 locales (en/es/fr/de/ru/zh/pt-BR) for the summary.customizePrompt tooltip (was rendering raw key), the Stats tab headline metrics + per-speaker table headers + empty-state copy (desktop + mobile variants), the Processing Queue popup header / status verbs / Cancel / Failed / Completed / Done / empty-state + retry+delete tooltips, the Reprocess Modal subtitle / Created prefix / Custom Summarization Prompt section / radio labels / tag selector / preview / custom prompt placeholder / no-tags hint / Start Reprocessing button; Vue template fix: progressQueue.*Short keys used as two separate interpolations rather than a single t() call with an object-literal params arg, because Speakr's Vue config uses ${...} delimiters which can't see past nested {} — caught by a runtime SyntaxError after the first attempt
Murtaza Nasir29d11fe5934d
diff --git a/static/css/primitives.css b/static/css/primitives.cssindex 1c2aafc2..40a0bc80 100644--- a/static/css/primitives.css+++ b/static/css/primitives.css@@ -883,6 +883,21 @@ html.dark .modal-overlay {padding: 0;}+/* Tab-content pane inside a modal: keep the panel a stable height as the+ user switches tabs. Without this the modal "breathes" because the+ Transcription tab is tall, Summary tab is medium, and Sharing tab is+ short (especially when there are no admin groups and only an empty+ state renders). A min-height that matches the tallest realistic tab+ makes the modal feel rigid without needing JS height measurement. */+.modal-tabs-pane {+ min-height: 320px;+}+@media (max-width: 640px) {+ .modal-tabs-pane {+ min-height: 0;+ }+}+.modal-footer {display: flex;align-items: center;diff --git a/static/locales/de.json b/static/locales/de.jsonindex 179e47a8..c305447a 100644--- a/static/locales/de.json+++ b/static/locales/de.json@@ -355,7 +355,8 @@"toggleTheme": "Design umschalten","updateTag": "Tag aktualisieren","delete": "Löschen",- "save": "Speichern"+ "save": "Speichern",+ "startReprocessing": "Neuverarbeitung starten"},"changePasswordModal": {"confirmPassword": "Neues Passwort Bestätigen",@@ -1230,7 +1231,22 @@"audioReTranscribedWithAsr": "Das Audio wird mit dem ASR-Endpoint neu transkribiert. Dies umfasst Diarisierung und wird Titel und Zusammenfassung neu generieren.","manualEditsOverwritten": "Alle manuellen Bearbeitungen der Transkription, des Titels oder der Zusammenfassung werden überschrieben.","manualEditsOverwrittenSummary": "Alle manuellen Bearbeitungen der Zusammenfassung werden überschrieben.",- "newTitleAndSummary": "Eine neue Zusammenfassung wird basierend auf der vorhandenen Transkription generiert."+ "newTitleAndSummary": "Eine neue Zusammenfassung wird basierend auf der vorhandenen Transkription generiert.",+ "createdPrefix": "Erstellt:",+ "untitledRecording": "Unbenannte Aufnahme",+ "customSummaryPrompt": "Benutzerdefinierter Zusammenfassungs-Prompt",+ "promptSource": "Prompt-Quelle",+ "useDefaultPrompt": "Standard-Prompt verwenden",+ "usePromptFromTag": "Prompt aus Schlagwort verwenden",+ "enterCustomPrompt": "Eigenen Prompt eingeben",+ "selectTag": "Schlagwort wählen",+ "selectTagPlaceholder": "Schlagwort auswählen...",+ "previewLabel": "Vorschau:",+ "customPromptLabel": "Eigener Prompt",+ "customPromptPlaceholder": "Eigene Anweisungen für die Zusammenfassung eingeben...",+ "noTagsWithPromptsHint": "Keine Schlagwörter mit eigenen Prompts vorhanden. Erstellen Sie Schlagwörter mit eigenen Prompts in den Kontoeinstellungen.",+ "subtitleSummary": "Zusammenfassung neu verarbeiten",+ "subtitleTranscription": "Transkription neu verarbeiten"},"settings": {"apiKeys": "API-Schlüssel",@@ -1305,7 +1321,9 @@"totalRecordings": "{{count}} Aufnahme","totalRecordingsPlural": "{{count}} Aufnahmen","upcoming": "Bevorstehend",- "yesterday": "Gestern"+ "yesterday": "Gestern",+ "allRecordings": "Alle Aufnahmen",+ "unfiled": "Nicht zugeordnet"},"speakers": {"filterBySpeaker": "Nach Sprecher filtern",@@ -1372,7 +1390,8 @@"saveSummary": "Zusammenfassung speichern","summaryFailed": "Generierung der Zusammenfassung fehlgeschlagen","summaryInProgress": "Zusammenfassung wird generiert...",- "title": "Zusammenfassung"+ "title": "Zusammenfassung",+ "customizePrompt": "Prompt anpassen"},"tagManagement": {"asrDefaults": "ASR-Standards",@@ -1630,5 +1649,56 @@"playerPositionBottomHelp": "Player unter den Transkript- und Zusammenfassungsspalten verankert. Standard.","playerPositionTop": "Oben","playerPositionTopHelp": "Der Player sitzt über den Spalten, direkt unter dem Titel und der Metadatenleiste."+ },+ "stats": {+ "title": "Statistiken",+ "totalLength": "Gesamtdauer",+ "speakers": "Sprecher",+ "turns": "Sprecherwechsel",+ "words": "Wörter",+ "perSpeaker": "Pro Sprecher",+ "sortedBySpeakingTime": "sortiert nach Sprechdauer",+ "speaker": "Sprecher",+ "time": "Zeit",+ "pctAudio": "% des Audios",+ "wpm": "WpM",+ "silence": "Stille",+ "noStatsTitle": "Noch keine Statistiken",+ "noStatsBody": "Statistiken erscheinen, sobald die Aufnahme mit Sprechertrennung und Zeitstempeln transkribiert wurde."+ },+ "progressQueue": {+ "title": "Verarbeitungswarteschlange",+ "clear": "Leeren",+ "uploading": "{{count}} werden hochgeladen",+ "transcribing": "{{count}} werden transkribiert",+ "summarizing": "{{count}} werden zusammengefasst",+ "queued": "{{count}} in der Warteschlange",+ "cancel": "Abbrechen",+ "failed": "Fehlgeschlagen",+ "completed": "Abgeschlossen",+ "done": "Fertig",+ "empty": "Keine Einträge in der Warteschlange",+ "duplicateWarning": "Doppelte Datei erkannt",+ "retry": "Wiederholen",+ "delete": "Löschen",+ "uploadingShort": "werden hochgeladen",+ "transcribingShort": "werden transkribiert",+ "summarizingShort": "werden zusammengefasst",+ "queuedShort": "in der Warteschlange"+ },+ "floatingChat": {+ "dockLeft": "Links andocken",+ "dockRight": "Rechts andocken",+ "dockFull": "Vollbild"+ },+ "bulkActions": {+ "star": "Markieren",+ "reprocess": "Neu verarbeiten"+ },+ "unifiedShareModal": {+ "noPublicLinks": "Noch keine öffentlichen Freigabe-Links",+ "noUsersFound": "Keine Benutzer gefunden",+ "add": "Hinzufügen",+ "notSharedYet": "Noch nicht freigegeben"}}diff --git a/static/locales/en.json b/static/locales/en.jsonindex 61b4534b..e16ed336 100644--- a/static/locales/en.json+++ b/static/locales/en.json@@ -355,7 +355,8 @@"toggleTheme": "Toggle theme","updateTag": "Update Tag","delete": "Delete",- "save": "Save"+ "save": "Save",+ "startReprocessing": "Start Reprocessing"},"changePasswordModal": {"confirmPassword": "Confirm New Password",@@ -1239,7 +1240,22 @@"audioReTranscribedWithAsr": "The audio will be re-transcribed using the ASR endpoint. This includes diarization and will regenerate the title and summary.","manualEditsOverwritten": "Any manual edits to the transcription, title, or summary will be overwritten.","manualEditsOverwrittenSummary": "Any manual edits to the summary will be overwritten.",- "newTitleAndSummary": "A new summary will be generated based on the existing transcription."+ "newTitleAndSummary": "A new summary will be generated based on the existing transcription.",+ "createdPrefix": "Created:",+ "untitledRecording": "Untitled Recording",+ "customSummaryPrompt": "Custom Summarization Prompt",+ "promptSource": "Prompt Source",+ "useDefaultPrompt": "Use default prompt",+ "usePromptFromTag": "Use prompt from tag",+ "enterCustomPrompt": "Enter custom prompt",+ "selectTag": "Select Tag",+ "selectTagPlaceholder": "Select a tag...",+ "previewLabel": "Preview:",+ "customPromptLabel": "Custom Prompt",+ "customPromptPlaceholder": "Enter your custom summarization instructions...",+ "noTagsWithPromptsHint": "No tags with custom prompts available. Create tags with custom prompts in the Account Settings.",+ "subtitleSummary": "Summary reprocessing",+ "subtitleTranscription": "Transcription reprocessing"},"settings": {"apiKeys": "API Keys",@@ -1314,7 +1330,9 @@"totalRecordings": "{{count}} recording","totalRecordingsPlural": "{{count}} recordings","upcoming": "Upcoming",- "yesterday": "Yesterday"+ "yesterday": "Yesterday",+ "allRecordings": "All Recordings",+ "unfiled": "Unfiled"},"speakers": {"filterBySpeaker": "Filter by speaker",@@ -1381,7 +1399,8 @@"saveSummary": "Save Summary","summaryFailed": "Summary generation failed","summaryInProgress": "Summary generation in progress...",- "title": "Summary"+ "title": "Summary",+ "customizePrompt": "Customise prompt"},"tagManagement": {"asrDefaults": "ASR Defaults",@@ -1630,5 +1649,56 @@"playerPositionBottomHelp": "Player anchored under the transcript + summary columns. Default.","playerPositionTop": "Top","playerPositionTopHelp": "Player sits above the columns, just under the title and metadata strip."+ },+ "stats": {+ "title": "Stats",+ "totalLength": "Total length",+ "speakers": "Speakers",+ "turns": "Turns",+ "words": "Words",+ "perSpeaker": "Per speaker",+ "sortedBySpeakingTime": "sorted by speaking time",+ "speaker": "Speaker",+ "time": "Time",+ "pctAudio": "% of audio",+ "wpm": "WPM",+ "silence": "Silence",+ "noStatsTitle": "No stats yet",+ "noStatsBody": "Stats appear once this recording has been transcribed with speaker diarization and segment timestamps."+ },+ "progressQueue": {+ "title": "Processing Queue",+ "clear": "Clear",+ "uploading": "{{count}} uploading",+ "transcribing": "{{count}} transcribing",+ "summarizing": "{{count}} summarizing",+ "queued": "{{count}} queued",+ "cancel": "Cancel",+ "failed": "Failed",+ "completed": "Completed",+ "done": "Done",+ "empty": "No items in queue",+ "duplicateWarning": "Duplicate file detected",+ "retry": "Retry",+ "delete": "Delete",+ "uploadingShort": "uploading",+ "transcribingShort": "transcribing",+ "summarizingShort": "summarizing",+ "queuedShort": "queued"+ },+ "floatingChat": {+ "dockLeft": "Dock left",+ "dockRight": "Dock right",+ "dockFull": "Dock full"+ },+ "bulkActions": {+ "star": "Star",+ "reprocess": "Reprocess"+ },+ "unifiedShareModal": {+ "noPublicLinks": "No public share links yet",+ "noUsersFound": "No users found",+ "add": "Add",+ "notSharedYet": "Not shared with anyone yet"}}diff --git a/static/locales/es.json b/static/locales/es.jsonindex f848dbc2..8fc7867f 100644--- a/static/locales/es.json+++ b/static/locales/es.json@@ -355,7 +355,8 @@"toggleTheme": "Cambiar tema","updateTag": "Actualizar tag","delete": "Eliminar",- "save": "Guardar"+ "save": "Guardar",+ "startReprocessing": "Iniciar reprocesamiento"},"changePasswordModal": {"confirmPassword": "Confirmar Nueva Contraseña",@@ -1230,7 +1231,22 @@"audioReTranscribedWithAsr": "El audio será re-transcrito usando el endpoint ASR. Esto incluye diarización y regenerará el título y resumen.","manualEditsOverwritten": "Cualquier edición manual de la transcripción, título o resumen será sobrescrita.","manualEditsOverwrittenSummary": "Cualquier edición manual del resumen será sobrescrita.",- "newTitleAndSummary": "Se generará un nuevo resumen basado en la transcripción existente."+ "newTitleAndSummary": "Se generará un nuevo resumen basado en la transcripción existente.",+ "createdPrefix": "Creado:",+ "untitledRecording": "Grabación sin título",+ "customSummaryPrompt": "Instrucción de resumen personalizada",+ "promptSource": "Origen de la instrucción",+ "useDefaultPrompt": "Usar instrucción predeterminada",+ "usePromptFromTag": "Usar instrucción de una etiqueta",+ "enterCustomPrompt": "Introducir instrucción personalizada",+ "selectTag": "Seleccionar etiqueta",+ "selectTagPlaceholder": "Selecciona una etiqueta...",+ "previewLabel": "Vista previa:",+ "customPromptLabel": "Instrucción personalizada",+ "customPromptPlaceholder": "Introduce tus instrucciones de resumen personalizadas...",+ "noTagsWithPromptsHint": "No hay etiquetas con instrucciones personalizadas. Crea etiquetas con instrucciones personalizadas en Configuración de la cuenta.",+ "subtitleSummary": "Reprocesamiento del resumen",+ "subtitleTranscription": "Reprocesamiento de la transcripción"},"settings": {"apiKeys": "Claves API",@@ -1305,7 +1321,9 @@"totalRecordings": "{{count}} grabación","totalRecordingsPlural": "{{count}} grabaciones","upcoming": "Próximo",- "yesterday": "Ayer"+ "yesterday": "Ayer",+ "allRecordings": "Todas las grabaciones",+ "unfiled": "Sin clasificar"},"speakers": {"filterBySpeaker": "Filtrar por orador",@@ -1372,7 +1390,8 @@"saveSummary": "Guardar Resumen","summaryFailed": "La generación del resumen falló","summaryInProgress": "Generación de resumen en progreso...",- "title": "Resumen"+ "title": "Resumen",+ "customizePrompt": "Personalizar instrucción"},"tagManagement": {"asrDefaults": "Configuraciones ASR Predeterminadas",@@ -1630,5 +1649,56 @@"playerPositionBottomHelp": "Reproductor anclado debajo de las columnas de transcripción y resumen. Predeterminado.","playerPositionTop": "Superior","playerPositionTopHelp": "El reproductor se sitúa encima de las columnas, justo debajo del título y la barra de metadatos."+ },+ "stats": {+ "title": "Estadísticas",+ "totalLength": "Duración total",+ "speakers": "Hablantes",+ "turns": "Turnos",+ "words": "Palabras",+ "perSpeaker": "Por hablante",+ "sortedBySpeakingTime": "ordenado por tiempo de habla",+ "speaker": "Hablante",+ "time": "Tiempo",+ "pctAudio": "% del audio",+ "wpm": "PPM",+ "silence": "Silencio",+ "noStatsTitle": "Aún no hay estadísticas",+ "noStatsBody": "Las estadísticas aparecen cuando la grabación se ha transcrito con identificación de hablantes y marcas de tiempo de los segmentos."+ },+ "progressQueue": {+ "title": "Cola de procesamiento",+ "clear": "Limpiar",+ "uploading": "{{count}} subiendo",+ "transcribing": "{{count}} transcribiendo",+ "summarizing": "{{count}} resumiendo",+ "queued": "{{count}} en cola",+ "cancel": "Cancelar",+ "failed": "Fallidos",+ "completed": "Completados",+ "done": "Hecho",+ "empty": "No hay elementos en la cola",+ "duplicateWarning": "Archivo duplicado detectado",+ "retry": "Reintentar",+ "delete": "Eliminar",+ "uploadingShort": "subiendo",+ "transcribingShort": "transcribiendo",+ "summarizingShort": "resumiendo",+ "queuedShort": "en cola"+ },+ "floatingChat": {+ "dockLeft": "Anclar a la izquierda",+ "dockRight": "Anclar a la derecha",+ "dockFull": "Pantalla completa"+ },+ "bulkActions": {+ "star": "Destacar",+ "reprocess": "Reprocesar"+ },+ "unifiedShareModal": {+ "noPublicLinks": "Aún no hay enlaces públicos",+ "noUsersFound": "No se encontraron usuarios",+ "add": "Añadir",+ "notSharedYet": "Aún no compartido con nadie"}}diff --git a/static/locales/fr.json b/static/locales/fr.jsonindex ad0fbc92..c00e8ca1 100644--- a/static/locales/fr.json+++ b/static/locales/fr.json@@ -355,7 +355,8 @@"toggleTheme": "Changer de thème","updateTag": "Mettre à jour le tag","delete": "Supprimer",- "save": "Enregistrer"+ "save": "Enregistrer",+ "startReprocessing": "Lancer le retraitement"},"changePasswordModal": {"confirmPassword": "Confirmer le Nouveau Mot de Passe",@@ -1230,7 +1231,22 @@"audioReTranscribedWithAsr": "L'audio sera re-transcrit en utilisant l'endpoint ASR. Cela inclut la diarisation et régénérera le titre et le résumé.","manualEditsOverwritten": "Toute modification manuelle de la transcription, du titre ou du résumé sera écrasée.","manualEditsOverwrittenSummary": "Toute modification manuelle du résumé sera écrasée.",- "newTitleAndSummary": "Un nouveau résumé sera généré basé sur la transcription existante."+ "newTitleAndSummary": "Un nouveau résumé sera généré basé sur la transcription existante.",+ "createdPrefix": "Créé le :",+ "untitledRecording": "Enregistrement sans titre",+ "customSummaryPrompt": "Prompt de résumé personnalisé",+ "promptSource": "Source du prompt",+ "useDefaultPrompt": "Utiliser le prompt par défaut",+ "usePromptFromTag": "Utiliser le prompt d'une étiquette",+ "enterCustomPrompt": "Saisir un prompt personnalisé",+ "selectTag": "Sélectionner une étiquette",+ "selectTagPlaceholder": "Sélectionnez une étiquette...",+ "previewLabel": "Aperçu :",+ "customPromptLabel": "Prompt personnalisé",+ "customPromptPlaceholder": "Saisissez vos instructions de résumé personnalisées...",+ "noTagsWithPromptsHint": "Aucune étiquette avec prompt personnalisé disponible. Créez des étiquettes avec prompts personnalisés dans les Paramètres du compte.",+ "subtitleSummary": "Retraitement du résumé",+ "subtitleTranscription": "Retraitement de la transcription"},"settings": {"apiKeys": "Clés API",@@ -1305,7 +1321,9 @@"totalRecordings": "{{count}} enregistrement","totalRecordingsPlural": "{{count}} enregistrements","upcoming": "À venir",- "yesterday": "Hier"+ "yesterday": "Hier",+ "allRecordings": "Tous les enregistrements",+ "unfiled": "Non classés"},"speakers": {"filterBySpeaker": "Filtrer par intervenant",@@ -1372,7 +1390,8 @@"saveSummary": "Enregistrer le Résumé","summaryFailed": "La génération du résumé a échoué","summaryInProgress": "Génération du résumé en cours...",- "title": "Résumé"+ "title": "Résumé",+ "customizePrompt": "Personnaliser le prompt"},"tagManagement": {"asrDefaults": "Paramètres ASR par Défaut",@@ -1630,5 +1649,56 @@"playerPositionBottomHelp": "Lecteur ancré sous les colonnes de transcription et de résumé. Par défaut.","playerPositionTop": "En haut","playerPositionTopHelp": "Le lecteur se place au-dessus des colonnes, juste sous le titre et la barre de métadonnées."+ },+ "stats": {+ "title": "Statistiques",+ "totalLength": "Durée totale",+ "speakers": "Intervenants",+ "turns": "Tours de parole",+ "words": "Mots",+ "perSpeaker": "Par intervenant",+ "sortedBySpeakingTime": "trié par temps de parole",+ "speaker": "Intervenant",+ "time": "Temps",+ "pctAudio": "% de l'audio",+ "wpm": "MPM",+ "silence": "Silence",+ "noStatsTitle": "Pas encore de statistiques",+ "noStatsBody": "Les statistiques apparaissent une fois que l'enregistrement a été transcrit avec identification des intervenants et horodatage des segments."+ },+ "progressQueue": {+ "title": "File de traitement",+ "clear": "Effacer",+ "uploading": "{{count}} en cours d'envoi",+ "transcribing": "{{count}} en transcription",+ "summarizing": "{{count}} en résumé",+ "queued": "{{count}} en attente",+ "cancel": "Annuler",+ "failed": "Échecs",+ "completed": "Terminés",+ "done": "Terminé",+ "empty": "Aucun élément dans la file",+ "duplicateWarning": "Fichier en double détecté",+ "retry": "Réessayer",+ "delete": "Supprimer",+ "uploadingShort": "en cours d'envoi",+ "transcribingShort": "en transcription",+ "summarizingShort": "en résumé",+ "queuedShort": "en attente"+ },+ "floatingChat": {+ "dockLeft": "Ancrer à gauche",+ "dockRight": "Ancrer à droite",+ "dockFull": "Plein écran"+ },+ "bulkActions": {+ "star": "Favoris",+ "reprocess": "Retraiter"+ },+ "unifiedShareModal": {+ "noPublicLinks": "Aucun lien public pour le moment",+ "noUsersFound": "Aucun utilisateur trouvé",+ "add": "Ajouter",+ "notSharedYet": "Pas encore partagé"}}diff --git a/static/locales/pt-BR.json b/static/locales/pt-BR.jsonindex 49f29f0a..286aeb66 100644--- a/static/locales/pt-BR.json+++ b/static/locales/pt-BR.json@@ -355,7 +355,8 @@"toggleTheme": "Alternar tema","updateTag": "Atualizar Etiqueta","delete": "Excluir",- "save": "Salvar"+ "save": "Salvar",+ "startReprocessing": "Iniciar reprocessamento"},"changePasswordModal": {"confirmPassword": "Confirmar Nova Senha",@@ -1230,7 +1231,22 @@"audioReTranscribedWithAsr": "O áudio será retranscrito usando o endpoint de ASR. Isso inclui diarização e regenerará o título e o resumo.","manualEditsOverwritten": "Qualquer edição manual da transcrição, título ou resumo será sobrescrita.","manualEditsOverwrittenSummary": "Qualquer edição manual do resumo será sobrescrita.",- "newTitleAndSummary": "Um novo resumo será gerado com base na transcrição existente."+ "newTitleAndSummary": "Um novo resumo será gerado com base na transcrição existente.",+ "createdPrefix": "Criado em:",+ "untitledRecording": "Gravação sem título",+ "customSummaryPrompt": "Prompt de resumo personalizado",+ "promptSource": "Origem do prompt",+ "useDefaultPrompt": "Usar prompt padrão",+ "usePromptFromTag": "Usar prompt de uma etiqueta",+ "enterCustomPrompt": "Inserir prompt personalizado",+ "selectTag": "Selecionar etiqueta",+ "selectTagPlaceholder": "Selecione uma etiqueta...",+ "previewLabel": "Visualização:",+ "customPromptLabel": "Prompt personalizado",+ "customPromptPlaceholder": "Insira suas instruções de resumo personalizadas...",+ "noTagsWithPromptsHint": "Nenhuma etiqueta com prompts personalizados disponível. Crie etiquetas com prompts personalizados em Configurações da conta.",+ "subtitleSummary": "Reprocessamento do resumo",+ "subtitleTranscription": "Reprocessamento da transcrição"},"settings": {"apiKeys": "Chaves de API",@@ -1305,7 +1321,9 @@"totalRecordings": "{{count}} gravação","totalRecordingsPlural": "{{count}} gravações","upcoming": "Próximos",- "yesterday": "Ontem"+ "yesterday": "Ontem",+ "allRecordings": "Todas as gravações",+ "unfiled": "Sem pasta"},"speakers": {"filterBySpeaker": "Filtrar por orador",@@ -1372,7 +1390,8 @@"saveSummary": "Salvar Resumo","summaryFailed": "Falha na geração do resumo","summaryInProgress": "Geração de resumo em andamento...",- "title": "Resumo"+ "title": "Resumo",+ "customizePrompt": "Personalizar prompt"},"tagManagement": {"asrDefaults": "Padrões de ASR",@@ -1630,5 +1649,56 @@"playerPositionBottomHelp": "Reprodutor ancorado abaixo das colunas de transcrição e resumo. Padrão.","playerPositionTop": "Superior","playerPositionTopHelp": "O reprodutor fica acima das colunas, logo abaixo do título e da barra de metadados."+ },+ "stats": {+ "title": "Estatísticas",+ "totalLength": "Duração total",+ "speakers": "Locutores",+ "turns": "Turnos de fala",+ "words": "Palavras",+ "perSpeaker": "Por locutor",+ "sortedBySpeakingTime": "ordenado por tempo de fala",+ "speaker": "Locutor",+ "time": "Tempo",+ "pctAudio": "% do áudio",+ "wpm": "PPM",+ "silence": "Silêncio",+ "noStatsTitle": "Ainda não há estatísticas",+ "noStatsBody": "As estatísticas aparecem assim que a gravação for transcrita com identificação de locutores e marcações de tempo dos segmentos."+ },+ "progressQueue": {+ "title": "Fila de processamento",+ "clear": "Limpar",+ "uploading": "{{count}} enviando",+ "transcribing": "{{count}} transcrevendo",+ "summarizing": "{{count}} resumindo",+ "queued": "{{count}} na fila",+ "cancel": "Cancelar",+ "failed": "Falharam",+ "completed": "Concluídos",+ "done": "Concluído",+ "empty": "Nenhum item na fila",+ "duplicateWarning": "Arquivo duplicado detectado",+ "retry": "Tentar novamente",+ "delete": "Excluir",+ "uploadingShort": "enviando",+ "transcribingShort": "transcrevendo",+ "summarizingShort": "resumindo",+ "queuedShort": "na fila"+ },+ "floatingChat": {+ "dockLeft": "Ancorar à esquerda",+ "dockRight": "Ancorar à direita",+ "dockFull": "Tela cheia"+ },+ "bulkActions": {+ "star": "Favoritar",+ "reprocess": "Reprocessar"+ },+ "unifiedShareModal": {+ "noPublicLinks": "Ainda não há links públicos",+ "noUsersFound": "Nenhum usuário encontrado",+ "add": "Adicionar",+ "notSharedYet": "Ainda não compartilhado"}}diff --git a/static/locales/ru.json b/static/locales/ru.jsonindex fb4f8ab7..cafd192e 100644--- a/static/locales/ru.json+++ b/static/locales/ru.json@@ -355,7 +355,8 @@"toggleTheme": "Переключить тему","updateTag": "Обновить тег","delete": "Удалить",- "save": "Сохранить"+ "save": "Сохранить",+ "startReprocessing": "Запустить повторную обработку"},"changePasswordModal": {"confirmPassword": "Подтвердите новый пароль",@@ -1230,7 +1231,22 @@"audioReTranscribedWithAsr": "Аудио будет транскрибировано заново с использованием ASR-эндпоинта. Это включает диаризацию и перегенерирует заголовок и резюме.","manualEditsOverwritten": "Любые ручные правки транскрипции, заголовка или резюме будут перезаписаны.","manualEditsOverwrittenSummary": "Любые ручные правки резюме будут перезаписаны.",- "newTitleAndSummary": "Новое резюме будет сгенерировано на основе существующей транскрипции."+ "newTitleAndSummary": "Новое резюме будет сгенерировано на основе существующей транскрипции.",+ "createdPrefix": "Создано:",+ "untitledRecording": "Запись без названия",+ "customSummaryPrompt": "Пользовательская подсказка для резюме",+ "promptSource": "Источник подсказки",+ "useDefaultPrompt": "Использовать подсказку по умолчанию",+ "usePromptFromTag": "Использовать подсказку из тега",+ "enterCustomPrompt": "Ввести свою подсказку",+ "selectTag": "Выберите тег",+ "selectTagPlaceholder": "Выберите тег...",+ "previewLabel": "Предпросмотр:",+ "customPromptLabel": "Своя подсказка",+ "customPromptPlaceholder": "Введите свои инструкции для резюмирования...",+ "noTagsWithPromptsHint": "Нет тегов с пользовательскими подсказками. Создайте теги с подсказками в настройках аккаунта.",+ "subtitleSummary": "Повторная обработка резюме",+ "subtitleTranscription": "Повторная обработка расшифровки"},"settings": {"apiKeys": "API-ключи",@@ -1305,7 +1321,9 @@"totalRecordings": "{{count}} запись","totalRecordingsPlural": "{{count}} записей","upcoming": "Предстоящие",- "yesterday": "Вчера"+ "yesterday": "Вчера",+ "allRecordings": "Все записи",+ "unfiled": "Без папки"},"speakers": {"filterBySpeaker": "Фильтр по спикеру",@@ -1372,7 +1390,8 @@"saveSummary": "Сохранить резюме","summaryFailed": "Не удалось сгенерировать резюме","summaryInProgress": "Генерация резюме...",- "title": "Резюме"+ "title": "Резюме",+ "customizePrompt": "Настроить подсказку"},"tagManagement": {"asrDefaults": "Настройки ASR по умолчанию",@@ -1630,5 +1649,56 @@"playerPositionBottomHelp": "Плеер закреплён под столбцами расшифровки и резюме. По умолчанию.","playerPositionTop": "Вверху","playerPositionTopHelp": "Плеер располагается над столбцами, прямо под заголовком и панелью метаданных."+ },+ "stats": {+ "title": "Статистика",+ "totalLength": "Общая длительность",+ "speakers": "Говорящие",+ "turns": "Реплики",+ "words": "Слова",+ "perSpeaker": "По каждому говорящему",+ "sortedBySpeakingTime": "отсортировано по времени речи",+ "speaker": "Говорящий",+ "time": "Время",+ "pctAudio": "% аудио",+ "wpm": "слов/мин",+ "silence": "Тишина",+ "noStatsTitle": "Статистики пока нет",+ "noStatsBody": "Статистика появится после того, как запись будет расшифрована с разделением говорящих и временными метками сегментов."+ },+ "progressQueue": {+ "title": "Очередь обработки",+ "clear": "Очистить",+ "uploading": "{{count}} загружается",+ "transcribing": "{{count}} расшифровывается",+ "summarizing": "{{count}} резюмируется",+ "queued": "{{count}} в очереди",+ "cancel": "Отмена",+ "failed": "Ошибки",+ "completed": "Завершено",+ "done": "Готово",+ "empty": "В очереди ничего нет",+ "duplicateWarning": "Обнаружен дубликат файла",+ "retry": "Повторить",+ "delete": "Удалить",+ "uploadingShort": "загружается",+ "transcribingShort": "расшифровывается",+ "summarizingShort": "резюмируется",+ "queuedShort": "в очереди"+ },+ "floatingChat": {+ "dockLeft": "Закрепить слева",+ "dockRight": "Закрепить справа",+ "dockFull": "Во весь экран"+ },+ "bulkActions": {+ "star": "Избранное",+ "reprocess": "Повторить"+ },+ "unifiedShareModal": {+ "noPublicLinks": "Публичных ссылок пока нет",+ "noUsersFound": "Пользователи не найдены",+ "add": "Добавить",+ "notSharedYet": "Пока ни с кем не поделились"}}diff --git a/static/locales/zh.json b/static/locales/zh.jsonindex c6f83416..d8dcb679 100644--- a/static/locales/zh.json+++ b/static/locales/zh.json@@ -355,7 +355,8 @@"toggleTheme": "切换主题","updateTag": "更新标签","delete": "删除",- "save": "保存"+ "save": "保存",+ "startReprocessing": "开始重新处理"},"changePasswordModal": {"confirmPassword": "确认新密码",@@ -1230,7 +1231,22 @@"audioReTranscribedWithAsr": "音频将使用 ASR 端点重新转录。这包括说话人分离,并将重新生成标题和摘要。","manualEditsOverwritten": "对转录、标题或摘要的任何手动编辑都将被覆盖。","manualEditsOverwrittenSummary": "对摘要的任何手动编辑都将被覆盖。",- "newTitleAndSummary": "将基于现有转录生成新的摘要。"+ "newTitleAndSummary": "将基于现有转录生成新的摘要。",+ "createdPrefix": "创建时间:",+ "untitledRecording": "未命名录音",+ "customSummaryPrompt": "自定义摘要提示词",+ "promptSource": "提示词来源",+ "useDefaultPrompt": "使用默认提示词",+ "usePromptFromTag": "使用标签的提示词",+ "enterCustomPrompt": "输入自定义提示词",+ "selectTag": "选择标签",+ "selectTagPlaceholder": "请选择一个标签...",+ "previewLabel": "预览:",+ "customPromptLabel": "自定义提示词",+ "customPromptPlaceholder": "请输入您的自定义摘要指令...",+ "noTagsWithPromptsHint": "没有带自定义提示词的标签。请在账户设置中创建带自定义提示词的标签。",+ "subtitleSummary": "重新生成摘要",+ "subtitleTranscription": "重新转录"},"settings": {"apiKeys": "API密钥",@@ -1305,7 +1321,9 @@"totalRecordings": "{{count}} 个录音","totalRecordingsPlural": "{{count}} 个录音","upcoming": "即将到来",- "yesterday": "昨天"+ "yesterday": "昨天",+ "allRecordings": "所有录音",+ "unfiled": "未分类"},"speakers": {"filterBySpeaker": "按发言人筛选",@@ -1372,7 +1390,8 @@"saveSummary": "保存摘要","summaryFailed": "摘要生成失败","summaryInProgress": "摘要生成中...",- "title": "摘要"+ "title": "摘要",+ "customizePrompt": "自定义提示词"},"tagManagement": {"asrDefaults": "ASR 默认值",@@ -1630,5 +1649,56 @@"playerPositionBottomHelp": "播放器固定在转录和摘要栏下方。默认。","playerPositionTop": "顶部","playerPositionTopHelp": "播放器位于栏的上方,紧贴标题和元数据栏下方。"+ },+ "stats": {+ "title": "统计",+ "totalLength": "总时长",+ "speakers": "发言人",+ "turns": "发言轮次",+ "words": "字数",+ "perSpeaker": "按发言人",+ "sortedBySpeakingTime": "按发言时长排序",+ "speaker": "发言人",+ "time": "时间",+ "pctAudio": "占音频比例",+ "wpm": "字/分",+ "silence": "静默",+ "noStatsTitle": "暂无统计数据",+ "noStatsBody": "在录音完成带有说话人分离和片段时间戳的转录后,统计数据将会显示。"+ },+ "progressQueue": {+ "title": "处理队列",+ "clear": "清除",+ "uploading": "{{count}} 个正在上传",+ "transcribing": "{{count}} 个正在转录",+ "summarizing": "{{count}} 个正在生成摘要",+ "queued": "{{count}} 个排队中",+ "cancel": "取消",+ "failed": "失败",+ "completed": "已完成",+ "done": "完成",+ "empty": "队列中没有项目",+ "duplicateWarning": "检测到重复文件",+ "retry": "重试",+ "delete": "删除",+ "uploadingShort": "个正在上传",+ "transcribingShort": "个正在转录",+ "summarizingShort": "个正在生成摘要",+ "queuedShort": "个排队中"+ },+ "floatingChat": {+ "dockLeft": "停靠左侧",+ "dockRight": "停靠右侧",+ "dockFull": "全屏"+ },+ "bulkActions": {+ "star": "加星标",+ "reprocess": "重新处理"+ },+ "unifiedShareModal": {+ "noPublicLinks": "尚无公开分享链接",+ "noUsersFound": "未找到用户",+ "add": "添加",+ "notSharedYet": "尚未与任何人分享"}}diff --git a/templates/account.html b/templates/account.htmlindex 6ca67a06..94671ba4 100644--- a/templates/account.html+++ b/templates/account.html@@ -21,7 +21,73 @@<script>// Initialize i18nlet t = (key) => key; // Default fallback-++ // Sort the option list of a <select> alphabetically by the displayed+ // text, using the current locale's collation. The selected option is+ // preserved across the reshuffle so the user's preference doesn't+ // appear to "jump" to a different value. Options carrying+ // `data-sort-pin="top"` stay anchored at the start (used for+ // "Auto-detect" / "Default (model decides)" sentinel rows). All+ // option `value` attributes are left untouched so this is fully+ // backward-compatible — what changes is purely the visual order of+ // the rendered <option> elements.+ //+ // NOTE: capturing the selected value via the HTMLOptionElement+ // .selected property (and re-applying it the same way) is more+ // robust than reading/writing select.value, because some browsers+ // reset the selectedness when option nodes are detached + re-appended+ // and select.value setter has historically been finicky in that+ // window. Using .selected sidesteps that race entirely.+ function sortSelectOptionsAlphabetically(select, locale) {+ if (!select || select.options.length < 2) return;+ const opts = Array.from(select.options);+ const wasSelected = opts.find(o => o.selected) || null;+ const pinned = opts.filter(o => o.dataset.sortPin === 'top');+ const rest = opts.filter(o => o.dataset.sortPin !== 'top');+ const collator = new Intl.Collator(locale || 'en', { sensitivity: 'base', numeric: true });+ rest.sort((a, b) => collator.compare(a.textContent.trim(), b.textContent.trim()));+ // Detach all and re-attach in sorted order.+ while (select.firstChild) select.removeChild(select.firstChild);+ for (const o of pinned) select.appendChild(o);+ for (const o of rest) select.appendChild(o);+ // Re-apply the previous selection. If nothing was selected (rare —+ // would only happen on a select with no `selected` attribute and+ // no JS-set value), leave the browser default (first option) alone.+ if (wasSelected) {+ Array.from(select.options).forEach(o => { o.selected = (o === wasSelected); });+ }+ }++ function sortLanguageDropdowns() {+ const locale = (window.i18n && window.i18n.currentLocale) || 'en';+ ['ui_language', 'transcription_language', 'output_language'].forEach(id => {+ sortSelectOptionsAlphabetically(document.getElementById(id), locale);+ });+ }++ // Reconcile the Interface Language dropdown with whatever locale the+ // UI is ACTUALLY rendering in. The DB column current_user.ui_language+ // and the localStorage `preferredLanguage` value can drift apart+ // (e.g. user switched languages on a different device, or an old+ // session set localStorage before the DB existed). When they+ // disagree, the UI follows localStorage but the <select> would+ // still render based on the DB value — confusing because clicking+ // the "actually rendering" language in the dropdown is then a no-op+ // (no `change` event since the selection didn't move). Pull the+ // dropdown into line with what the user is actually seeing.+ function syncUILanguageDropdownToActiveLocale() {+ const sel = document.getElementById('ui_language');+ if (!sel || !window.i18n) return;+ const active = window.i18n.currentLocale;+ // Only sync if the active locale is one of the dropdown's options+ // — otherwise leave the DB value alone (mismatched locale codes+ // can happen during locale-file additions).+ const match = Array.from(sel.options).find(o => o.value === active);+ if (match && !match.selected) {+ Array.from(sel.options).forEach(o => { o.selected = (o === match); });+ }+ }+async function initializeI18n(language) {const userLanguage = language || "{{ user_language }}";@@ -45,6 +111,15 @@const key = el.getAttribute('data-i18n-placeholder');el.placeholder = t(key);});++ // Make sure the Interface Language dropdown reflects the+ // locale that's actually rendering, not just the DB value.+ syncUILanguageDropdownToActiveLocale();++ // After translations apply, sort language dropdowns in the+ // current locale's alphabetical order. Values stay intact so+ // already-saved user preferences continue to resolve.+ sortLanguageDropdowns();}}@@ -63,7 +138,7 @@const key = el.getAttribute('data-i18n-placeholder');el.placeholder = t(key);});-+// Update language options in dropdown to show native namesconst langSelect = document.getElementById('ui_language');if (langSelect) {@@ -76,14 +151,18 @@'ru': 'Русский (Russian)','pt-BR': 'Português (Brasil)'};-+Array.from(langSelect.options).forEach(option => {if (langOptions[option.value]) {option.textContent = langOptions[option.value];}});}-++ // Re-sort the language dropdowns now that translations + autonyms+ // have been re-applied for the new locale.+ sortLanguageDropdowns();+// Force update any Vue or dynamic content by dispatching a custom eventwindow.dispatchEvent(new CustomEvent('language-changed', { detail: { language: window.i18n.currentLanguage } }));}@@ -826,7 +905,7 @@<div><label for="transcription_language" class="block text-sm font-medium text-[var(--text-muted)]" data-i18n="account.transcriptionLanguage">Transcription Language</label><select name="transcription_language" id="transcription_language" 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="" data-i18n="languages.autoDetect" {% if not current_user.transcription_language %}selected{% endif %}>Auto-detect</option>+ <option value="" data-sort-pin="top" data-i18n="languages.autoDetect" {% if not current_user.transcription_language %}selected{% endif %}>Auto-detect</option><option value="en" data-i18n="languages.en" {% if current_user.transcription_language == 'en' %}selected{% endif %}>English</option><option value="es" data-i18n="languages.es" {% if current_user.transcription_language == 'es' %}selected{% endif %}>Spanish</option><option value="fr" data-i18n="languages.fr" {% if current_user.transcription_language == 'fr' %}selected{% endif %}>French</option>@@ -854,7 +933,7 @@<div><label for="output_language" class="block text-sm font-medium text-[var(--text-muted)]" data-i18n="account.preferredOutputLanguage">Preferred Output Language</label><select name="output_language" id="output_language" 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="" data-i18n="languages.defaultModelDecides" {% if not current_user.output_language %}selected{% endif %}>Default (model decides)</option>+ <option value="" data-sort-pin="top" data-i18n="languages.defaultModelDecides" {% if not current_user.output_language %}selected{% endif %}>Default (model decides)</option><option value="English" data-i18n="languages.en" {% if current_user.output_language == 'English' %}selected{% endif %}>English</option><option value="Spanish" data-i18n="languages.es" {% if current_user.output_language == 'Spanish' %}selected{% endif %}>Spanish</option><option value="French" data-i18n="languages.fr" {% if current_user.output_language == 'French' %}selected{% endif %}>French</option>@@ -2059,6 +2138,9 @@ curl "https://your-speakr-instance.com/api/recordings?token=YOUR_TOKEN_HERE"</co</nav></div>+ <!-- Tab content area: wrapper keeps modal a consistent height across tabs -->+ <div class="modal-tabs-pane">+<!-- Tab: Transcription & Retention --><div id="tagTabTranscription" class="tag-modal-tab-content space-y-4">{% if connector_supports_diarization %}@@ -2200,8 +2282,28 @@ curl "https://your-speakr-instance.com/api/recordings?token=YOUR_TOKEN_HERE"</co</div><p class="text-xs text-[var(--text-light)] italic mt-3">Note: If both are enabled, all group members will have access.</p></div>++ <!-- Empty state: shown when internal sharing is enabled but the user+ is not an admin of any group (so they can't associate this tag+ with a group). Copy varies by site-admin status. -->+ <div id="tagSharingEmptyState" class="empty hidden">+ <div class="empty__icon"><i class="fas fa-users"></i></div>+ <div class="empty__title">No groups available for sharing</div>+ <div class="empty__body">+ {% if current_user.is_admin %}+ Sharing tags requires at least one group. Create one in+ <a href="/admin#groups" class="text-[var(--text-accent)] hover:underline">Admin → Groups</a>,+ then come back here to associate this tag with it.+ {% else %}+ Sharing tags requires you to be an admin of at least one group.+ Ask your administrator to create a group and add you as an admin, then you can share tags with that group's members.+ {% endif %}+ </div>+ </div></div>+ </div><!-- /.modal-tabs-pane -->+</div><div class="modal-footer"><button type="button" id="cancelTagBtn" class="btn btn--ghost" data-i18n="buttons.cancel">Cancel</button>@@ -2254,6 +2356,9 @@ curl "https://your-speakr-instance.com/api/recordings?token=YOUR_TOKEN_HERE"</co</nav></div>+ <!-- Tab content area: wrapper keeps modal a consistent height across tabs -->+ <div class="modal-tabs-pane">+<!-- Tab: Transcription & Retention --><div id="folderTabTranscription" class="folder-modal-tab-content space-y-4">{% if connector_supports_diarization %}@@ -2389,8 +2494,28 @@ curl "https://your-speakr-instance.com/api/recordings?token=YOUR_TOKEN_HERE"</co</div><p class="text-xs text-[var(--text-light)] italic mt-3">Note: If both are enabled, all group members will have access.</p></div>++ <!-- Empty state: shown when internal sharing is enabled but the user+ is not an admin of any group (so they can't associate this folder+ with a group). Copy varies by site-admin status. -->+ <div id="folderSharingEmptyState" class="empty hidden">+ <div class="empty__icon"><i class="fas fa-users"></i></div>+ <div class="empty__title">No groups available for sharing</div>+ <div class="empty__body">+ {% if current_user.is_admin %}+ Sharing folders requires at least one group. Create one in+ <a href="/admin#groups" class="text-[var(--text-accent)] hover:underline">Admin → Groups</a>,+ then come back here to associate this folder with it.+ {% else %}+ Sharing folders requires you to be an admin of at least one group.+ Ask your administrator to create a group and add you as an admin, then you can share folders with that group's members.+ {% endif %}+ </div>+ </div></div>+ </div><!-- /.modal-tabs-pane -->+<div class="flex justify-end space-x-3 pt-4 border-t border-[var(--border-primary)]"><button type="button" id="cancelFolderBtn" class="px-4 py-2 bg-[var(--bg-tertiary)] text-[var(--text-secondary)] rounded-md hover:bg-[var(--border-secondary)]">Cancel</button><button type="submit" id="saveFolderBtn" class="btn btn--primary">@@ -4523,18 +4648,30 @@ curl "https://your-speakr-instance.com/api/recordings?token=YOUR_TOKEN_HERE"</colet userAdminGroups = {{ user_admin_groups | tojson }};console.log('User admin groups:', userAdminGroups);- // Update visibility of group selection based on whether user is admin of any groups+ // Update visibility of group selection based on whether user is admin of any groups.+ // When internal sharing is on but the user has no admin groups, surface an+ // empty state so the Sharing tab isn't visually blank.function updateGroupSelectionVisibility() {const groupSelectionSection = document.getElementById('tagGroupSelectionSection');+ const emptyState = document.getElementById('tagSharingEmptyState');+ const isInternalSharingEnabled = {{ 'true' if enable_internal_sharing else 'false' }};+ const hasGroups = Array.isArray(userAdminGroups) && userAdminGroups.length > 0;+if (groupSelectionSection) {- const isInternalSharingEnabled = {{ 'true' if enable_internal_sharing else 'false' }};- if (isInternalSharingEnabled && userAdminGroups.length > 0) {+ if (isInternalSharingEnabled && hasGroups) {groupSelectionSection.classList.remove('hidden');populateGroupDropdown();} else {groupSelectionSection.classList.add('hidden');}}+ if (emptyState) {+ if (isInternalSharingEnabled && !hasGroups) {+ emptyState.classList.remove('hidden');+ } else {+ emptyState.classList.add('hidden');+ }+ }}// Populate the group dropdown with groups where user is admin@@ -5990,10 +6127,16 @@ curl "https://your-speakr-instance.com/api/recordings?token=YOUR_TOKEN_HERE"</co}checkFolderAutoDeletionEnabled();- // Initialize folder group selection visibility+ // Initialize folder group selection visibility. Mirror the tag-modal+ // behavior: surface an empty state inside the Sharing tab when+ // internal sharing is on but the user has no admin groups.function initFolderGroupSelection() {const folderGroupSection = document.getElementById('folderGroupSelectionSection');- if (folderGroupSection && userAdminGroups && userAdminGroups.length > 0) {+ const emptyState = document.getElementById('folderSharingEmptyState');+ const isInternalSharingEnabled = {{ 'true' if enable_internal_sharing else 'false' }};+ const hasGroups = Array.isArray(userAdminGroups) && userAdminGroups.length > 0;++ if (folderGroupSection && hasGroups) {folderGroupSection.classList.remove('hidden');// Populate folder group dropdown@@ -6012,6 +6155,13 @@ curl "https://your-speakr-instance.com/api/recordings?token=YOUR_TOKEN_HERE"</co});}}+ if (emptyState) {+ if (isInternalSharingEnabled && !hasGroups) {+ emptyState.classList.remove('hidden');+ } else {+ emptyState.classList.add('hidden');+ }+ }}initFolderGroupSelection();diff --git a/templates/components/detail/desktop-stats-tab.html b/templates/components/detail/desktop-stats-tab.htmlindex 33140a51..1bec2873 100644--- a/templates/components/detail/desktop-stats-tab.html+++ b/templates/components/detail/desktop-stats-tab.html@@ -6,19 +6,19 @@<!-- Headline metrics --><div class="grid grid-cols-2 md:grid-cols-4 gap-3"><div class="bg-[var(--bg-secondary)] border border-[var(--border-primary)] rounded-md p-3">- <div class="t-label">Total length</div>+ <div class="t-label">${ t('stats.totalLength') }</div><div class="t-heading mt-1">${ recordingStats.total.durationLabel }</div></div><div class="bg-[var(--bg-secondary)] border border-[var(--border-primary)] rounded-md p-3">- <div class="t-label">Speakers</div>+ <div class="t-label">${ t('stats.speakers') }</div><div class="t-heading mt-1">${ recordingStats.total.speakers }</div></div><div class="bg-[var(--bg-secondary)] border border-[var(--border-primary)] rounded-md p-3">- <div class="t-label">Turns</div>+ <div class="t-label">${ t('stats.turns') }</div><div class="t-heading mt-1">${ recordingStats.total.turns }</div></div><div class="bg-[var(--bg-secondary)] border border-[var(--border-primary)] rounded-md p-3">- <div class="t-label">Words</div>+ <div class="t-label">${ t('stats.words') }</div><div class="t-heading mt-1">${ recordingStats.total.words.toLocaleString() }</div></div></div>@@ -26,18 +26,18 @@<!-- Per-speaker breakdown table --><div class="bg-[var(--bg-secondary)] border border-[var(--border-primary)] rounded-md overflow-hidden"><div class="px-4 py-3 border-b border-[var(--border-primary)] flex items-center justify-between">- <h3 class="t-subhead">Per speaker</h3>- <span class="t-meta">sorted by speaking time</span>+ <h3 class="t-subhead">${ t('stats.perSpeaker') }</h3>+ <span class="t-meta">${ t('stats.sortedBySpeakingTime') }</span></div><table class="w-full text-sm"><thead><tr class="text-left t-label">- <th class="py-2 px-4">Speaker</th>- <th class="py-2 px-3 text-right">Time</th>- <th class="py-2 px-3 text-right">% of audio</th>- <th class="py-2 px-3 text-right">Turns</th>- <th class="py-2 px-3 text-right">Words</th>- <th class="py-2 px-3 text-right">WPM</th>+ <th class="py-2 px-4">${ t('stats.speaker') }</th>+ <th class="py-2 px-3 text-right">${ t('stats.time') }</th>+ <th class="py-2 px-3 text-right">${ t('stats.pctAudio') }</th>+ <th class="py-2 px-3 text-right">${ t('stats.turns') }</th>+ <th class="py-2 px-3 text-right">${ t('stats.words') }</th>+ <th class="py-2 px-3 text-right">${ t('stats.wpm') }</th></tr></thead><tbody>@@ -64,7 +64,7 @@<tr v-if="recordingStats.silence.seconds > 0"class="border-t border-[var(--border-primary)] bg-[var(--bg-tertiary)]/50"><td class="py-2 px-4">- <span class="t-meta italic">Silence</span>+ <span class="t-meta italic">${ t('stats.silence') }</span><div class="mt-1.5 h-1.5 w-full rounded-full bg-[var(--bg-tertiary)] overflow-hidden"><div class="h-full" :style="{ width: recordingStats.silence.pct.toFixed(1) + '%', background: 'var(--text-muted)' }"></div></div>@@ -82,7 +82,7 @@<div v-else class="empty"><div class="empty__icon"><i class="fas fa-chart-bar"></i></div>- <div class="empty__title">No stats yet</div>- <div class="empty__body">Stats appear once this recording has been transcribed with speaker diarization and segment timestamps.</div>+ <div class="empty__title">${ t('stats.noStatsTitle') }</div>+ <div class="empty__body">${ t('stats.noStatsBody') }</div></div></div>diff --git a/templates/components/detail/mobile-stats-panel.html b/templates/components/detail/mobile-stats-panel.htmlindex d0987c4d..a140741b 100644--- a/templates/components/detail/mobile-stats-panel.html+++ b/templates/components/detail/mobile-stats-panel.html@@ -9,19 +9,19 @@<!-- Headline metrics --><div class="grid grid-cols-2 gap-2"><div class="bg-[var(--bg-secondary)] border border-[var(--border-primary)] rounded-md p-3">- <div class="t-label">Total length</div>+ <div class="t-label">${ t('stats.totalLength') }</div><div class="t-subhead mt-1" v-text="recordingStats.total.durationLabel"></div></div><div class="bg-[var(--bg-secondary)] border border-[var(--border-primary)] rounded-md p-3">- <div class="t-label">Speakers</div>+ <div class="t-label">${ t('stats.speakers') }</div><div class="t-subhead mt-1" v-text="recordingStats.total.speakers"></div></div><div class="bg-[var(--bg-secondary)] border border-[var(--border-primary)] rounded-md p-3">- <div class="t-label">Turns</div>+ <div class="t-label">${ t('stats.turns') }</div><div class="t-subhead mt-1" v-text="recordingStats.total.turns"></div></div><div class="bg-[var(--bg-secondary)] border border-[var(--border-primary)] rounded-md p-3">- <div class="t-label">Words</div>+ <div class="t-label">${ t('stats.words') }</div><div class="t-subhead mt-1" v-text="recordingStats.total.words.toLocaleString()"></div></div></div>@@ -32,8 +32,8 @@secondary stats below. --><div><div class="flex items-center justify-between mb-2 px-1">- <h3 class="t-subhead">Per speaker</h3>- <span class="t-meta">sorted by time</span>+ <h3 class="t-subhead">${ t('stats.perSpeaker') }</h3>+ <span class="t-meta">${ t('stats.sortedBySpeakingTime') }</span></div><div class="space-y-2"><div v-for="row in recordingStats.speakerRows" :key="row.speakerId"@@ -51,21 +51,21 @@<!-- Secondary stats: 3-column grid --><div class="grid grid-cols-3 gap-2 text-center"><div>- <div class="t-label">% audio</div>+ <div class="t-label">${ t('stats.pctAudio') }</div><div class="text-sm font-medium mt-0.5">${ row.pct.toFixed(1) }%</div></div><div>- <div class="t-label">Turns</div>+ <div class="t-label">${ t('stats.turns') }</div><div class="text-sm font-medium mt-0.5" v-text="row.turns"></div></div><div>- <div class="t-label">Words</div>+ <div class="t-label">${ t('stats.words') }</div><div class="text-sm font-medium mt-0.5" v-text="row.words.toLocaleString()"></div></div></div><div v-if="row.wpm" class="mt-2 pt-2 border-t border-[var(--border-secondary)] flex items-center justify-between t-meta">- <span>Speaking rate</span>- <span class="font-mono font-medium" style="color: var(--text-primary);">${ row.wpm } WPM</span>+ <span>${ t('stats.wpm') }</span>+ <span class="font-mono font-medium" style="color: var(--text-primary);">${ row.wpm } ${ t('stats.wpm') }</span></div></div>@@ -73,14 +73,14 @@<div v-if="recordingStats.silence.seconds > 0"class="bg-[var(--bg-tertiary)]/50 border border-[var(--border-secondary)] rounded-md p-3"><div class="flex items-center justify-between gap-2 mb-2">- <span class="t-meta italic">Silence</span>+ <span class="t-meta italic">${ t('stats.silence') }</span><span class="t-meta font-mono" v-text="recordingStats.silence.durationLabel"></span></div><div class="h-1.5 w-full rounded-full bg-[var(--bg-tertiary)] overflow-hidden mb-2"><div class="h-full" :style="{ width: recordingStats.silence.pct.toFixed(1) + '%', background: 'var(--text-muted)' }"></div></div><div class="t-meta text-center">- ${ recordingStats.silence.pct.toFixed(1) }% of total+ ${ recordingStats.silence.pct.toFixed(1) }% ${ t('stats.pctAudio') }</div></div></div>@@ -89,7 +89,7 @@<div v-else class="empty"><div class="empty__icon"><i class="fas fa-chart-bar"></i></div>- <div class="empty__title">No stats yet</div>- <div class="empty__body">Stats appear once this recording has been transcribed with speaker diarization and segment timestamps.</div>+ <div class="empty__title">${ t('stats.noStatsTitle') }</div>+ <div class="empty__body">${ t('stats.noStatsBody') }</div></div></div>diff --git a/templates/components/progress-popup.html b/templates/components/progress-popup.htmlindex 83aa94a8..38ef637e 100644--- a/templates/components/progress-popup.html+++ b/templates/components/progress-popup.html@@ -23,7 +23,7 @@<div class="flex items-center justify-between"><div class="flex items-center gap-2 min-w-0"><i class="fas fa-tasks text-sm text-gray-800 dark:text-white"></i>- <span class="font-medium text-sm text-gray-800 dark:text-white">Processing Queue</span>+ <span class="font-medium text-sm text-gray-800 dark:text-white">${ t('progressQueue.title') }</span><span class="text-xs bg-black dark:bg-white bg-opacity-20 dark:bg-opacity-20 px-1.5 py-0.5 rounded-full text-gray-800 dark:text-white font-medium">${totalProcessingCount}</span>@@ -31,7 +31,7 @@<div class="flex items-center gap-1 flex-shrink-0"><button v-if="allCompletedCount > 0" @click="clearAllCompleted()"class="px-1.5 py-0.5 text-xs bg-black dark:bg-white bg-opacity-10 dark:bg-opacity-20 hover:bg-opacity-20 dark:hover:bg-opacity-30 rounded transition-all text-gray-800 dark:text-white">- Clear+ ${ t('progressQueue.clear') }</button><button @click="progressPopupMinimized = !progressPopupMinimized"class="p-1 rounded hover:bg-black dark:hover:bg-white hover:bg-opacity-10 dark:hover:bg-opacity-20 transition-colors text-gray-800 dark:text-white">@@ -43,19 +43,24 @@</button></div></div>- <!-- Compact Summary Line -->+ <!-- Compact Summary Line.+ Each entry is "<count> <label>" — split into two interpolations+ because Vue's `${...}` delimiter parser can't see past a nested+ object literal like `{ count: ... }`, so we keep the count and+ the localized noun as separate interpolations and translate the+ label alone via progressQueue.*Short keys. --><div v-if="activeProgressItems.length > 0" class="text-xs text-gray-800 dark:text-white opacity-70 mt-1"><span v-if="activeProgressItems.filter(i => i.status === 'uploading').length > 0">- ${activeProgressItems.filter(i => i.status === 'uploading').length} uploading<span v-if="activeProgressItems.filter(i => i.status !== 'uploading').length > 0">, </span>+ ${ activeProgressItems.filter(i => i.status === 'uploading').length } ${ t('progressQueue.uploadingShort') }<span v-if="activeProgressItems.filter(i => i.status !== 'uploading').length > 0">, </span></span><span v-if="activeProgressItems.filter(i => i.status === 'transcribing').length > 0">- ${activeProgressItems.filter(i => i.status === 'transcribing').length} transcribing<span v-if="activeProgressItems.filter(i => ['summarizing', 'queued'].includes(i.status)).length > 0">, </span>+ ${ activeProgressItems.filter(i => i.status === 'transcribing').length } ${ t('progressQueue.transcribingShort') }<span v-if="activeProgressItems.filter(i => ['summarizing', 'queued'].includes(i.status)).length > 0">, </span></span><span v-if="activeProgressItems.filter(i => i.status === 'summarizing').length > 0">- ${activeProgressItems.filter(i => i.status === 'summarizing').length} summarizing<span v-if="activeProgressItems.filter(i => i.status === 'queued').length > 0">, </span>+ ${ activeProgressItems.filter(i => i.status === 'summarizing').length } ${ t('progressQueue.summarizingShort') }<span v-if="activeProgressItems.filter(i => i.status === 'queued').length > 0">, </span></span><span v-if="activeProgressItems.filter(i => i.status === 'queued').length > 0">- ${activeProgressItems.filter(i => i.status === 'queued').length} queued+ ${ activeProgressItems.filter(i => i.status === 'queued').length } ${ t('progressQueue.queuedShort') }</span></div></div>@@ -105,7 +110,7 @@<button v-if="item.status === 'ready' && item.clientId"@click="removeProgressItem(item)"class="text-[10px] text-red-500 hover:text-red-600">- <i class="fas fa-times"></i> Cancel+ <i class="fas fa-times"></i> ${ t('progressQueue.cancel') }</button></div></div>@@ -115,7 +120,7 @@<div v-if="failedProgressItems.length > 0" class="mt-2"><div class="text-[10px] font-semibold text-red-500 uppercase tracking-wider mb-1 flex items-center gap-1"><i class="fas fa-exclamation-triangle"></i>- Failed (${failedProgressItems.length})+ ${ t('progressQueue.failed') } (${failedProgressItems.length})</div><div v-for="item in failedProgressItems":key="item.id"@@ -145,12 +150,12 @@<div class="flex items-center gap-1"><button v-if="item.jobId" @click.stop="retryProgressItem(item)"class="p-1 rounded bg-blue-500/20 hover:bg-blue-500/40 transition-colors"- title="Retry">+ :title="t('progressQueue.retry')"><i class="fas fa-redo text-blue-500 text-[10px]"></i></button><button @click.stop="removeProgressItem(item)"class="p-1 rounded bg-red-500/20 hover:bg-red-500/40 transition-colors"- title="Delete">+ :title="t('progressQueue.delete')"><i class="fas fa-trash text-red-500 text-[10px]"></i></button></div>@@ -178,7 +183,7 @@<div v-if="completedProgressItems.length > 0" class="mt-2"><div class="text-[10px] font-semibold text-[var(--text-muted)] uppercase tracking-wider mb-1 flex items-center gap-1"><i class="fas fa-check-double"></i>- Completed (${completedProgressItems.length})+ ${ t('progressQueue.completed') } (${completedProgressItems.length})</div><div v-for="item in completedProgressItems":key="item.id"@@ -186,8 +191,8 @@class="px-2 py-1 bg-[var(--bg-tertiary)]/30 rounded-md flex items-center gap-2 hover:bg-[var(--bg-tertiary)]/50 cursor-pointer mb-1"><i class="fas fa-check-circle text-xs text-green-500"></i><span class="text-xs truncate flex-1 text-[var(--text-primary)]">${item.title}</span>- <i v-if="item.duplicateWarning" class="fas fa-copy text-xs text-amber-500" title="Duplicate file detected"></i>- <span class="text-[10px] px-1.5 py-0.5 rounded bg-green-500/20 text-green-500 font-medium">Done</span>+ <i v-if="item.duplicateWarning" class="fas fa-copy text-xs text-amber-500" :title="t('progressQueue.duplicateWarning')"></i>+ <span class="text-[10px] px-1.5 py-0.5 rounded bg-green-500/20 text-green-500 font-medium">${ t('progressQueue.done') }</span></div></div>@@ -195,7 +200,7 @@<div v-if="unifiedProgressItems.length === 0"class="text-center py-3 text-[var(--text-muted)] text-xs"><i class="fas fa-inbox text-lg mb-1 opacity-50"></i>- <p>No items in queue</p>+ <p>${ t('progressQueue.empty') }</p></div></div></div>diff --git a/templates/modals/reprocess-modal.html b/templates/modals/reprocess-modal.htmlindex d432f372..00e931ba 100644--- a/templates/modals/reprocess-modal.html+++ b/templates/modals/reprocess-modal.html@@ -5,7 +5,7 @@<i class="fas fa-sync-alt text-2xl text-[var(--text-accent)]"></i><div class="flex-1"><h3 class="modal-title" v-text="t('help.confirmReprocessingTitle')"></h3>- <div class="modal-subtitle capitalize">${ reprocessType } reprocessing</div>+ <div class="modal-subtitle">${ reprocessType === 'summary' ? t('reprocessModal.subtitleSummary') : t('reprocessModal.subtitleTranscription') }</div></div><button @click="cancelReprocess" class="modal-close" :title="t('buttons.close')"><i class="fas fa-times"></i></button></div>@@ -16,10 +16,10 @@<i class="fas fa-file-audio text-[var(--text-accent)] mt-1"></i><div class="flex-1 min-w-0"><h4 class="font-medium text-[var(--text-primary)] truncate" :title="reprocessRecording.title">- ${ reprocessRecording.title || 'Untitled Recording' }+ ${ reprocessRecording.title || t('reprocessModal.untitledRecording') }</h4><p class="text-sm text-[var(--text-muted)] mt-1">- Created: ${ new Date(reprocessRecording.created_at).toLocaleDateString() }+ ${ t('reprocessModal.createdPrefix') } ${ new Date(reprocessRecording.created_at).toLocaleDateString(window.i18n?.currentLocale || 'en') }</p></div></div>@@ -138,43 +138,43 @@<!-- Custom Prompt Options for Summary Reprocessing --><div v-if="reprocessType === 'summary'" class="space-y-4 pt-4 border-t border-[var(--border-primary)]">- <h4 class="text-md font-semibold text-[var(--text-secondary)]">Custom Summarization Prompt</h4>+ <h4 class="text-md font-semibold text-[var(--text-secondary)]">${ t('reprocessModal.customSummaryPrompt') }</h4><!-- Prompt Source Selection --><div>- <label class="block text-sm font-medium text-[var(--text-muted)] mb-2">Prompt Source</label>+ <label class="block text-sm font-medium text-[var(--text-muted)] mb-2">${ t('reprocessModal.promptSource') }</label><div class="space-y-2"><label class="flex items-center space-x-2 cursor-pointer"><input type="radio" v-model="summaryReprocessPromptSource" value="default" class="text-[var(--text-accent)]" name="promptSource">- <span class="text-sm text-[var(--text-secondary)]">Use default prompt</span>+ <span class="text-sm text-[var(--text-secondary)]">${ t('reprocessModal.useDefaultPrompt') }</span></label><label class="flex items-center space-x-2 cursor-pointer" v-if="tagsWithCustomPrompts.length > 0"><input type="radio" v-model="summaryReprocessPromptSource" value="tag" class="text-[var(--text-accent)]" name="promptSource">- <span class="text-sm text-[var(--text-secondary)]">Use prompt from tag</span>+ <span class="text-sm text-[var(--text-secondary)]">${ t('reprocessModal.usePromptFromTag') }</span></label><label class="flex items-center space-x-2 cursor-pointer"><input type="radio" v-model="summaryReprocessPromptSource" value="custom" class="text-[var(--text-accent)]" name="promptSource">- <span class="text-sm text-[var(--text-secondary)]">Enter custom prompt</span>+ <span class="text-sm text-[var(--text-secondary)]">${ t('reprocessModal.enterCustomPrompt') }</span></label></div></div><!-- Tag Selection (shown when 'tag' is selected) --><div v-if="summaryReprocessPromptSource === 'tag' && tagsWithCustomPrompts.length > 0">- <label for="reprocess-tag-select" class="block text-sm font-medium text-[var(--text-muted)] mb-2">Select Tag</label>+ <label for="reprocess-tag-select" class="block text-sm font-medium text-[var(--text-muted)] mb-2">${ t('reprocessModal.selectTag') }</label><select id="reprocess-tag-select" v-model="summaryReprocessSelectedTagId" class="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)] text-sm bg-[var(--bg-input)] text-[var(--text-primary)]">- <option value="">Select a tag...</option>+ <option value="">${ t('reprocessModal.selectTagPlaceholder') }</option><option v-for="tag in tagsWithCustomPrompts" :key="tag.id" :value="tag.id">${ tag.name }</option></select><div v-if="summaryReprocessSelectedTagId" class="mt-2 p-2 bg-[var(--bg-tertiary)] rounded text-xs text-[var(--text-muted)] max-h-20 overflow-y-auto">- <strong>Preview:</strong> ${ getTagPromptPreview(summaryReprocessSelectedTagId) }+ <strong>${ t('reprocessModal.previewLabel') }</strong> ${ getTagPromptPreview(summaryReprocessSelectedTagId) }</div></div><!-- Custom Prompt Textarea (shown when 'custom' is selected) --><div v-if="summaryReprocessPromptSource === 'custom'">- <label for="reprocess-custom-prompt" class="block text-sm font-medium text-[var(--text-muted)] mb-2">Custom Prompt</label>- <textarea id="reprocess-custom-prompt" v-model="summaryReprocessCustomPrompt" rows="4" class="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)] text-sm bg-[var(--bg-input)] text-[var(--text-primary)]" placeholder="Enter your custom summarization instructions..."></textarea>+ <label for="reprocess-custom-prompt" class="block text-sm font-medium text-[var(--text-muted)] mb-2">${ t('reprocessModal.customPromptLabel') }</label>+ <textarea id="reprocess-custom-prompt" v-model="summaryReprocessCustomPrompt" rows="4" class="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)] text-sm bg-[var(--bg-input)] text-[var(--text-primary)]" :placeholder="t('reprocessModal.customPromptPlaceholder')"></textarea></div>{# Apply mode toggle only for custom prompts. A selected tag@@ -204,7 +204,7 @@<!-- Info message when no tags with custom prompts exist --><div v-if="summaryReprocessPromptSource === 'tag' && tagsWithCustomPrompts.length === 0" class="text-xs text-[var(--text-muted)] italic">- No tags with custom prompts available. Create tags with custom prompts in the Account Settings.+ ${ t('reprocessModal.noTagsWithPromptsHint') }</div></div>@@ -250,7 +250,7 @@<button @click="cancelReprocess" class="btn btn--ghost">${ t('buttons.cancel') }</button><button @click="executeReprocess" class="btn btn--primary"><i class="fas fa-sync-alt"></i>- <span>Start Reprocessing</span>+ <span>${ t('buttons.startReprocessing') }</span></button></div></div>