Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Remove debug logs and add PWA i18n translations for install button
Murtaza Nasir4c1e2cb07e4f
diff --git a/static/js/modules/composables/ui.js b/static/js/modules/composables/ui.jsindex 9eba3558..dbfb4f4a 100644--- a/static/js/modules/composables/ui.js+++ b/static/js/modules/composables/ui.js@@ -815,19 +815,9 @@ export function useUI(state, utils, processedTranscription) {// --- Active Segment Tracking ---const handleAudioTimeUpdate = (event) => {- console.log('!!! handleAudioTimeUpdate FIRED !!!', event.target.currentTime);-const transcription = processedTranscription.value;- console.log('handleAudioTimeUpdate called', {- hasTranscription: !!transcription,- isJson: transcription?.isJson,- hasDialogue: transcription?.hasDialogue,- segmentCount: transcription?.simpleSegments?.length- });-if (!transcription || !transcription.isJson) {- console.log('Exiting early - no valid transcription');return;}diff --git a/static/locales/de.json b/static/locales/de.jsonindex 91b6ab0e..9e6edf87 100644--- a/static/locales/de.json+++ b/static/locales/de.json@@ -1019,6 +1019,17 @@"location": "Ort","attendees": "Teilnehmer"},+ "pwa": {+ "installApp": "App installieren",+ "installing": "Installiere...",+ "installed": "Erfolgreich installiert",+ "updateAvailable": "Update verfügbar",+ "offline": "Sie sind offline",+ "screenAwake": "Bildschirm bleibt während der Aufnahme wach",+ "screenAwakeFailed": "Bildschirm konnte nicht wach gehalten werden",+ "notificationPermissionDenied": "Benachrichtigungsberechtigung verweigert",+ "notificationsEnabled": "Benachrichtigungen aktiviert"+ },"tooltips": {"copyTranscript": "Transkript kopieren","downloadTranscriptWithTemplate": "Transkript mit Vorlage herunterladen",diff --git a/static/locales/en.json b/static/locales/en.jsonindex b4f1aba2..30b97d1f 100644--- a/static/locales/en.json+++ b/static/locales/en.json@@ -1016,6 +1016,17 @@"location": "Location","attendees": "Attendees"},+ "pwa": {+ "installApp": "Install App",+ "installing": "Installing...",+ "installed": "Installed successfully",+ "updateAvailable": "Update available",+ "offline": "You're offline",+ "screenAwake": "Screen will stay awake during recording",+ "screenAwakeFailed": "Could not keep screen awake",+ "notificationPermissionDenied": "Notification permission denied",+ "notificationsEnabled": "Notifications enabled"+ },"tooltips": {"copyTranscript": "Copy transcript","downloadTranscriptWithTemplate": "Download transcript with template",diff --git a/static/locales/es.json b/static/locales/es.jsonindex f396455b..4acf67ae 100644--- a/static/locales/es.json+++ b/static/locales/es.json@@ -1025,6 +1025,17 @@"location": "Ubicación","attendees": "Asistentes"},+ "pwa": {+ "installApp": "Instalar App",+ "installing": "Instalando...",+ "installed": "Instalado exitosamente",+ "updateAvailable": "Actualización disponible",+ "offline": "Estás desconectado",+ "screenAwake": "La pantalla permanecerá activa durante la grabación",+ "screenAwakeFailed": "No se pudo mantener la pantalla activa",+ "notificationPermissionDenied": "Permiso de notificación denegado",+ "notificationsEnabled": "Notificaciones habilitadas"+ },"tooltips": {"copyTranscript": "Copiar transcripción","downloadTranscriptWithTemplate": "Descargar transcripción con plantilla",diff --git a/static/locales/fr.json b/static/locales/fr.jsonindex af275828..0eef8f2d 100644--- a/static/locales/fr.json+++ b/static/locales/fr.json@@ -1025,6 +1025,17 @@"location": "Lieu","attendees": "Participants"},+ "pwa": {+ "installApp": "Installer l'App",+ "installing": "Installation...",+ "installed": "Installé avec succès",+ "updateAvailable": "Mise à jour disponible",+ "offline": "Vous êtes hors ligne",+ "screenAwake": "L'écran restera actif pendant l'enregistrement",+ "screenAwakeFailed": "Impossible de garder l'écran actif",+ "notificationPermissionDenied": "Permission de notification refusée",+ "notificationsEnabled": "Notifications activées"+ },"tooltips": {"copyTranscript": "Copier la transcription","downloadTranscriptWithTemplate": "Télécharger la transcription avec modèle",diff --git a/static/locales/zh.json b/static/locales/zh.jsonindex fc043d85..6686744b 100644--- a/static/locales/zh.json+++ b/static/locales/zh.json@@ -1173,6 +1173,17 @@"location": "地点","attendees": "参与者"},+ "pwa": {+ "installApp": "安装应用",+ "installing": "安装中...",+ "installed": "安装成功",+ "updateAvailable": "有可用更新",+ "offline": "您处于离线状态",+ "screenAwake": "录音时屏幕将保持唤醒",+ "screenAwakeFailed": "无法保持屏幕唤醒",+ "notificationPermissionDenied": "通知权限被拒绝",+ "notificationsEnabled": "通知已启用"+ },"tooltips": {"copyTranscript": "复制转录","downloadTranscriptWithTemplate": "使用模板下载转录",diff --git a/templates/components/header.html b/templates/components/header.htmlindex 34dfabc7..17520e31 100644--- a/templates/components/header.html+++ b/templates/components/header.html@@ -30,9 +30,9 @@<button v-if="showInstallButton && !isPWAInstalled"@click="promptInstall"class="px-2 py-1.5 bg-green-600 text-white rounded-lg hover:bg-green-700 transition-colors text-sm sm:px-4 sm:py-2 sm:flex sm:items-center sm:gap-2"- title="Install Speakr">+ :title="t('pwa.installApp')"><i class="fas fa-download"></i>- <span class="hidden sm:inline">Install App</span>+ <span class="hidden sm:inline" v-text="t('pwa.installApp')"></span></button><!-- New Recording Button -->