Skip to content

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

Python

Complete v0.5.5 release with comprehensive documentation and internationalization

Murtaza Nasirda265cd2f4b6
diff --git a/.env.example b/.env.example
deleted file mode 100644
index 1c456831..00000000
--- a/.env.example
+++ /dev/null
@@ -1,60 +0,0 @@
-# .env
-
-TEXT_MODEL_BASE_URL=https://openrouter.ai/api/v1
-TEXT_MODEL_API_KEY=your_text_model_api_key_here
-# Choose a model compatible with function calling / JSON mode
-# Example: "openai/gpt-4o-mini" or "google/gemma-3-27b-it" are good if using openrouter
-TEXT_MODEL_NAME="openai/gpt-4o-mini"
-
-# Whisper Model Configuration
-TRANSCRIPTION_BASE_URL=http://your_local_api_url:port/v1/
-TRANSCRIPTION_API_KEY=your_transcription_api_key_here
-WHISPER_MODEL="Systran/faster-distil-whisper-large-v3"
-
-# Application Settings
-# The timezone for displaying dates and times in the UI.
-# Use a valid TZ database name (e.g., "America/New_York", "Europe/London", "UTC").
-TIMEZONE="UTC"
-
-# Set the logging level for the application.
-# Options: DEBUG, INFO, WARNING, ERROR
-LOG_LEVEL="INFO"
-
-# Set to "false" to disable new account registration
-ALLOW_REGISTRATION="false"
-
-# Max tokens for LLM responses (optional, defaults are set in app.py)
-SUMMARY_MAX_TOKENS="8000"
-CHAT_MAX_TOKENS="5000"
-
-# Large File Chunking Configuration (for endpoints with file size limits like OpenAI)
-# Enable automatic chunking for large files that exceed API limits
-ENABLE_CHUNKING="true"
-
-# Maximum chunk size in MB (default: 20MB for safety margin with 25MB limits)
-# Adjust based on your transcription endpoint's file size limit
-CHUNK_SIZE_MB="20"
-
-# Overlap between chunks in seconds to ensure no speech is lost at boundaries
-# Recommended: 3-5 seconds for natural speech
-CHUNK_OVERLAP_SECONDS="3"
-
-# Automated File Processing ("Black Hole" Directory Monitoring)
-# Enable automatic processing of audio files dropped into a monitored directory
-# ENABLE_AUTO_PROCESSING="true"
-
-# Directory to monitor for new audio files (inside container)
-# AUTO_PROCESS_WATCH_DIR="/data/auto-process"
-
-# How often to check for new files (in seconds)
-# AUTO_PROCESS_CHECK_INTERVAL="30"
-
-# Processing mode: admin_only, user_directories, or single_user
-# AUTO_PROCESS_MODE="admin_only"
-
-# For single_user mode: specify which username to assign all files to
-# AUTO_PROCESS_DEFAULT_USERNAME="your_username"
-
-# Models
-# openai/gpt-4o-mini
-# google/gemma-3-27b-it
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
new file mode 100644
index 00000000..8f7486ec
--- /dev/null
+++ b/.github/workflows/docs.yml
@@ -0,0 +1,62 @@
+name: Deploy Documentation
+
+on:
+ push:
+ branches: [ master, main ]
+ paths:
+ - 'docs/**'
+ - '.github/workflows/docs.yml'
+ workflow_dispatch:
+
+permissions:
+ contents: read
+ pages: write
+ id-token: write
+
+concurrency:
+ group: "pages"
+ cancel-in-progress: false
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Setup Python
+ uses: actions/setup-python@v5
+ with:
+ python-version: '3.11'
+
+ - name: Install MkDocs and dependencies
+ run: |
+ pip install --upgrade pip
+ pip install -r docs/requirements-docs.txt
+
+ - name: Build documentation
+ env:
+ CI: true # This enables git-revision-date plugin in CI
+ run: |
+ cd docs
+ # Update site_url for GitHub Pages if needed
+ if [ "${{ github.repository }}" != "murtaza-nasir/speakr" ]; then
+ sed -i "s|site_url:.*|site_url: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}|" mkdocs.yml
+ fi
+ mkdocs build --strict --site-dir _site
+
+ - name: Upload artifact
+ uses: actions/upload-pages-artifact@v3
+ with:
+ path: ./docs/_site
+
+ deploy:
+ environment:
+ name: github-pages
+ url: ${{ steps.deployment.outputs.page_url }}
+ runs-on: ubuntu-latest
+ needs: build
+ steps:
+ - name: Deploy to GitHub Pages
+ id: deployment
+ uses: actions/deploy-pages@v4
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000..c326fe41
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,42 @@
+venv/
+__pycache__/
+instance/
+uploads/
+*.db
+*.db-journal
+__pycache__/
+*.pyc
+*.log
+.env
+.migrate/
+project_files.md
+*.md
+notes.md
+docker-compose.yml
+changes.txt
+
+!README.md
+!DEPLOYMENT_GUIDE.md
+!docs/**/*.md
+docker-compose.dev.yml
+.clinerules
+temp/
+.claude/
+plan/
+
+# Offline vendor dependencies (downloaded during Docker build)
+static/vendor/
+
+# Docs build artifacts
+docs/_site/
+docs/.jekyll-cache/
+docs/README.md
+site/
+.cache/
+docs/overrides/.cache/
+
+# Documentation deployment files (examples only)
+docs/.github-deploy.yml
+
+# Documentation conversion scripts (one-time use)
+scripts/convert_to_mkdocs.py
diff --git a/Dockerfile b/Dockerfile
index bd88f252..e1ecc339 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -12,7 +12,19 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
-# Copy application code
+# Create directory structure for vendor files
+RUN mkdir -p /app/static/vendor
+
+# Copy only the scripts needed for downloading dependencies
+COPY scripts/download_offline_deps.py scripts/
+
+# Install requests and download vendor dependencies BEFORE copying all code
+# This allows better Docker layer caching - vendor deps won't re-download on code changes
+RUN pip install --no-cache-dir requests && \
+ python scripts/download_offline_deps.py && \
+ echo "✓ Vendor dependencies downloaded successfully"
+
+# Now copy the rest of the application code
COPY . .
# Create necessary directories
diff --git a/README.md b/README.md
index 04b0e28b..3e99a126 100644
--- a/README.md
+++ b/README.md
@@ -3,509 +3,172 @@
</div>
<h1 align="center">Speakr</h1>
-<p align="center">Self-hosted, intelligent note-taking for meetings and recordings</p>
+<p align="center">Self-hosted AI transcription and intelligent note-taking platform</p>
<p align="center">
<a href="https://www.gnu.org/licenses/agpl-3.0"><img alt="AGPL v3" src="https://img.shields.io/badge/License-AGPL_v3-blue.svg"></a>
<a href="https://github.com/murtaza-nasir/speakr/actions/workflows/docker-publish.yml"><img alt="Docker Build" src="https://github.com/murtaza-nasir/speakr/actions/workflows/docker-publish.yml/badge.svg"></a>
+ <a href="https://hub.docker.com/r/learnedmachine/speakr"><img alt="Docker Pulls" src="https://img.shields.io/docker/pulls/learnedmachine/speakr"></a>
</p>
-> Speakr is an intelligent, self-hosted web application that transforms your audio recordings into organized, searchable, and insightful notes. By running on your own server, it ensures your sensitive conversations and data remain completely private.
-
-> Designed for a wide range of uses, Speakr is trusted by professionals for meeting minutes, by therapists for session notes, by students for lecture capture, and even for transcribing D&D sessions. It automatically transcribes audio with speaker identification, generates concise summaries, and provides an AI chat interface to interact with your content.
-
-<div align="center">
- <img src="static/img/main.png" alt="Speakr Main Interface" width="750"/>
-</div>
-
----
-
-## What's New?
-
-### Latest Release (Version 0.5.1)
-* **Inquire Mode (Experimental):** Revolutionary AI-powered search across all your recordings! Ask questions like "What decisions were made about the marketing budget?" and get intelligent answers with context from relevant conversations. Perfect for finding insights across multiple meetings, interviews, or sessions.
-* **Advanced Tagging System:** Organize recordings with multiple tags, each with custom summarization prompts and ASR defaults
-* **Enhanced ASR Integration:** Configure language and speaker detection directly from the UI with automatic participant extraction
-* **Word Document Export:** Download summaries and notes as beautifully formatted .docx files
-* **Tag-based Search:** Filter recordings instantly using tags (e.g., `tag:meeting date:2025`)
-* **Improved UI:** Better theme consistency, reorganized layouts with icons, and compact responsive design
-* **Configurable Processing:** Respect chunk size settings and improved audio format handling
-
-<details>
-<summary><strong>Previous Version History</strong></summary>
-
-### Version 0.4.2
-* **Large File Chunking Support:** Automatically splits large audio files to work with transcription services that have file size limits (e.g., OpenAI's 25MB limit)
-* **Optimized File Processing:** Improved efficiency by minimizing file conversions and using compressed formats
-* **Enhanced Security:** Strengthened CSRF protection and fixed session timeout issues
-* **Improved Recording Reliability:** Addressed several bugs related to in-browser recording
-
-### Version 0.4.1
-* **Secure Sharing System:** Share transcriptions via public links with customizable permissions
-* **Enhanced Recording & Note-Taking:** Redesigned recording interface with a real-time notepad
-* **Advanced Speaker Diarization:** AI-powered speaker detection and saved speaker profiles
-* **"Black hole" Directory:** Feature for automatic, hands-free audio file processing
-* **Transcript Editing:** Manually edit and correct transcriptions
-* **Clickable Timestamps:** Navigate audio by clicking timestamps in the transcript
-* **Streaming Chat Responses:** More interactive and responsive AI chat
-
-</details>
-
----
-## Screenshots
-
-
-<table align="center" style="width:100%;" border="0" cellpadding="10" cellspacing="0">
- <tr>
- <td align="center" width="50%">
- <img src="static/img/main2.png" alt="Main" width="90%"/>
- </td>
- <td align="center" width="50%">
- <img src="static/img/multilingual-support.png" alt="Multilingual" width="90%"/>
- </td>
- </tr>
-</table>
-
----
-<details><summary><strong>Transcription & chat</strong></summary>
<p align="center">
- <img src="static/img/transcription-chat-bubble-view.png" alt="Transcription and Chat" width="400"/>
- <br>
- <em>Integrated Chat</em>
+ <a href="https://murtaza-nasir.github.io/speakr">Documentation</a> •
+ <a href="https://murtaza-nasir.github.io/speakr/getting-started">Quick Start</a> •
+ <a href="https://murtaza-nasir.github.io/speakr/screenshots">Screenshots</a> •
+ <a href="https://hub.docker.com/r/learnedmachine/speakr">Docker Hub</a> •
+ <a href="https://github.com/murtaza-nasir/speakr/releases">Releases</a>
</p>
-</details>
-<details><summary><strong>Tag based custom summarization prompts (tags)</strong></summary>
-<p align="center">
- <img src="static/img/tags.png" alt="Transcription and Chat" width="400"/>
- <br>
- <em>Create tags for different use-cases (meetings, gamenight, patient interview, etc.) for quick customized summaries</em>
-</p></details>
-<details><summary><strong>Light & dark</strong></summary>
-<table align="center" style="width:100%;" border="0" cellpadding="10" cellspacing="0">
- <tr>
- <td align="center" width="50%">
- <img src="static/img/light-mode.png" alt="Light Mode" width="90%"/>
- <br><em>Light</em>
- </td>
- <td align="center" width="50%">
- <img src="static/img/dark-mode.png" alt="Dark Mode" width="90%"/>
- <br><em>Dark</em>
- </td>
- </tr>
-</table>
-</details>
-
-<details><summary><strong>Transcription views</strong></summary>
-<table align="center" style="width:100%;" border="0" cellpadding="10" cellspacing="0">
- <tr>
- <td align="center" width="50%">
- <img src="static/img/simple-transcription-view.png" alt="Simple View" width="90%"/>
- <br><em>Simple</em>
- </td>
- <td align="center" width="50%">
- <img src="static/img/transcription-bubble-view.png" alt="Bubble View" width="90%"/>
- <br><em>Bubble</em>
- </td>
- </tr>
-</table>
-</details>
-
-<details><summary><strong>Speaker identification</strong></summary>
-<table align="center" style="width:100%;" border="0" cellpadding="10" cellspacing="0">
- <tr>
- <td align="center" width="33%">
- <img src="static/img/intuitive-speaker-identification.png" alt="AI-assisted" width="90%"/>
- <br><em>AI-assisted</em>
- </td>
- <td align="center" width="33%">
- <img src="static/img/manual-auto-speaker-identification.png" alt="Manual & Auto" width="90%"/>
- <br><em>Manual & Auto</em>
- </td>
- <td align="center" width="33%">
- <img src="static/img/speaker-suggestions.png" alt="Suggestions" width="90%"/>
- <br><em>Saved Suggestions</em>
- </td>
- </tr>
-</table>
-</details>
-
-<details><summary><strong>Recordings & notes</strong></summary>
-<table align="center" style="width:100%;" border="0" cellpadding="10" cellspacing="0">
- <tr>
- <td align="center" width="33%">
- <img src="static/img/rec1.png" alt="Options" width="90%"/>
- <br><em>Recording Options</em>
- </td>
- <td align="center" width="33%">
- <img src="static/img/rec2.png" alt="Mic" width="90%"/>
- <br><em>Mic/System Audio</em>
- </td>
- <td align="center" width="33%">
- <img src="static/img/rec3.png" alt="Both" width="90%"/>
- <br><em>Mic + System Audio</em>
- </td>
- </tr>
-</table>
-</details>
---
-## Core Features
+## Overview
-* **Self-Hosted and Private:** Keep full control over your data by hosting Speakr on your own server.
-* **Inquire Mode (Experimental):** Search and chat across all your recordings using AI-powered semantic search. Ask questions about any topic and get intelligent answers with relevant context from your entire audio library.
-* **Advanced Transcription & Diarization:** Get accurate transcripts with optional AI-powered speaker identification (diarization) to know who said what.
-* **AI-Powered Insights:** Automatically generate titles and summaries for your recordings. Use the integrated chat to ask questions and pull insights directly from the transcript.
-* **Install as a PWA App:** Install on your phone for quick and easy recordings and note capture.
-* **Versatile Recording & Upload:** Upload existing audio files or record directly in the browser or PWA app. Capture audio from your microphone, your system's audio (e.g., for an online meeting), or both simultaneously.
-* **Automated Processing:** Designate a "black hole" directory for drag-and-drop batch processing of audio files.
-* **Secure Sharing:** Create shareable links for your transcripts with granular controls, allowing you to include or exclude summaries and notes.
-* **Customizable AI:** Configure the specific AI models, API endpoints (compatible with OpenAI, OpenRouter, local models), and custom prompts for summarization and chat.
-* **Multi-User Support:** Includes a complete user management system with an admin dashboard.
+Speakr transforms your audio recordings into organized, searchable, and intelligent notes. Built for privacy-conscious teams and individuals, it runs entirely on your own infrastructure, ensuring your sensitive conversations remain completely private.
-<table align="center" style="width:100%;" border="0" cellpadding="10" cellspacing="0">
- <tr>
- <td align="center" width="33%">
- <img src="static/img/rec1.png" alt="Transcription and Chat" width="90%"/>
- </td>
- <td align="center" width="33%">
- <img src="static/img/rec3.png" alt="Speaker Identification" width="90%"/>
- </td>
- <td align="center" width="33%">
- <img src="static/img/intuitive-speaker-identification.png" alt="Speaker Identification" width="90%"/>
- </td>
- </tr>
-</table>
-
----
-
-## Getting Started
-
-The recommended setup method uses Docker, which is simple and fast.
-
-<details>
-<summary><strong>Easy Setup: Docker Compose (Recommended)</strong></summary>
-
-You only need Docker installed for this method; you do not need to clone the repository.
-
-1. **Create `docker-compose.yml`**
- Create a file named `docker-compose.yml` and add the following content:
- ```yaml
- services:
- app:
- image: learnedmachine/speakr:latest
- container_name: speakr
- restart: unless-stopped
- ports:
- - "8899:8899"
- env_file:
- - .env
- volumes:
- - ./uploads:/data/uploads
- - ./instance:/data/instance
- ```
-
-2. **Create Configuration (`.env`) File**
- Create a file named `.env` in the same directory. Your configuration will depend on whether you need speaker identification (diarization).
-
- * **Option A: Standard Whisper API (No Speaker Diarization)**
- This is the simplest method and works with any OpenAI Whisper-compatible API (like OpenAI, OpenRouter, or local LLMs).
-
- ```dotenv
- # --- Text Generation Model (uses /chat/completions endpoint) ---
- TEXT_MODEL_BASE_URL=[https://openrouter.ai/api/v1](https://openrouter.ai/api/v1)
- TEXT_MODEL_API_KEY=your_openrouter_api_key
- TEXT_MODEL_NAME=openai/gpt-4o-mini
-
- # --- Transcription Service (uses /audio/transcriptions endpoint) ---
- TRANSCRIPTION_BASE_URL=[https://api.openai.com/v1](https://api.openai.com/v1)
- TRANSCRIPTION_API_KEY=your_openai_api_key
- WHISPER_MODEL=whisper-1
-
- # --- Large File Chunking (for endpoints with file size limits) ---
- ENABLE_CHUNKING=true
- CHUNK_LIMIT=20MB # Size-based chunking (legacy CHUNK_SIZE_MB also works)
- # CHUNK_LIMIT=1200s # Alternative: Duration-based chunking (20 minutes)
-
- # --- Application Settings ---
- ALLOW_REGISTRATION=false
- ADMIN_USERNAME=admin
- ADMIN_PASSWORD=changeme
-
- # --- Inquire Mode (Experimental - AI search across all recordings) ---
- # ENABLE_INQUIRE_MODE=true
-
- # --- Docker Settings ---
- SQLALCHEMY_DATABASE_URI=sqlite:////data/instance/transcriptions.db
- UPLOAD_FOLDER=/data/uploads
- ```
-
- * **Option B: ASR Webservice (With Speaker Diarization)**
- This method enables speaker identification but requires running a separate ASR webservice container. See the **Advanced Configuration** section below for details on setting up the ASR service.
-
- ```dotenv
- # --- Text Generation Model (uses /chat/completions endpoint) ---
- TEXT_MODEL_BASE_URL=[https://openrouter.ai/api/v1](https://openrouter.ai/api/v1)
- TEXT_MODEL_API_KEY=your_openrouter_api_key
- TEXT_MODEL_NAME=openai/gpt-4o-mini
-
- # --- Transcription Service (uses /asr endpoint) ---
- USE_ASR_ENDPOINT=true
- ASR_BASE_URL=http://your_asr_host:9000 # URL of your running ASR webservice
- # Speaker diarization is automatically enabled with ASR
- # Optional overrides (defaults shown):
- # ASR_MIN_SPEAKERS=1
- # ASR_MAX_SPEAKERS=5
-
- # --- Application Settings ---
- ALLOW_REGISTRATION=false
- ADMIN_USERNAME=admin
- ADMIN_PASSWORD=changeme
-
- # --- Inquire Mode (Experimental - AI search across all recordings) ---
- # ENABLE_INQUIRE_MODE=true
-
- # --- Docker Settings ---
- SQLALCHEMY_DATABASE_URI=sqlite:////data/instance/transcriptions.db
- UPLOAD_FOLDER=/data/uploads
- ```
-
-3. **Start the Application**
- After editing your `.env` file with your API keys and settings, run the following command:
- ```bash
- docker compose up -d
- ```
- Access the application at `http://localhost:8899`. The admin user will be created on the first run.
-
-</details>
-
-<details>
-<summary><strong>Advanced Setup: Build from Source</strong></summary>
-
-Follow these steps if you want to modify the code or build the Docker image yourself.
-
-1. **Clone the Repository:**
- ```bash
- git clone [https://github.com/murtaza-nasir/speakr.git](https://github.com/murtaza-nasir/speakr.git)
- cd speakr
- ```
-2. **Create Configuration Files:**
- Copy the example files. Use `config/env.whisper.example` for the standard API method or `config/env.asr.example` for the ASR webservice method.
- ```bash
- cp docker-compose.example.yml docker-compose.yml
- cp config/env.whisper.example .env # Or cp config/env.asr.example .env
- ```
- Edit the `.env` file with your custom settings and API keys.
-
-3. **Build and Start:**
- ```bash
- docker compose up -d --build
- ```
-</details>
-
----
-
-## Usage Guide
-
-1. **Login:** Access the application (e.g., `http://localhost:8899`) and log in. The admin account is created from the `.env` variables on the first launch.
-2. **Set Preferences (Recommended):** Navigate to your **Account** page to set your default language, customize the AI summarization prompt, and add professional context to improve chat results.
-3. **Add a Recording:**
- * **Upload:** Drag and drop an audio file onto the dashboard or use the **New Recording** page.
- * **Record:** Use the in-browser recorder. You can record your mic, system audio, or both. **Note:** To capture system audio (e.g., from a meeting), you must share a **browser tab** or your **entire screen** and ensure the **"Share audio"** checkbox is enabled.
- * **Automated:** If enabled, simply drop files into the monitored "black hole" directory.
-4. **Interact with Your Transcript:**
- * From the gallery, click a recording to view its details.
- * Read the transcript, listen to the audio, and review the AI-generated summary.
- * Edit metadata like titles and participants.
- * Use the **Chat** panel to ask questions about the content.
-5. **Identify Speakers (Diarization):**
- * If you used the ASR method with diarization enabled, click the **Identify Speakers** button.
- * In the modal, assign names to the detected speakers (e.g., `SPEAKER 00`, `SPEAKER 01`). You can use the **Auto Identify** feature to let the AI suggest names based on the conversation.
-6. **Use Inquire Mode (Experimental - optional):**
- * **Enable it first:** Uncomment `ENABLE_INQUIRE_MODE=true` in your `.env` file and restart the application
- * Click the **Inquire** button in the header to enter semantic search mode
- * Ask questions like "What were the main action items discussed?" or "Who mentioned the budget concerns?"
- * The AI will search across all your recordings and provide answers with relevant context
- * Use filters to search specific recordings, speakers, or date ranges
- * Perfect for finding insights across multiple meetings or discovering patterns in your conversations
----
-<details>
-<summary><strong>Advanced Tagging System</strong></summary>
-Speakr's tagging system allows you to organize recordings and customize their processing with tag-specific prompts and settings. Tags can be assigned to recordings to categorize them (e.g., "Meeting", "Interview", "Legal", "Medical") and each tag can have its own custom summarization prompt and ASR defaults.
-
-### Key Features
-
-#### Custom Summarization Prompts
-Each tag can have its own custom prompt that gets applied automatically when generating summaries. This is incredibly powerful for different use cases:
-- **Legal depositions** need case synopsis and key issues
-- **Medical consultations** need symptoms, diagnosis, and treatment plans
-- **Team meetings** need action items and decisions
-- **Interviews** need candidate assessment and key qualifications
-
-#### Combining Multiple Tags
-You can assign multiple tags to a recording, and their custom prompts will be combined in priority order. For example:
-- Tag 1: "Legal" - Adds legal formatting requirements
-- Tag 2: "Deposition" - Adds deposition-specific sections
-- Tag 3: "Urgent" - Adds priority flagging
-
-The prompts are merged based on tag selection order, allowing you to build complex summarization workflows from modular tag components.
-
-#### ASR Configuration per Tag
-Tags can also define default settings for the ASR service:
-- **Language**: Set a specific language for transcription (e.g., "Spanish" for all "Cliente" tagged recordings)
-- **Speaker Count**: Define min/max speakers (e.g., exactly 2 speakers for "Interview" tags)
-
-### Configuration Precedence
-
-Settings are applied in this order (highest to lowest precedence):
-1. **Upload Screen Advanced Options** - User's manual selections in the UI
-2. **Tag Defaults** - Settings configured in the tag
-3. **Environment Variables** - System-wide defaults from `.env` file
-4. **Auto-detection** - ASR service's automatic detection
-
-This hierarchy ensures flexibility while maintaining sensible defaults.
-
-### Writing Effective Summarization Prompts
-
-#### Best Practices
-1. **Be Specific and Detailed**: Don't just ask for a "summary" - specify exactly what you want
-2. **Provide Structure**: Define clear sections and formatting
-3. **Include Examples**: Show the AI exactly how you want the output formatted
-4. **Request Completeness**: Ask for "all important nuances" to avoid missing details
-
-#### Example Prompts
+<div align="center">
+ <img src="static/img/main.png" alt="Speakr Main Interface" width="750"/>
+</div>
-**Legal Deposition Prompt:**
-```
-Summarize this transcript in extreme detail. Identify the key issues discussed.
-First, give me the case synopsis. Then give me the minutes. Then, give me the
-key issues discussed. Then, any key takeaways. Then, any next steps. Then,
-all important things that I didn't ask for but that need to be recorded.
-Make sure every important nuance is covered.
+## Key Features
-Example Format:
-## Case: ABC vs XYZ
-The case is about [brief description]. The synopsis is [detailed overview].
+- **Smart Recording & Upload** - Record directly in browser or upload existing audio files
+- **AI Transcription** - High-accuracy transcription with speaker identification
+- **Interactive Chat** - Ask questions about your recordings and get AI-powered answers
+- **Inquire Mode** - Semantic search across all recordings using natural language
+- **Internationalization** - Full support for English, Spanish, French, German, and Chinese
+- **Smart Tagging** - Organize with tags that include custom AI prompts
+- **Secure Sharing** - Generate secure links to share recordings
+- **Beautiful Themes** - Light and dark modes with customizable color schemes
-**Participants:**
-- [Name 1] - [Role]
-- [Name 2] - [Role]
+## Quick Start
----
-### Minutes
+### Using Docker (Recommended)
-**1. Introduction and Overview:**
-- [Participant] expressed [key point with full context]
-- Discussion regarding [topic with specific details]
+```bash
+# Create project directory
+mkdir speakr && cd speakr
-### Key Issues Discussed
-1. **[Issue Title]:** [Comprehensive description with all nuances]
-2. **[Issue Title]:** [Full details including participant positions]
+# Download configuration
+wget https://raw.githubusercontent.com/murtaza-nasir/speakr/master/docker-compose.example.yml -O docker-compose.yml
+wget https://raw.githubusercontent.com/murtaza-nasir/speakr/master/env.whisper.example -O .env
-### Key Takeaways
-- [Specific, actionable takeaway with context]
+# Configure your API keys
+nano .env # Add your OpenAI/OpenRouter API keys
-### Next Steps
-- [Concrete action item with responsible party and timeline]
+# Launch Speakr
+docker compose up -d
-### Additional Important Information
-- [Any critical details not covered above]
+# Access at http://localhost:8899
```
-**Meeting Minutes Prompt:**
-```
-Summarize this transcript in extreme detail. First, give me minutes. Then,
-give me the key issues discussed. Then, any key takeaways. Then, any next
-steps. Then, all important things that I didn't ask for but that need to be
-recorded. Make sure every important nuance is covered.
+**[View Full Installation Guide →](https://murtaza-nasir.github.io/speakr/getting-started)**
-Example Format:
-### Minutes
+## Documentation
-**Meeting Participants:**
-- [Name] - [Department/Role]
-- [Name] - [Department/Role]
+Complete documentation is available at **[murtaza-nasir.github.io/speakr](https://murtaza-nasir.github.io/speakr)**
-**Date:** [Meeting Date]
-**Duration:** [Length]
+- [Getting Started](https://murtaza-nasir.github.io/speakr/getting-started) - Quick setup guide
+- [User Guide](https://murtaza-nasir.github.io/speakr/user-guide/) - Learn all features
+- [Admin Guide](https://murtaza-nasir.github.io/speakr/admin-guide/) - Administration and configuration
+- [Troubleshooting](https://murtaza-nasir.github.io/speakr/troubleshooting) - Common issues and solutions
+- [FAQ](https://murtaza-nasir.github.io/speakr/faq) - Frequently asked questions
----
+## Latest Release (v0.5.5)
-**1. Introduction and Overview:**
-- [Participant] opened the meeting by [specific details]
-- Key objectives outlined: [list each]
+### Highlights
+- **Full Internationalization** - Complete multi-language interface
+- **Enhanced Audio Quality** - 128kbps MP3 processing for better accuracy
+- **Recording Disclaimers** - Configurable legal notices for compliance
+- **Advanced Filtering** - Multi-tag selection with date presets
+- **Documentation Overhaul** - Professional docs with MkDocs Material
+- **Speakers Management** - New interface for managing speaker profiles
-**2. [Topic Name]:**
-- [Participant] presented [detailed summary of presentation]
-- Discussion points raised:
- • [Specific point with who raised it]
- • [Counter-arguments or agreements]
-- Decision reached: [Exact decision with rationale]
+## Screenshots
-### Key Issues Discussed
-1. **[Issue]:** [Complete description with all perspectives presented]
-2. **[Issue]:** [Full context including constraints and opportunities]
+<table align="center" border="0">
+ <tr>
+ <td align="center">
+ <img src="docs/assets/images/screenshots/Filters.png" alt="Main Dashboard" width="400"/>
+ <br><em>Advanced Filtering Dashboard</em>
+ </td>
+ <td align="center">
+ <img src="docs/assets/images/screenshots/inquire mode.png" alt="Inquire Mode" width="400"/>
+ <br><em>AI-Powered Semantic Search</em>
+ </td>
+ </tr>
+ <tr>
+ <td align="center">
+ <img src="docs/assets/images/screenshots/recording view with simple transcription view and chat visible.png" alt="Transcription with Chat" width="400"/>
+ <br><em>Interactive Transcription & Chat</em>
+ </td>
+ <td align="center">
+ <img src="docs/assets/images/screenshots/Multilingual.png" alt="Multi-language Support" width="400"/>
+ <br><em>Full Internationalization</em>
+ </td>
+ </tr>
+</table>
-### Key Takeaways
-- [Specific conclusion with supporting details]
-- [Important realization or learning]
+**[View Full Screenshot Gallery →](https://murtaza-nasir.github.io/speakr/screenshots)**
-### Next Steps
-- [Action item] - Owner: [Name] - Due: [Date]
-- [Action item] - Owner: [Name] - Due: [Date]
+## Technology Stack
-### Additional Notes
-- [Any off-topic but important mentions]
-- [Future considerations discussed]
-```
+- **Backend**: Python/Flask with SQLAlchemy
+- **Frontend**: Vue.js 3 with Tailwind CSS
+- **AI/ML**: OpenAI Whisper, OpenRouter, Ollama support
+- **Database**: SQLite (default) or PostgreSQL
+- **Deployment**: Docker, Docker Compose
-#### Tips for Custom Prompts
-- **Use consistent formatting** with markdown headers and bold text
-- **Request specific information** relevant to your use case
-- **Include participant identification** when speaker diarization is enabled
-- **Ask for "all important nuances"** to ensure nothing is missed
-- **Provide clear examples** of the desired output format
-- **Structure sections logically** for easy scanning
-- **Include catch-all sections** like "Additional Important Information"
+## Roadmap
-### Setting Up Tags
+### Near-term (Q1 2025)
+- Bulk operations for recordings (mass delete, export, tagging)
+- Enhanced speaker profile management with voice signatures
+- Improved mobile experience with PWA enhancements
+- Real-time collaboration features
-1. **Create a Tag**: Go to Account Settings → Tag Management and create a new tag
-2. **Configure Custom Prompt** (optional): Add your detailed summarization prompt
-3. **Set ASR Defaults** (optional): Configure language and speaker settings
-4. **Apply to Recordings**: Select tags when uploading or recording
-5. **Combine Tags**: Select multiple tags to merge their prompts
+### Mid-term (Q2-Q3 2025)
+- Plugin system for custom integrations
+- Advanced analytics dashboard
+- Team workspaces with shared recordings
+- Automated workflow triggers
-Tags make Speakr very flexible, allowing you to maintain consistent formatting across similar recordings while adapting to different use cases with just a click.
-</details>
+### Long-term (2025+)
+- End-to-end encryption option
+- Federated deployment support
+- AI model fine-tuning interface
+- Enterprise SSO integration
----
-<details>
-<summary><strong>Advanced Configuration & Technical Details</strong></summary>
+## Contributing
-**For detailed deployment instructions and information about the various API's used, see the [Deployment Guide](docs/DEPLOYMENT_GUIDE.md#configuration-options)**
+We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.
-The recommended method is to use the pre-built Docker image, which is fast and simple. This is explained above.
+### How to Contribute
-## Automated File Processing
+1. **Fork the repository** and create your feature branch
+2. **Make your changes** following our coding standards
+3. **Test thoroughly** including edge cases
+4. **Submit a pull request** with clear description
-Speakr includes a powerful "black hole" directory monitoring feature that automatically processes audio files without manual uploads. This is perfect for batch processing scenarios where you want to drop files into a directory and have them automatically transcribed.
+### Development Setup
-### How It Works
+```bash
+# Clone the repository
+git clone https://github.com/murtaza-nasir/speakr.git
+cd speakr
-1. **File Monitoring:** Speakr monitors a designated directory for new audio files
-2. **Automatic Detection:** When new audio files are detected, they are automatically queued for processing
-3. **File Stability Check:** Files are checked for stability (not being written to) before processing
-4. **Automatic Processing:** Files are moved to the uploads directory and processed using your configured transcription settings
-5. **Database Integration:** Processed recordings appear in your gallery with the title "Auto-processed - [filename]"
+# Set up development environment
+docker-compose -f docker-compose.dev.yml up -d
-**For detailed instructions on setting this up, see the [Deployment Guide](docs/DEPLOYMENT_GUIDE.md#automated-file-processing-black-hole-directory)**
+# Install pre-commit hooks
+pip install pre-commit
+pre-commit install
+```
-</details>
+### Reporting Issues
------
+- [Report bugs](https://github.com/murtaza-nasir/speakr/issues)
+- [Request features](https://github.com/murtaza-nasir/speakr/discussions)
+- [Security vulnerabilities](mailto:[email protected])
## License
diff --git a/VERSION b/VERSION
index a076e7fb..4d5708f6 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-v0.5.1
\ No newline at end of file
+v0.5.5
\ No newline at end of file
diff --git a/app.py b/app.py
index de195301..e1a2b7a8 100644
--- a/app.py
+++ b/app.py
@@ -99,10 +99,11 @@ app_logger.setLevel(log_level)
app_logger.addHandler(handler)
# --- Rate Limiting Setup (will be configured after app creation) ---
+# TEMPORARILY INCREASED FOR TESTING - REVERT FOR PRODUCTION!
limiter = Limiter(
get_remote_address,
app=None, # Defer initialization
- default_limits=["200 per day", "50 per hour"]
+ default_limits=["5000 per day", "1000 per hour"] # Increased from 200/day, 50/hour for testing
)
def auto_close_json(json_string):
@@ -942,6 +943,7 @@ class User(db.Model, UserMixin):
recordings = db.relationship('Recording', backref='owner', lazy=True)
transcription_language = db.Column(db.String(10), nullable=True) # For ISO 639-1 codes
output_language = db.Column(db.String(50), nullable=True) # For full language names like "Spanish"
+ ui_language = db.Column(db.String(10), nullable=True, default='en') # For UI language preference (en, es, fr, zh)
summary_prompt = db.Column(db.Text, nullable=True)
name = db.Column(db.String(100), nullable=True)
job_title = db.Column(db.String(100), nullable=True)
@@ -1151,7 +1153,7 @@ class Recording(db.Model):
'created_at': local_datetime_filter(self.created_at),
'completed_at': local_datetime_filter(self.completed_at),
'processing_time_seconds': self.processing_time_seconds,
- 'meeting_date': self.meeting_date.isoformat() if self.meeting_date else None, # <-- ADDED: Include meeting_date
+ 'meeting_date': f"{self.meeting_date.isoformat()}T00:00:00" if self.meeting_date else None, # <-- ADDED: Include meeting_date with time component
'file_size': self.file_size,
'original_filename': self.original_filename, # <-- ADDED: Include original filename
'user_id': self.user_id,
@@ -1252,12 +1254,39 @@ def view_shared_recording(public_id):
'transcription': recording.transcription,
'summary': md_to_html(recording.summary) if share.share_summary else None,
'notes': md_to_html(recording.notes) if share.share_notes else None,
- 'meeting_date': recording.meeting_date.isoformat() if recording.meeting_date else None,
+ 'meeting_date': f"{recording.meeting_date.isoformat()}T00:00:00" if recording.meeting_date else None,
'mime_type': recording.mime_type
}
return render_template('share.html', recording=recording_data)
[email protected]('/api/recording/<int:recording_id>/share', methods=['GET'])
+@login_required
+def get_existing_share(recording_id):
+ """Check if a share already exists for this recording."""
+ recording = db.session.get(Recording, recording_id)
+ if not recording or recording.user_id != current_user.id:
+ return jsonify({'error': 'Recording not found or you do not have permission to view it.'}), 404
+
+ existing_share = Share.query.filter_by(
+ recording_id=recording.id,
+ user_id=current_user.id
+ ).order_by(Share.created_at.desc()).first()
+
+ if existing_share:
+ share_url = url_for('view_shared_recording', public_id=existing_share.public_id, _external=True)
+ return jsonify({
+ 'success': True,
+ 'exists': True,
+ 'share_url': share_url,
+ 'share': existing_share.to_dict()
+ }), 200
+ else:
+ return jsonify({
+ 'success': True,
+ 'exists': False
+ }), 200
+
@app.route('/api/recording/<int:recording_id>/share', methods=['POST'])
@login_required
def create_share(recording_id):
@@ -1271,7 +1300,33 @@ def create_share(recording_id):
data = request.json
share_summary = data.get('share_summary', True)
share_notes = data.get('share_notes', True)
+ force_new = data.get('force_new', False)
+ # Check if ANY share already exists for this recording by this user
+ # Get the most recent one if there are multiple
+ existing_share = Share.query.filter_by(
+ recording_id=recording.id,
+ user_id=current_user.id
+ ).order_by(Share.created_at.desc()).first()
+
+ if existing_share and not force_new:
+ # Update the share permissions if they've changed
+ if existing_share.share_summary != share_summary or existing_share.share_notes != share_notes:
+ existing_share.share_summary = share_summary
+ existing_share.share_notes = share_notes
+ db.session.commit()
+
+ # Return existing share info
+ share_url = url_for('view_shared_recording', public_id=existing_share.public_id, _external=True)
+ return jsonify({
+ 'success': True,
+ 'share_url': share_url,
+ 'share': existing_share.to_dict(),
+ 'existing': True,
+ 'message': 'Using existing share link for this recording'
+ }), 200
+
+ # Create new share (either no existing share or force_new is True)
share = Share(
recording_id=recording.id,
user_id=current_user.id,
@@ -1283,7 +1338,12 @@ def create_share(recording_id):
share_url = url_for('view_shared_recording', public_id=share.public_id, _external=True)
- return jsonify({'success': True, 'share_url': share_url, 'share': share.to_dict()}), 201
+ return jsonify({
+ 'success': True,
+ 'share_url': share_url,
+ 'share': share.to_dict(),
+ 'existing': False
+ }), 201
@app.route('/api/shares', methods=['GET'])
@login_required
@@ -1313,6 +1373,24 @@ def delete_share(share_id):
db.session.commit()
return jsonify({'success': True})
+# --- User Preferences API Endpoint ---
[email protected]('/api/user/preferences', methods=['POST'])
+@login_required
+def save_user_preferences():
+ """Save user preferences including UI language"""
+ data = request.json
+
+ if 'language' in data:
+ current_user.ui_language = data['language']
+
+ db.session.commit()
+
+ return jsonify({
+ 'success': True,
+ 'message': 'Preferences saved successfully',
+ 'ui_language': current_user.ui_language
+ })
+
# --- System Info API Endpoint ---
@app.route('/api/system/info', methods=['GET'])
def get_system_info():
@@ -1528,6 +1606,8 @@ with app.app_context():
app.logger.info("Added company column to user table")
if add_column_if_not_exists(engine, 'user', 'diarize', 'BOOLEAN'):
app.logger.info("Added diarize column to user table")
+ if add_column_if_not_exists(engine, 'user', 'ui_language', 'VARCHAR(10) DEFAULT "en"'):
+ app.logger.info("Added ui_language column to user table")
if add_column_if_not_exists(engine, 'recording', 'mime_type', 'VARCHAR(100)'):
app.logger.info("Added mime_type column to recording table")
if add_column_if_not_exists(engine, 'recording', 'completed_at', 'DATETIME'):
@@ -1610,6 +1690,15 @@ with app.app_context():
)
app.logger.info("Initialized admin_default_summary_prompt setting")
+ if not SystemSetting.query.filter_by(key='recording_disclaimer').first():
+ SystemSetting.set_setting(
+ key='recording_disclaimer',
+ value='',
+ description='Legal disclaimer shown to users before recording starts. Supports Markdown formatting. Leave empty to disable.',
+ setting_type='string'
+ )
+ app.logger.info("Initialized recording_disclaimer setting")
+
# Process existing recordings for inquire mode (chunk and embed them)
# Only run if inquire mode is enabled
if ENABLE_INQUIRE_MODE:
@@ -1674,7 +1763,10 @@ with app.app_context():
# --- API client setup for OpenRouter ---
# Use environment variables from .env
TEXT_MODEL_API_KEY = os.environ.get("TEXT_MODEL_API_KEY")
+# Strip any inline comments from URLs (users might add "# comment" in .env files)
TEXT_MODEL_BASE_URL = os.environ.get("TEXT_MODEL_BASE_URL", "https://openrouter.ai/api/v1")
+if TEXT_MODEL_BASE_URL:
+ TEXT_MODEL_BASE_URL = TEXT_MODEL_BASE_URL.split('#')[0].strip()
TEXT_MODEL_NAME = os.environ.get("TEXT_MODEL_NAME", "openai/gpt-3.5-turbo") # Default if not set
# Set up HTTP client with custom headers for OpenRouter app identification
@@ -1745,13 +1837,20 @@ def call_llm_completion(messages, temperature=0.7, response_format=None, stream=
raise
# Store details for the transcription client (potentially different)
-transcription_api_key = os.environ.get("TRANSCRIPTION_API_KEY", "cant-be-empty")
-transcription_base_url = os.environ.get("TRANSCRIPTION_BASE_URL", "https://openrouter.ai/api/v1")
+transcription_api_key = os.environ.get("TRANSCRIPTION_API_KEY", "")
+# Strip any inline comments from URLs (users might add "# comment" in .env files)
+transcription_base_url = os.environ.get("TRANSCRIPTION_BASE_URL", "")
+if transcription_base_url:
+ transcription_base_url = transcription_base_url.split('#')[0].strip()
# ASR endpoint configuration
USE_ASR_ENDPOINT = os.environ.get('USE_ASR_ENDPOINT', 'false').lower() == 'true'
+# Strip any inline comments from ASR_BASE_URL (users might add "# comment" in .env files)
ASR_BASE_URL = os.environ.get('ASR_BASE_URL')
+if ASR_BASE_URL:
+ # Remove everything after '#' if it exists (inline comment)
+ ASR_BASE_URL = ASR_BASE_URL.split('#')[0].strip()
# When using ASR endpoint, automatically enable diarization and set sensible defaults
# Users can still override these if needed, but they default to the expected ASR behavior
@@ -1802,9 +1901,24 @@ version = get_version()
app.logger.info(f"=== Speakr {version} Starting Up ===")
app.logger.info(f"Using LLM endpoint: {TEXT_MODEL_BASE_URL} with model: {TEXT_MODEL_NAME}")
-app.logger.info(f"Using Whisper API at: {transcription_base_url}")
+
+# Validate transcription service configuration
if USE_ASR_ENDPOINT:
- app.logger.info(f"ASR endpoint is enabled at: {ASR_BASE_URL}")
+ if not ASR_BASE_URL:
+ app.logger.error("ERROR: ASR endpoint is enabled but ASR_BASE_URL is not configured!")
+ app.logger.error("Please set ASR_BASE_URL in your .env file or disable USE_ASR_ENDPOINT")
+ sys.exit(1)
+ app.logger.info(f"Using ASR endpoint for transcription at: {ASR_BASE_URL}")
+else:
+ # Check if Whisper API is configured
+ if not transcription_base_url or not transcription_api_key:
+ app.logger.error("ERROR: No transcription service configured!")
+ app.logger.error("You must configure either:")
+ app.logger.error(" 1. ASR endpoint: Set USE_ASR_ENDPOINT=true and ASR_BASE_URL=<your-asr-url>")
+ app.logger.error(" 2. Whisper API: Set TRANSCRIPTION_BASE_URL and TRANSCRIPTION_API_KEY")
+ app.logger.error("Please check your .env file configuration.")
+ sys.exit(1)
+ app.logger.info(f"Using Whisper API at: {transcription_base_url}")
# --- Background Transcription & Summarization Task ---
def format_api_error_message(error_str):
@@ -2025,40 +2139,33 @@ def generate_summary_only_task(app_context, recording_id):
else:
transcript_text = formatted_transcription[:transcript_limit]
- language_directive = f"Please provide the summary in {user_output_language}." if user_output_language else ""
-
- # Build system message with summarization instructions
- system_message_content = "You are an AI assistant that generates comprehensive summaries for meeting transcripts. Respond only with the summary in Markdown format. Do NOT use markdown code blocks (```markdown). Provide raw markdown content directly."
- if user_output_language:
- system_message_content += f" Ensure your response is in {user_output_language}."
+ language_directive = f"IMPORTANT: You MUST provide the summary in {user_output_language}. The entire response must be in {user_output_language}." if user_output_language else ""
- # Add summarization instructions to system message
+ # Determine which summarization instructions to use
# Priority order: tag custom prompt > user summary prompt > admin default prompt > hardcoded fallback
+ summarization_instructions = ""
if tag_custom_prompt:
app.logger.info(f"Using tag custom prompt for recording {recording_id}")
- system_message_content += f"\n\nSummarization Instructions:\n{tag_custom_prompt}"
+ summarization_instructions = tag_custom_prompt
elif user_summary_prompt:
app.logger.info(f"Using user custom prompt for recording {recording_id}")
- system_message_content += f"\n\nSummarization Instructions:\n{user_summary_prompt}"
+ summarization_instructions = user_summary_prompt
else:
# Get admin default prompt from system settings
admin_default_prompt = SystemSetting.get_setting('admin_default_summary_prompt', None)
if admin_default_prompt:
app.logger.info(f"Using admin default prompt for recording {recording_id}")
- system_message_content += f"\n\nSummarization Instructions:\n{admin_default_prompt}"
+ summarization_instructions = admin_default_prompt
else:
# Fallback to hardcoded default if admin hasn't set one
- default_instructions = """Generate a comprehensive summary that includes the following sections:
+ summarization_instructions = """Generate a comprehensive summary that includes the following sections:
- **Key Issues Discussed**: A bulleted list of the main topics
- **Key Decisions Made**: A bulleted list of any decisions reached
- **Action Items**: A bulleted list of tasks assigned, including who is responsible if mentioned"""
app.logger.info(f"Using hardcoded default prompt for recording {recording_id}")
- system_message_content += f"\n\nSummarization Instructions:\n{default_instructions}"
-
- # Build user prompt with context information
- current_date = datetime.now().strftime("%B %d, %Y")
# Build context information
+ current_date = datetime.now().strftime("%B %d, %Y")
context_parts = []
context_parts.append(f"Current date: {current_date}")
@@ -2080,17 +2187,24 @@ def generate_summary_only_task(app_context, recording_id):
if user_context_parts:
context_parts.append(f"Information about the user: {', '.join(user_context_parts)}")
- # Combine context and transcript
context_section = "Context:\n" + "\n".join(f"- {part}" for part in context_parts)
- prompt_text = f"""{context_section}
-
-Transcription:
+ # Build SYSTEM message: Initial instructions + Context + Language
+ system_message_content = "You are an AI assistant that generates comprehensive summaries for meeting transcripts. Respond only with the summary in Markdown format. Do NOT use markdown code blocks (```markdown). Provide raw markdown content directly."
+ system_message_content += f"\n\n{context_section}"
+ if user_output_language:
+ system_message_content += f"\n\nLanguage Requirement: You MUST generate the entire summary in {user_output_language}. This is mandatory."
+
+ # Build USER message: Transcription + Summarization Instructions + Language Directive
+ prompt_text = f"""Transcription:
\"\"\"
{transcript_text}
\"\"\"
-Please analyze the above transcription and generate a summary following the provided instructions."""
+Summarization Instructions:
+{summarization_instructions}
+
+{language_directive}"""
# Debug logging: Log the complete prompt being sent to the LLM
app.logger.info(f"Sending summarization prompt to LLM (length: {len(prompt_text)} chars). Set LOG_LEVEL=DEBUG to see full prompt details.")
@@ -2148,13 +2262,13 @@ def extract_audio_from_video(video_filepath, output_format='mp3', cleanup_origin
app.logger.info(f"Extracting audio from video: {video_filepath} -> {temp_audio_filepath}")
- # Extract audio using FFmpeg - using MP3 for consistency with chunking
+ # Extract audio using FFmpeg - using high-quality MP3 for better transcription
subprocess.run([
'ffmpeg', '-i', video_filepath, '-y',
'-vn', # No video
'-codec:a', 'libmp3lame', # Use LAME MP3 encoder explicitly
- '-b:a', '64k', # 64kbps bitrate (better quality than chunking's 32k, still small)
- '-ar', '22050', # 22.05kHz sample rate (good for speech, better than 16kHz)
+ '-b:a', '128k', # 128kbps bitrate for high quality
+ '-ar', '44100', # 44.1kHz sample rate for better quality
'-ac', '1', # Mono (sufficient for speech, reduces file size)
'-compression_level', '2', # Better compression
temp_audio_filepath
@@ -2254,9 +2368,9 @@ def transcribe_audio_asr(app_context, recording_id, filepath, original_filename,
max_attempts = 2
for attempt in range(max_attempts):
try:
- # Use converted WAV if available from previous attempt
+ # Use converted MP3 if available from previous attempt
current_filepath = wav_converted_filepath if wav_converted_filepath else actual_filepath
- current_content_type = 'audio/x-wav' if wav_converted_filepath else actual_content_type
+ current_content_type = 'audio/mpeg' if wav_converted_filepath else actual_content_type
current_filename = os.path.basename(current_filepath)
with open(current_filepath, 'rb') as audio_file:
@@ -2297,23 +2411,23 @@ def transcribe_audio_asr(app_context, recording_id, filepath, original_filename,
except httpx.HTTPStatusError as e:
# Check if it's a 500 error and we haven't tried WAV conversion yet
if e.response.status_code == 500 and attempt == 0 and not wav_conversion_attempted:
- app.logger.warning(f"ASR returned 500 error for recording {recording_id}, attempting WAV conversion and retry...")
+ app.logger.warning(f"ASR returned 500 error for recording {recording_id}, attempting high-quality MP3 conversion and retry...")
- # Convert to WAV using same parameters as reprocessing
+ # Convert to high-quality MP3 for better compatibility
filename_lower = actual_filename.lower()
- if not filename_lower.endswith('.wav'):
+ if not filename_lower.endswith('.mp3'):
try:
base_filepath, file_ext = os.path.splitext(actual_filepath)
- temp_wav_filepath = f"{base_filepath}_temp.wav"
+ temp_mp3_filepath = f"{base_filepath}_temp.mp3"
- app.logger.info(f"Converting {actual_filename} to WAV format for retry...")
+ app.logger.info(f"Converting {actual_filename} to high-quality MP3 format for retry...")
subprocess.run(
- ['ffmpeg', '-i', actual_filepath, '-y', '-acodec', 'pcm_s16le', '-ar', '16000', '-ac', '1', temp_wav_filepath],
+ ['ffmpeg', '-i', actual_filepath, '-y', '-acodec', 'libmp3lame', '-b:a', '128k', '-ar', '44100', temp_mp3_filepath],
check=True, capture_output=True, text=True
)
- app.logger.info(f"Successfully converted {actual_filepath} to {temp_wav_filepath}")
+ app.logger.info(f"Successfully converted {actual_filepath} to {temp_mp3_filepath}")
- wav_converted_filepath = temp_wav_filepath
+ wav_converted_filepath = temp_mp3_filepath # Keep variable name for compatibility
wav_conversion_attempted = True
# Continue to next iteration to retry with WAV
continue
@@ -2329,13 +2443,40 @@ def transcribe_audio_asr(app_context, recording_id, filepath, original_filename,
# Not a 500 error or already tried conversion, propagate the error
raise e
- # Clean up temporary WAV file if created
+ # DEBUG: Preserve converted file for quality checking
+ if wav_converted_filepath and os.path.exists(wav_converted_filepath):
+ try:
+ # Get file size and basic info for debugging
+ converted_size = os.path.getsize(wav_converted_filepath)
+ converted_size_mb = converted_size / (1024 * 1024)
+
+ # Create a debug copy in a known location
+ debug_dir = os.path.join(app.config['UPLOAD_FOLDER'], 'debug_converted')
+ os.makedirs(debug_dir, exist_ok=True)
+
+ # Copy the converted file with a timestamp (MP3 now)
+ from shutil import copy2
+ file_ext = os.path.splitext(wav_converted_filepath)[1] or '.mp3'
+ debug_filename = f"debug_{recording_id}_{datetime.utcnow().strftime('%Y%m%d_%H%M%S')}{file_ext}"
+ debug_filepath = os.path.join(debug_dir, debug_filename)
+ copy2(wav_converted_filepath, debug_filepath)
+
+ app.logger.info(f"DEBUG: Converted file preserved at: {debug_filepath}")
+ app.logger.info(f"DEBUG: Converted file size: {converted_size_mb:.2f} MB ({converted_size} bytes)")
+ app.logger.info(f"DEBUG: Original file: {actual_filename}")
+ app.logger.info(f"DEBUG: Recording ID: {recording_id}")
+ app.logger.info(f"DEBUG: You can download this file from the container at: {debug_filepath}")
+
+ except Exception as debug_error:
+ app.logger.warning(f"DEBUG: Failed to preserve converted file: {debug_error}")
+
+ # Clean up the original temporary converted file (but keep debug copy)
try:
if wav_converted_filepath and os.path.exists(wav_converted_filepath):
os.remove(wav_converted_filepath)
- app.logger.info(f"Cleaned up temporary WAV file: {wav_converted_filepath}")
+ app.logger.info(f"Cleaned up original temporary converted file: {wav_converted_filepath}")
except Exception as cleanup_error:
- app.logger.warning(f"Failed to clean up temporary WAV file: {cleanup_error}")
+ app.logger.warning(f"Failed to clean up temporary converted file: {cleanup_error}")
# Debug logging for ASR response
app.logger.info(f"ASR response keys: {list(asr_response_data.keys())}")
@@ -3766,27 +3907,27 @@ def reprocess_transcription(recording_id):
supported_formats = ('.wav', '.mp3', '.flac')
if not filename_lower.endswith(supported_formats):
- app.logger.info(f"Reprocessing: Converting {filename_lower} format to WAV.")
+ app.logger.info(f"Reprocessing: Converting {filename_lower} format to high-quality MP3.")
base_filepath, file_ext = os.path.splitext(filepath)
- temp_wav_filepath = f"{base_filepath}_temp.wav"
- final_wav_filepath = f"{base_filepath}.wav"
+ temp_mp3_filepath = f"{base_filepath}_temp.mp3"
+ final_mp3_filepath = f"{base_filepath}.mp3"
try:
- # Convert to a temporary file first
+ # Convert to high-quality MP3 (128kbps, 44.1kHz)
subprocess.run(
- ['ffmpeg', '-i', filepath, '-y', '-acodec', 'pcm_s16le', '-ar', '16000', '-ac', '1', temp_wav_filepath],
+ ['ffmpeg', '-i', filepath, '-y', '-acodec', 'libmp3lame', '-b:a', '128k', '-ar', '44100', temp_mp3_filepath],
check=True, capture_output=True, text=True
)
- app.logger.info(f"Successfully converted {filepath} to {temp_wav_filepath}")
+ app.logger.info(f"Successfully converted {filepath} to {temp_mp3_filepath} (128kbps MP3)")
- # If the original file is not the same as the final wav file, remove it
- if filepath.lower() != final_wav_filepath.lower():
+ # If the original file is not the same as the final mp3 file, remove it
+ if filepath.lower() != final_mp3_filepath.lower():
os.remove(filepath)
# Rename the temporary file to the final filename
- os.rename(temp_wav_filepath, final_wav_filepath)
+ os.rename(temp_mp3_filepath, final_mp3_filepath)
- filepath = final_wav_filepath
+ filepath = final_mp3_filepath
filename_for_asr = os.path.basename(filepath)
# Update database with new path and mime type
@@ -4039,12 +4180,14 @@ def account():
user_name = request.form.get('user_name')
user_job_title = request.form.get('user_job_title')
user_company = request.form.get('user_company')
+ ui_lang = request.form.get('ui_language')
transcription_lang = request.form.get('transcription_language')
output_lang = request.form.get('output_language')
current_user.name = user_name if user_name else None
current_user.job_title = user_job_title if user_job_title else None
current_user.company = user_company if user_company else None
+ current_user.ui_language = ui_lang if ui_lang else 'en'
current_user.transcription_language = transcription_lang if transcription_lang else None
current_user.output_language = output_lang if output_lang else None
@@ -4461,6 +4604,7 @@ def get_config():
return jsonify({
'max_file_size_mb': max_file_size_mb,
+ 'recording_disclaimer': SystemSetting.get_setting('recording_disclaimer', ''),
'use_asr_endpoint': USE_ASR_ENDPOINT,
**chunking_info
})
@@ -4486,8 +4630,12 @@ def get_csrf_token():
@app.route('/')
@login_required
def index():
- # Pass the ASR config and inquire mode config to the template
- return render_template('index.html', use_asr_endpoint=USE_ASR_ENDPOINT, inquire_mode_enabled=ENABLE_INQUIRE_MODE)
+ # Pass the ASR config, inquire mode config, and user language preference to the template
+ user_language = current_user.ui_language if current_user.is_authenticated and current_user.ui_language else 'en'
+ return render_template('index.html',
+ use_asr_endpoint=USE_ASR_ENDPOINT,
+ inquire_mode_enabled=ENABLE_INQUIRE_MODE,
+ user_language=user_language)
@app.route('/inquire')
@login_required
@@ -4535,10 +4683,14 @@ def get_recordings_paginated():
# Extract date filters
date_filters = re.findall(r'date:(\S+)', search_query.lower())
+ date_from_filters = re.findall(r'date_from:(\S+)', search_query.lower())
+ date_to_filters = re.findall(r'date_to:(\S+)', search_query.lower())
tag_filters = re.findall(r'tag:(\S+)', search_query.lower())
# Remove special syntax to get text search
text_query = re.sub(r'date:\S+', '', search_query, flags=re.IGNORECASE)
+ text_query = re.sub(r'date_from:\S+', '', text_query, flags=re.IGNORECASE)
+ text_query = re.sub(r'date_to:\S+', '', text_query, flags=re.IGNORECASE)
text_query = re.sub(r'tag:\S+', '', text_query, flags=re.IGNORECASE).strip()
# Apply date filters
@@ -4665,12 +4817,45 @@ def get_recordings_paginated():
)
)
+ # Apply date range filters
+ if date_from_filters and date_from_filters[0]:
+ try:
+ date_from = datetime.strptime(date_from_filters[0], '%Y-%m-%d').date()
+ stmt = stmt.where(
+ db.or_(
+ Recording.meeting_date >= date_from,
+ db.and_(
+ Recording.meeting_date.is_(None),
+ db.func.date(Recording.created_at) >= date_from
+ )
+ )
+ )
+ except ValueError:
+ pass # Invalid date format, ignore
+
+ if date_to_filters and date_to_filters[0]:
+ try:
+ date_to = datetime.strptime(date_to_filters[0], '%Y-%m-%d').date()
+ stmt = stmt.where(
+ db.or_(
+ Recording.meeting_date <= date_to,
+ db.and_(
+ Recording.meeting_date.is_(None),
+ db.func.date(Recording.created_at) <= date_to
+ )
+ )
+ )
+ except ValueError:
+ pass # Invalid date format, ignore
+
# Apply tag filters
if tag_filters:
# Join with tags table and filter by tag names
tag_conditions = []
for tag_filter in tag_filters:
- tag_conditions.append(Tag.name.ilike(f'%{tag_filter}%'))
+ # Replace underscores back to spaces for matching
+ tag_name = tag_filter.replace('_', ' ')
+ tag_conditions.append(Tag.name.ilike(f'%{tag_name}%'))
stmt = stmt.join(RecordingTag).join(Tag).where(db.or_(*tag_conditions))
@@ -4939,23 +5124,23 @@ def upload_file():
if should_convert:
if is_problematic_aac:
- app.logger.info(f"Converting AAC-encoded file {filename_lower} to 32kbps MP3 for ASR endpoint compatibility.")
+ app.logger.info(f"Converting AAC-encoded file {filename_lower} to high-quality MP3 for ASR endpoint compatibility.")
elif filename_lower.endswith(convertible_formats):
- app.logger.info(f"Converting {filename_lower} format to 32kbps MP3 for chunking processing.")
+ app.logger.info(f"Converting {filename_lower} format to high-quality MP3 for chunking processing.")
else:
- app.logger.info(f"Attempting to convert unknown format ({filename_lower}) to 32kbps MP3 for chunking.")
+ app.logger.info(f"Attempting to convert unknown format ({filename_lower}) to high-quality MP3 for chunking.")
base_filepath, _ = os.path.splitext(filepath)
temp_mp3_filepath = f"{base_filepath}_temp.mp3"
mp3_filepath = f"{base_filepath}.mp3"
try:
- # Convert to 32kbps MP3 for optimal size/quality balance
+ # Convert to high-quality MP3 (128kbps, 44.1kHz) for better transcription accuracy
subprocess.run(
- ['ffmpeg', '-i', filepath, '-y', '-acodec', 'mp3', '-ab', '32k', '-ar', '16000', '-ac', '1', temp_mp3_filepath],
+ ['ffmpeg', '-i', filepath, '-y', '-acodec', 'libmp3lame', '-b:a', '128k', '-ar', '44100', '-ac', '1', temp_mp3_filepath],
check=True, capture_output=True, text=True
)
- app.logger.info(f"Successfully converted {filepath} to {temp_mp3_filepath} (32kbps MP3)")
+ app.logger.info(f"Successfully converted {filepath} to {temp_mp3_filepath} (128kbps MP3)")
# If the original file is not the same as the final mp3 file, remove it
if filepath.lower() != mp3_filepath.lower():
@@ -5050,13 +5235,14 @@ def upload_file():
max_speakers = None
# Create initial database entry
+ now = datetime.utcnow()
recording = Recording(
audio_path=filepath,
original_filename=original_filename,
title=f"Recording - {original_filename}",
file_size=final_file_size,
status='PENDING',
- meeting_date=datetime.utcnow().date(),
+ meeting_date=now.date(),
user_id=current_user.id,
mime_type=mime_type,
notes=notes,
@@ -5299,7 +5485,7 @@ def inquire_search():
result = chunk.to_dict()
result['similarity'] = similarity
result['recording_title'] = chunk.recording.title
- result['recording_meeting_date'] = chunk.recording.meeting_date.isoformat() if chunk.recording.meeting_date else None
+ result['recording_meeting_date'] = f"{chunk.recording.meeting_date.isoformat()}T00:00:00" if chunk.recording.meeting_date else None
results.append(result)
return jsonify({'results': results})
@@ -5949,7 +6135,7 @@ def get_available_filters():
return jsonify({
'tags': [tag.to_dict() for tag in tags],
'speakers': speaker_names,
- 'recordings': [{'id': r.id, 'title': r.title, 'meeting_date': r.meeting_date.isoformat() if r.meeting_date else None} for r in recordings]
+ 'recordings': [{'id': r.id, 'title': r.title, 'meeting_date': f"{r.meeting_date.isoformat()}T00:00:00" if r.meeting_date else None} for r in recordings]
})
except Exception as e:
diff --git a/audio_chunking.py b/audio_chunking.py
index 71772650..92bbe9cf 100644
--- a/audio_chunking.py
+++ b/audio_chunking.py
@@ -121,19 +121,19 @@ class AudioChunkingService:
mp3_filename = f"{base_name}_converted.mp3"
mp3_path = os.path.join(temp_dir, mp3_filename)
- # Convert to 64kbps MP3 using better quality settings
+ # Convert to high-quality MP3 for better transcription accuracy
cmd = [
'ffmpeg', '-i', file_path,
'-codec:a', 'libmp3lame', # Use LAME MP3 encoder explicitly
- '-b:a', '64k', # 64kbps bitrate for better quality
- '-ar', '22050', # 22.05kHz sample rate (better than 16kHz)
+ '-b:a', '128k', # 128kbps bitrate for high quality
+ '-ar', '44100', # 44.1kHz sample rate for better quality
'-ac', '1', # Mono (sufficient for speech)
'-compression_level', '2', # Better compression
'-y', # Overwrite output file
mp3_path
]
- logger.info(f"Converting {file_path} to 64kbps MP3 format for accurate chunking...")
+ logger.info(f"Converting {file_path} to 128kbps MP3 format for accurate chunking...")
result = subprocess.run(cmd, capture_output=True, text=True)
if result.returncode != 0:
raise ValueError(f"ffmpeg conversion failed: {result.stderr}")
diff --git a/docs/.gitignore b/docs/.gitignore
new file mode 100644
index 00000000..9c4f4ad5
--- /dev/null
+++ b/docs/.gitignore
@@ -0,0 +1,31 @@
+# Jekyll build output
+_site/
+.sass-cache/
+.jekyll-cache/
+.jekyll-metadata
+
+# Bundle directory
+.bundle/
+vendor/
+
+# Local development files
+_config_local.yml
+local-serve.sh
+docker-serve.sh
+simple-serve.sh
+serve-local.sh
+
+# OS files
+.DS_Store
+Thumbs.db
+
+# IDE files
+.vscode/
+.idea/
+
+# Ruby version files
+.ruby-version
+.ruby-gemset
+
+# Documentation verification (internal use)
+DOCUMENTATION_VERIFICATION_CHECKLIST.md
\ No newline at end of file
diff --git a/docs/DEPLOYMENT_GUIDE.md b/docs/DEPLOYMENT_GUIDE.md
index 15c7fdc9..13cb9c77 100644
--- a/docs/DEPLOYMENT_GUIDE.md
+++ b/docs/DEPLOYMENT_GUIDE.md
@@ -32,7 +32,7 @@ Speakr automatically handles large files that exceed API limits (like OpenAI's 2
- Files are automatically split into optimally-sized chunks (22MB each for OpenAI)
- Each chunk is processed separately and transcriptions are seamlessly merged
- No user intervention required - the process is completely transparent
-- Chunking uses 32kbps MP3 conversion for optimal size/quality balance
+- Chunking uses 128kbps MP3 conversion for optimal transcription quality
- Original file format is preserved when possible (no chunking needed for smaller files)
**ASR Webservice Method:**
@@ -450,7 +450,7 @@ CHUNK_OVERLAP_SECONDS=3
### How Chunking Works
1. **Automatic Detection:** Speakr automatically detects when a file exceeds the configured chunk size
-2. **Intelligent Splitting:** Files are split into overlapping chunks using 32kbps MP3 conversion for optimal size/quality
+2. **Intelligent Splitting:** Files are split into overlapping chunks using 128kbps MP3 conversion for optimal transcription quality
3. **Processing:** Each chunk is processed separately through your transcription API
4. **Seamless Merging:** Transcriptions are automatically merged back together with overlap handling
5. **Transparent Process:** Users see a single transcription result with no indication that chunking occurred
@@ -642,7 +642,7 @@ The auto-processor supports the same audio formats as manual uploads:
**File Processing:**
- **Supported formats** are processed directly without conversion
-- **Unsupported formats** are automatically converted to 32kbps MP3 using ffmpeg
+- **Unsupported formats** are automatically converted to 128kbps MP3 using ffmpeg
- **No uncompressed WAV files** are created to minimize storage usage
### Usage Examples
diff --git a/docs/Dockerfile b/docs/Dockerfile
new file mode 100644
index 00000000..99ce2b2a
--- /dev/null
+++ b/docs/Dockerfile
@@ -0,0 +1,28 @@
+FROM python:3.11-slim
+
+WORKDIR /app
+
+# Install git (required for git-revision-date plugin)
+RUN apt-get update && \
+ apt-get install -y git && \
+ apt-get clean && \
+ rm -rf /var/lib/apt/lists/*
+
+# Install requirements
+COPY requirements-docs.txt .
+RUN pip install --no-cache-dir -r requirements-docs.txt
+
+# Create docs directory structure
+RUN mkdir -p docs
+
+# Copy mkdocs config to root
+COPY mkdocs.yml .
+
+# Copy all documentation files to docs subdirectory
+COPY . ./docs/
+
+# Expose MkDocs development server port
+EXPOSE 8000
+
+# Run MkDocs server
+CMD ["mkdocs", "serve", "--dev-addr=0.0.0.0:8000"]
\ No newline at end of file
diff --git a/docs/Gemfile.simple b/docs/Gemfile.simple
new file mode 100644
index 00000000..9ca69719
--- /dev/null
+++ b/docs/Gemfile.simple
@@ -0,0 +1,8 @@
+source "https://rubygems.org"
+
+gem "jekyll", "~> 4.3"
+gem "jekyll-seo-tag"
+gem "jekyll-sitemap"
+gem "jekyll-feed"
+gem "webrick", "~> 1.8"
+gem "kramdown-parser-gfm"
\ No newline at end of file
diff --git a/docs/_includes/sidebar.html b/docs/_includes/sidebar.html
new file mode 100644
index 00000000..9e522354
--- /dev/null
+++ b/docs/_includes/sidebar.html
@@ -0,0 +1,33 @@
+<nav class="sidebar">
+ <div class="sidebar-header">
+ <img src="{{ '/assets/images/logo.png' | relative_url }}" alt="Speakr Logo" class="sidebar-logo">
+ <h2 class="sidebar-title">Speakr Docs</h2>
+ </div>
+
+ <div class="sidebar-content">
+ {% for section in site.navigation %}
+ <div class="sidebar-section">
+ <h3 class="sidebar-section-title">{{ section.title }}</h3>
+ <ul class="sidebar-list">
+ {% for item in section.items %}
+ <li class="sidebar-item">
+ <a href="{{ item.url | relative_url }}"
+ class="sidebar-link {% if page.url == item.url %}active{% endif %}">
+ {{ item.title }}
+ </a>
+ </li>
+ {% endfor %}
+ </ul>
+ </div>
+ {% endfor %}
+ </div>
+
+ <div class="sidebar-footer">
+ <a href="https://github.com/murtaza-nasir/speakr" class="github-link">
+ <svg class="github-icon" viewBox="0 0 16 16" width="20" height="20">
+ <path fill="currentColor" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path>
+ </svg>
+ GitHub
+ </a>
+ </div>
+</nav>
\ No newline at end of file
diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html
new file mode 100644
index 00000000..9c0c02d6
--- /dev/null
+++ b/docs/_layouts/default.html
@@ -0,0 +1,403 @@
+<!DOCTYPE html>
+<html lang="{{ site.lang | default: 'en-US' }}">
+<head>
+ <meta charset="UTF-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+
+ {% seo %}
+ <link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
+ <link rel="icon" type="image/png" href="{{ '/assets/images/logo.png' | relative_url }}">
+
+ <!-- Custom fonts -->
+ <link rel="preconnect" href="https://fonts.googleapis.com">
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
+
+ <style>
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ }
+
+ body {
+ font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
+ line-height: 1.6;
+ color: #1f2937;
+ font-size: 15px;
+ }
+
+ .docs-wrapper {
+ display: flex;
+ min-height: 100vh;
+ }
+
+ /* Sidebar Styles */
+ .sidebar {
+ position: fixed;
+ left: 0;
+ top: 0;
+ width: 280px;
+ height: 100vh;
+ background: #f9fafb;
+ border-right: 1px solid #e5e7eb;
+ overflow-y: auto;
+ z-index: 100;
+ }
+
+ .sidebar-header {
+ padding: 1.5rem;
+ background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
+ color: white;
+ text-align: center;
+ }
+
+ .sidebar-logo {
+ width: 60px;
+ height: 60px;
+ border-radius: 12px;
+ margin-bottom: 0.5rem;
+ }
+
+ .sidebar-title {
+ font-size: 1.25rem;
+ font-weight: 600;
+ margin: 0;
+ }
+
+ .sidebar-content {
+ padding: 1rem 0;
+ }
+
+ .sidebar-section {
+ margin-bottom: 1.5rem;
+ }
+
+ .sidebar-section-title {
+ font-size: 0.75rem;
+ font-weight: 700;
+ text-transform: uppercase;
+ letter-spacing: 0.05em;
+ color: #6b7280;
+ padding: 0 1.5rem;
+ margin-bottom: 0.5rem;
+ }
+
+ .sidebar-list {
+ list-style: none;
+ }
+
+ .sidebar-item {
+ margin: 0;
+ }
+
+ .sidebar-link {
+ display: block;
+ padding: 0.5rem 1.5rem;
+ color: #4b5563;
+ text-decoration: none;
+ transition: all 0.2s ease;
+ font-size: 0.95rem;
+ }
+
+ .sidebar-link:hover {
+ background: #e5e7eb;
+ color: #1f2937;
+ }
+
+ .sidebar-link.active {
+ background: #6366f1;
+ color: white;
+ font-weight: 500;
+ }
+
+ .sidebar-footer {
+ padding: 1rem 1.5rem;
+ border-top: 1px solid #e5e7eb;
+ margin-top: auto;
+ }
+
+ .github-link {
+ display: flex;
+ align-items: center;
+ gap: 0.5rem;
+ color: #6b7280;
+ text-decoration: none;
+ font-size: 0.9rem;
+ transition: color 0.2s;
+ }
+
+ .github-link:hover {
+ color: #1f2937;
+ }
+
+ .github-icon {
+ flex-shrink: 0;
+ }
+
+ /* Main Content Styles */
+ .main-content {
+ flex: 1;
+ margin-left: 280px;
+ min-width: 0;
+ }
+
+ .content-wrapper {
+ max-width: 900px;
+ margin: 0 auto;
+ padding: 2rem 3rem;
+ }
+
+ /* Content Typography */
+ .content-wrapper h1 {
+ color: #1f2937;
+ font-size: 1.875rem;
+ font-weight: 700;
+ margin-bottom: 1rem;
+ padding-bottom: 0.5rem;
+ border-bottom: 2px solid #6366f1;
+ }
+
+ .content-wrapper h2 {
+ color: #1f2937;
+ font-size: 1.5rem;
+ font-weight: 600;
+ margin-top: 2rem;
+ margin-bottom: 1rem;
+ padding-bottom: 0.5rem;
+ border-bottom: 1px solid #e5e7eb;
+ }
+
+ .content-wrapper h3 {
+ color: #374151;
+ font-size: 1.25rem;
+ font-weight: 600;
+ margin-top: 1.5rem;
+ margin-bottom: 0.75rem;
+ }
+
+ .content-wrapper h4 {
+ color: #4b5563;
+ font-size: 1.125rem;
+ font-weight: 600;
+ margin-top: 1.25rem;
+ margin-bottom: 0.5rem;
+ }
+
+ .content-wrapper p {
+ margin-bottom: 1rem;
+ line-height: 1.6;
+ font-size: 0.95rem;
+ }
+
+ .content-wrapper img {
+ max-width: 100%;
+ height: auto;
+ border-radius: 12px;
+ box-shadow: 0 4px 20px rgba(0,0,0,0.1);
+ margin: 2rem 0;
+ }
+
+ .content-wrapper code {
+ background: #f3f4f6;
+ padding: 0.125rem 0.375rem;
+ border-radius: 4px;
+ color: #dc2626;
+ font-size: 0.85em;
+ font-family: 'Monaco', 'Courier New', monospace;
+ font-weight: 500;
+ }
+
+ .content-wrapper pre {
+ background: #2d3748;
+ color: #e2e8f0;
+ padding: 1rem;
+ border-radius: 8px;
+ overflow-x: auto;
+ margin: 1rem 0;
+ border: 1px solid #4a5568;
+ }
+
+ .content-wrapper pre code {
+ background: none;
+ color: #e2e8f0;
+ padding: 0;
+ font-weight: normal;
+ }
+
+ /* Override syntax highlighting for better contrast */
+ .content-wrapper .highlight pre {
+ background: #1f2937;
+ }
+
+ .content-wrapper .highlight code {
+ color: #f3f4f6;
+ }
+
+ .content-wrapper ul, .content-wrapper ol {
+ margin-bottom: 1rem;
+ padding-left: 2rem;
+ }
+
+ .content-wrapper li {
+ margin-bottom: 0.5rem;
+ font-size: 0.95rem;
+ }
+
+ .content-wrapper blockquote {
+ border-left: 4px solid #6366f1;
+ padding-left: 1rem;
+ margin: 1rem 0;
+ font-style: italic;
+ color: #6b7280;
+ }
+
+ .content-wrapper table {
+ width: 100%;
+ border-collapse: collapse;
+ margin: 1rem 0;
+ }
+
+ .content-wrapper th, .content-wrapper td {
+ padding: 0.75rem;
+ text-align: left;
+ border: 1px solid #e5e7eb;
+ }
+
+ .content-wrapper th {
+ background: #f9fafb;
+ font-weight: 600;
+ }
+
+ .content-wrapper a {
+ color: #4f46e5;
+ text-decoration: none;
+ font-weight: 500;
+ }
+
+ .content-wrapper a:hover {
+ text-decoration: underline;
+ color: #4338ca;
+ }
+
+ /* Ensure inline code in links is visible */
+ .content-wrapper a code {
+ color: inherit;
+ }
+
+ /* Override Jekyll/Rouge syntax highlighting for better contrast */
+ .highlighter-rouge .highlight {
+ background: #2d3748 !important;
+ }
+
+ .highlight {
+ background: #2d3748 !important;
+ color: #e2e8f0 !important;
+ }
+
+ .highlight pre {
+ background: #2d3748 !important;
+ color: #e2e8f0 !important;
+ }
+
+ /* Make all text light by default */
+ .highlight * {
+ color: #e2e8f0 !important;
+ }
+
+ /* Then override specific elements */
+ .highlight .c { color: #718096 !important; } /* Comment */
+ .highlight .s, .highlight .s1, .highlight .s2 { color: #68d391 !important; } /* String */
+ .highlight .k { color: #b794f4 !important; } /* Keyword */
+ .highlight .o { color: #f6ad55 !important; } /* Operator */
+ .highlight .m { color: #f6ad55 !important; } /* Number */
+ .highlight .nb { color: #63b3ed !important; } /* Builtin */
+ .highlight .nv { color: #fc8181 !important; } /* Variable */
+
+ /* Ensure operators like -O are visible */
+ .highlight .p { color: #cbd5e0 !important; } /* Punctuation */
+ .highlight .nt { color: #63b3ed !important; } /* Tag */
+ .highlight .na { color: #f6ad55 !important; } /* Attribute */
+
+ /* Mobile Responsiveness */
+ @media (max-width: 768px) {
+ .sidebar {
+ transform: translateX(-100%);
+ transition: transform 0.3s ease;
+ }
+
+ .sidebar.active {
+ transform: translateX(0);
+ }
+
+ .main-content {
+ margin-left: 0;
+ }
+
+ .content-wrapper {
+ padding: 1.5rem;
+ }
+ }
+
+ /* Home page special styles */
+ .home-header {
+ text-align: center;
+ padding: 3rem 0;
+ background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
+ color: white;
+ margin: -2rem -3rem 2rem -3rem;
+ border-radius: 12px;
+ }
+
+ .project-logo {
+ width: 100px;
+ height: 100px;
+ margin: 0 auto 1rem;
+ display: block;
+ border-radius: 20px;
+ box-shadow: 0 10px 25px rgba(0,0,0,0.2);
+ }
+ </style>
+</head>
+<body>
+ <div class="docs-wrapper">
+ {% include sidebar.html %}
+
+ <main class="main-content">
+ <div class="content-wrapper">
+ {{ content }}
+ </div>
+ </main>
+ </div>
+
+ <script>
+ // Mobile sidebar toggle
+ document.addEventListener('DOMContentLoaded', function() {
+ const sidebar = document.querySelector('.sidebar');
+ const toggleBtn = document.createElement('button');
+ toggleBtn.innerHTML = '☰';
+ toggleBtn.style.cssText = 'position:fixed;top:1rem;left:1rem;z-index:200;padding:0.5rem 0.75rem;background:white;border:1px solid #e5e7eb;border-radius:8px;cursor:pointer;display:none;';
+
+ if (window.innerWidth <= 768) {
+ toggleBtn.style.display = 'block';
+ }
+
+ toggleBtn.onclick = function() {
+ sidebar.classList.toggle('active');
+ };
+
+ document.body.appendChild(toggleBtn);
+
+ window.addEventListener('resize', function() {
+ if (window.innerWidth <= 768) {
+ toggleBtn.style.display = 'block';
+ } else {
+ toggleBtn.style.display = 'none';
+ sidebar.classList.remove('active');
+ }
+ });
+ });
+ </script>
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/_layouts/docs.html b/docs/_layouts/docs.html
new file mode 100644
index 00000000..820db4f3
--- /dev/null
+++ b/docs/_layouts/docs.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}</title>
+ <meta name="description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
+ <link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}">
+ <link rel="icon" type="image/png" href="{{ '/assets/images/logo.png' | relative_url }}">
+</head>
+<body>
+ <div class="docs-wrapper">
+ {% include sidebar.html %}
+
+ <main class="main-content">
+ <div class="content-wrapper">
+ {{ content }}
+ </div>
+ </main>
+ </div>
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/admin-guide/index.md b/docs/admin-guide/index.md
new file mode 100644
index 00000000..a9cc192f
--- /dev/null
+++ b/docs/admin-guide/index.md
@@ -0,0 +1,99 @@
+# Admin Guide
+
+Welcome to the Speakr Admin Guide! As an administrator, you control the heart of your Speakr instance, managing users, monitoring system health, and configuring AI behavior.
+
+## Administrative Controls
+
+<div class="guide-cards">
+ <div class="guide-card">
+ <div class="card-icon">👥</div>
+ <h3>User Management</h3>
+ <p>Create accounts, manage permissions, monitor usage, and control access to your Speakr instance.</p>
+ <a href="user-management" class="card-link">Manage Users →</a>
+ </div>
+
+ <div class="guide-card">
+ <div class="card-icon">📊</div>
+ <h3>System Statistics</h3>
+ <p>Monitor system health, track usage patterns, and identify potential issues before they affect users.</p>
+ <a href="statistics" class="card-link">View Statistics →</a>
+ </div>
+
+ <div class="guide-card">
+ <div class="card-icon">🔧</div>
+ <h3>System Settings</h3>
+ <p>Configure global limits, timeouts, file sizes, and system-wide behavior that affects all users.</p>
+ <a href="system-settings" class="card-link">Configure System →</a>
+ </div>
+
+ <div class="guide-card">
+ <div class="card-icon">✨</div>
+ <h3>Default Prompts</h3>
+ <p>Customize AI behavior with default summary prompts that shape how content is processed.</p>
+ <a href="prompts" class="card-link">Set Prompts →</a>
+ </div>
+
+ <div class="guide-card">
+ <div class="card-icon">🔍</div>
+ <h3>Vector Store</h3>
+ <p>Manage semantic search capabilities, monitor embedding status, and control Inquire Mode.</p>
+ <a href="vector-store" class="card-link">Manage Search →</a>
+ </div>
+</div>
+
+## Quick Actions
+
+<div class="action-cards">
+ <div class="action-card">
+ <span class="action-icon">➕</span>
+ <div>
+ <strong>Add New User</strong>
+ <p>User Management → Add User Button → Enter details → Set permissions</p>
+ </div>
+ </div>
+
+ <div class="action-card">
+ <span class="action-icon">📈</span>
+ <div>
+ <strong>Check System Health</strong>
+ <p>System Statistics → Review metrics → Check processing status → Monitor storage</p>
+ </div>
+ </div>
+
+ <div class="action-card">
+ <span class="action-icon">⚙️</span>
+ <div>
+ <strong>Update Settings</strong>
+ <p>System Settings → Adjust limits → Configure timeouts → Save changes</p>
+ </div>
+ </div>
+
+ <div class="action-card">
+ <span class="action-icon">🔄</span>
+ <div>
+ <strong>Process Embeddings</strong>
+ <p>Vector Store → Check status → Process pending → Monitor progress</p>
+ </div>
+ </div>
+</div>
+
+## Need Admin Help?
+
+<div class="help-section">
+ <div class="help-item">
+ <span class="help-icon">📖</span>
+ <span>Review the detailed <a href="../troubleshooting.md">Troubleshooting Guide</a></span>
+ </div>
+ <div class="help-item">
+ <span class="help-icon">🐛</span>
+ <span>Check Docker logs: <code>docker-compose logs -f app</code></span>
+ </div>
+ <div class="help-item">
+ <span class="help-icon">💾</span>
+ <span>Backup your data directory regularly</span>
+ </div>
+</div>
+
+---
+
+Ready to manage your Speakr instance? Start with [User Management](user-management.md) →
\ No newline at end of file
diff --git a/docs/admin-guide/prompts.md b/docs/admin-guide/prompts.md
new file mode 100644
index 00000000..18872246
--- /dev/null
+++ b/docs/admin-guide/prompts.md
@@ -0,0 +1,91 @@
+# Default Prompts
+
+The Default Prompts tab lets you shape how AI interprets and [summarizes recordings](../features.md#automatic-summarization) across your entire Speakr instance. This is where you establish the baseline intelligence that users experience when they haven't customized their own [personal prompts](../user-guide/settings.md#custom-prompts-tab).
+
+![Default Prompts](../assets/images/screenshots/Admin default prompts.png)
+
+## Understanding Prompt Hierarchy
+
+Speakr uses a sophisticated hierarchy to determine which prompt to use for any given recording. This system provides flexibility while maintaining control, ensuring users get appropriate summaries while allowing customization where needed.
+
+At the top of the hierarchy are tag-specific prompts. When a recording has [tags](../user-guide/settings.md#tag-management-tab) with associated prompts, these take absolute priority. Learn about [tag management](../features.md#tagging-system) in the features guide. Multiple tag prompts concatenate intelligently, allowing sophisticated prompt stacking for specialized content types.
+
+Next comes the user's personal custom prompt, set in their [account settings](../user-guide/settings.md#custom-prompts-tab). Users can also configure [language preferences](../user-guide/settings.md#language-preferences) for their summaries. This allows individuals to tailor summaries to their specific needs without affecting others. Many users never set this, making your admin default even more important.
+
+Your admin default prompt, configured on this page, serves as the foundation for most summaries. This is what new users experience and what long-term users rely on when they haven't customized their settings. It shapes the overall intelligence and utility of your Speakr instance.
+
+Finally, if all else fails, a hardcoded system fallback ensures summaries are always generated. You'll rarely see this in practice, but it provides a safety net ensuring the system never fails to produce output.
+
+## Crafting Effective Default Prompts
+
+Your default prompt is more than technical instruction - it's a template for understanding. The prompt shown in the interface demonstrates a balanced approach, requesting key issues, decisions, and action items. This structure works well for business meetings but might not suit all contexts.
+
+Consider your user base when designing prompts. A research institution might emphasize methodologies and findings. A legal firm could focus on case details and precedents. For multi-language support, see [language configuration](../features.md#language-support) and [troubleshooting language issues](../troubleshooting.md#summary-language-doesnt-match-preference). A creative agency might highlight concepts and client feedback. The prompt should reflect what matters most to your users.
+
+The AI responds best to clear, structured requests. Use bullet points or numbered sections to organize the output. Specify the level of detail you want - "brief overview" versus "comprehensive analysis" produces very different results. Include examples if certain formats are crucial.
+
+Remember that this prompt applies to everything from five-minute check-ins to two-hour workshops. Design for versatility. Avoid overly specific requirements that might not apply to all content. Focus on extracting universally valuable information while allowing the AI flexibility to adapt to different recording types.
+
+## The Default Prompt Editor
+
+The large text area displays your current default prompt, with full markdown support for formatting. You can use bold for emphasis, lists for structure, and even code blocks if you need to show example formats. The editor expands to accommodate longer prompts, though conciseness generally produces better results.
+
+Changes save immediately when you click the Save Changes button. There's no draft or staging - modifications affect all new summaries instantly. Users can [regenerate summaries](../user-guide/transcripts.md) to apply updated prompts to existing recordings. The Reset to Default button provides a safety net, reverting to the original prompt if your customizations don't work as expected.
+
+The timestamp shows when the prompt was last modified, helpful for tracking changes over time. If multiple admins manage your instance, this helps coordinate who changed what and when.
+
+## Understanding the LLM Prompt Structure
+
+The expandable "View Full LLM Prompt Structure" section reveals how your prompt fits into the complete instruction sent to the AI. This technical view shows the system prompt, your custom prompt, and the transcript integration.
+
+Understanding this structure helps you write better prompts. You'll see that certain instructions are already handled by the system prompt, so you don't need to repeat them. You'll understand how your prompt interacts with the transcript text and why certain phrasings work better than others.
+
+This transparency also helps with troubleshooting. If summaries aren't meeting expectations, reviewing the full prompt structure often reveals why. Perhaps your instructions conflict with system instructions, or maybe you're requesting information that isn't typically in transcripts.
+
+## Practical Prompt Strategies
+
+Start with a proven structure and iterate based on results. The default prompt works well because it requests concrete, actionable information. Key issues provide context, decisions document outcomes, and action items drive follow-up.
+
+Test your prompts with various recording types before deploying widely. A prompt that works beautifully for formal presentations might fail for casual conversations. Upload test recordings with different characteristics and evaluate the summaries produced.
+
+Consider seasonal or project-based adjustments. During planning seasons, you might emphasize goals and strategies. During execution phases, focus on progress and blockers. You can update the default prompt as organizational needs evolve.
+
+Monitor user feedback about summary quality. If users frequently edit summaries or complain about missing information, your prompt might need adjustment. The best prompt is one users rarely need to modify.
+
+## Advanced Prompt Techniques
+
+Layer instructions for nuanced output. Instead of just requesting "action items," specify "action items with responsible parties and due dates if mentioned." This precision helps the AI extract more valuable information when it's available.
+
+Use conditional language for flexibility. Phrases like "if applicable" or "when discussed" allow the AI to skip sections that don't apply to every recording. This prevents forced, irrelevant content in summaries.
+
+Consider the AI model's strengths and limitations. Current models excel at identifying themes, extracting specific information, and organizing content. They struggle with complex reasoning, mathematical calculations, and information not explicitly stated. Design prompts that play to these strengths.
+
+Balance detail with readability. Extremely detailed prompts might produce comprehensive summaries that users don't read. Sometimes a concise, focused summary serves users better than exhaustive documentation.
+
+## Coordinating with User Prompts
+
+Your default prompt should complement, not compete with, user customization. Design it as a solid foundation that works for most cases while encouraging power users to customize for their specific needs.
+
+Communicate your prompt strategy to users. Let them know what the default prompt emphasizes so they can decide whether customization would benefit them. Share examples of effective user prompts that build on your default.
+
+Consider documenting prompt best practices for your users. If certain departments need specialized summaries, provide recommended prompts they can use. This empowers users while maintaining consistency where it matters.
+
+## Measuring Prompt Effectiveness
+
+Track how often users modify AI-generated summaries. Frequent edits suggest your prompt isn't capturing what users need. Minimal edits indicate your prompt effectively extracts valuable information.
+
+Review a sample of summaries periodically. Do they consistently include the requested sections? Is the information accurate and relevant? Are users adding similar information that the prompt should request?
+
+Gather feedback during user reviews or support interactions. Ask specifically about summary quality and whether the default format meets their needs. Users who don't customize their prompts rely entirely on your default, making their feedback crucial.
+
+## Common Prompt Pitfalls
+
+Avoid overly restrictive prompts that force structure onto incompatible content. Not every recording has "decisions" or "action items." Forcing the AI to find these when they don't exist produces meaningless filler.
+
+Don't request information the AI can't provide. Asking for "unspoken concerns" or "what wasn't discussed" goes beyond transcript analysis. The AI can only work with what was actually said and recorded.
+
+Resist the temptation to make prompts too long. Each instruction adds complexity and potential confusion. Focus on what's most important rather than trying to capture every possible detail.
+
+---
+
+Next: [Vector Store](vector-store.md) →
\ No newline at end of file
diff --git a/docs/admin-guide/statistics.md b/docs/admin-guide/statistics.md
new file mode 100644
index 00000000..80d237dc
--- /dev/null
+++ b/docs/admin-guide/statistics.md
@@ -0,0 +1,39 @@
+# System Statistics
+
+The System Statistics tab transforms raw data into actionable insights about your Speakr instance. At a glance, you can see how many users you're serving, how many recordings they've created, how much storage they're consuming, and whether everything is processing smoothly.
+
+![System Statistics](../assets/images/screenshots/Admin stats.png)
+
+## Key Metrics Overview
+
+Four prominent cards at the top of the statistics page give you immediate insight into your system's scale. Total Users shows your current user base size, helping you understand your instance's reach. Total Recordings reveals the cumulative content in your system, while Total Storage presents the actual disk space consumed. Total Queries, when Inquire Mode is enabled, indicates how actively users are searching their recordings.
+
+These numbers tell a story about your instance's health and growth. A growing user count with proportional recording growth suggests healthy adoption. Storage growing faster than recordings might indicate users are uploading longer files. Query counts reveal whether users are finding value in the semantic search features.
+
+## Recording Status Distribution
+
+The status distribution section breaks down your recordings into four critical states. Completed recordings are fully processed and ready for use - this should be the vast majority of your content. Processing recordings are currently being transcribed or analyzed. Pending recordings are queued and waiting their turn. Failed recordings encountered errors and need attention.
+
+In a healthy system, you'll see mostly completed recordings with perhaps a few processing at any given moment. A large number of pending recordings might indicate your system is overwhelmed or that background processing has stopped. Failed recordings always deserve investigation - they might reveal configuration issues, API problems, or corrupted files that users are trying to upload.
+
+## Storage Analysis
+
+The "Top Users by Storage" section reveals who's consuming the most resources in your system. Each user is listed with their total storage consumption and recording count, giving you context about whether they have many small files or fewer large ones.
+
+This information proves invaluable for capacity planning and user education. If one user consumes disproportionate storage, you might need to understand their use case better. Are they recording multi-hour meetings? Keeping everything forever? Understanding the why behind the numbers helps you make better policy decisions.
+
+## Understanding Usage Patterns
+
+Statistics aren't just numbers - they're insights waiting to be discovered. Sudden spikes in recordings might coincide with project kickoffs, academic semesters, or company initiatives. Storage growth that outpaces recording growth could indicate users are uploading longer content or higher quality audio files.
+
+Regular monitoring helps you spot trends before they become problems. If storage grows 10% monthly, you can project when you'll need to expand capacity. If failed recordings suddenly spike, you can investigate whether an API key expired or a service is down.
+
+## Capacity Planning
+
+System statistics are your crystal ball for infrastructure needs. Storage growth trends tell you when you'll need more disk space. User growth patterns indicate when you might need to scale your server resources. Processing queues reveal whether your current setup can handle the workload.
+
+Use these insights proactively. If you see storage growing at 50GB monthly and you have 200GB free, you know you have about four months before needing intervention. This lead time lets you budget for upgrades, plan migrations, or implement retention policies before hitting critical limits.
+
+---
+
+Next: [System Settings](system-settings.md) →
\ No newline at end of file
diff --git a/docs/admin-guide/system-settings.md b/docs/admin-guide/system-settings.md
new file mode 100644
index 00000000..73a71383
--- /dev/null
+++ b/docs/admin-guide/system-settings.md
@@ -0,0 +1,57 @@
+# System Settings
+
+System Settings is where you configure the fundamental behaviors that affect every user and recording in your Speakr instance. These global parameters shape how the system operates, from technical limits to user-facing features.
+
+![System Settings](../assets/images/screenshots/Admin system settings.png)
+
+## Transcript Length Limit
+
+The transcript length limit determines how much text gets sent to the AI when generating summaries or responding to chats. This seemingly simple number has a big effect on both quality and cost.
+
+When set to "No Limit," the entire transcript goes to the AI regardless of length. This ensures the AI has complete context but can become expensive for long recordings. A two-hour meeting might generate 20,000 words of transcript, consuming significant API tokens and potentially overwhelming the AI model's context window. This limit will also be applied to the speaker auto-detection feature in the speaker identification modal.
+
+Setting a character limit (like 50,000 characters) creates a ceiling on API consumption. The system will truncate very long transcripts, sending only the beginning portion to the AI. This keeps costs predictable but might mean the AI misses important content from later in the recording.
+
+The sweet spot depends on your use case. For typical meetings under an hour, 50,000 characters usually captures everything. For longer sessions, you might increase this limit or train users to split recordings. Monitor your API costs and user feedback to find the right balance.
+
+## Maximum File Size
+
+The file size limit protects your system from being overwhelmed by massive uploads while ensuring users can work with reasonable recordings. The default 300MB accommodates several hours of compressed audio, which covers most use cases.
+
+Raising this limit allows longer recordings but requires careful consideration. Larger files take longer to upload, consume more storage, and might timeout during processing. Your server needs enough memory to handle these files, and your storage must accommodate them. Network timeouts, browser limitations, and user patience all factor into what's practical.
+
+If users frequently hit the limit, consider whether they really need single recordings that long. Often, splitting long sessions into logical segments produces better results - easier to review, faster to process, and more focused summaries.
+
+## ASR Timeout Settings
+
+The ASR timeout determines how long Speakr will wait for advanced transcription services to complete their work. The default 1,800 seconds (30 minutes) handles most recordings, but you might need to adjust based on your transcription service and typical file sizes.
+
+Setting this too low causes longer recordings to fail even when the transcription service is working normally. The recording appears stuck in processing, then eventually fails, frustrating users who must retry or give up. Setting it too high ties up system resources waiting for services that might have actually failed.
+
+Your optimal timeout depends on your transcription service's performance and your users' recording lengths. Monitor processing times for successful transcriptions and set the timeout comfortably above your longest normal processing time. If you regularly process multi-hour recordings, you might need 3,600 seconds or more.
+
+## Recording Disclaimer
+
+The recording disclaimer appears before users start any recording session, making it perfect for legal notices, policy reminders, or usage guidelines. This markdown-formatted message ensures users understand their responsibilities before creating content.
+
+Organizations often use this for compliance requirements - reminding users about consent requirements, data handling policies, or appropriate use guidelines. Educational institutions might note that recordings are for academic purposes only. Healthcare organizations could reference HIPAA compliance requirements.
+
+Keep disclaimers concise and relevant. Users see this message frequently, so lengthy legal text becomes an ignored click-through. Focus on the most important points, and link to detailed policies if needed. The markdown support lets you format the message clearly with bold text for emphasis or links to additional resources.
+
+## System-Wide Impact
+
+Every setting on this page affects all users immediately. Changes take effect as soon as you save them, without requiring system restarts or user logouts. This immediate application means you should test changes carefully and communicate significant modifications to your users.
+
+The refresh button reloads settings from the database, useful if multiple admins might be making changes or if you want to ensure you're seeing the latest values. The interface shows when each setting was last updated, helping you track changes over time.
+
+## Troubleshooting Common Issues
+
+When recordings fail consistently, check if they're hitting your configured limits. The error logs will indicate if files are too large or if processing is timing out. Users might not realize their recordings exceed limits, especially if they're uploading existing content rather than recording directly.
+
+If API costs spike unexpectedly, review your transcript length limit. A single user uploading many long recordings could dramatically increase consumption if no limit is set. The combination of user activity and system settings determines your actual costs.
+
+Processing backlogs might indicate your timeout is too high. If the system waits 30 minutes for each failed transcription attempt, a series of problematic files could block the queue for hours. Balance patience for slow processing with the need to fail fast when services are actually down.
+
+---
+
+Next: [Default Prompts](prompts.md) →
\ No newline at end of file
diff --git a/docs/admin-guide/user-management.md b/docs/admin-guide/user-management.md
new file mode 100644
index 00000000..de3c2b3b
--- /dev/null
+++ b/docs/admin-guide/user-management.md
@@ -0,0 +1,47 @@
+# User Management
+
+The User Management tab is command central for controlling who has access to your Speakr instance and what they can do with it. Every user account flows through here, from initial creation to eventual removal, with all the monitoring and adjustments needed along the way. For system-wide usage patterns, check [system statistics](statistics.md).
+
+![User Management](../assets/images/screenshots/Admin dashboard.png)
+
+## Understanding the User Table
+
+When you open User Management, you're greeted with a comprehensive table showing every user in your system. Each row tells a story - the email address identifies the user, the admin badge shows their privilege level, the recording count reveals their activity level, and the storage measurement demonstrates their resource consumption.
+
+The search bar at the top responds instantly as you type, filtering the table to help you find specific users quickly. This becomes invaluable as your user base grows beyond what fits on a single screen. The table updates in real-time when you make changes, so you always see the current state of your system.
+
+## Adding New Users
+
+Creating a user account starts with clicking the Add User button in the top right corner. The modal that appears asks for the essentials - username, email address, and password. You'll also decide immediately whether this person needs admin privileges, though you can always change this later.
+
+The username becomes their identity within Speakr, appearing in the interface and organizing their recordings. The email address serves dual purposes - it's their login credential and their contact point for any system communications. The password you set is temporary; users should change it immediately after their first login through their [account settings](../user-guide/settings.md). Configure initial [language preferences](../user-guide/settings.md#language-preferences) and [custom prompts](../user-guide/settings.md#custom-prompts-tab).
+
+Admin privileges are powerful and should be granted sparingly. Admin users can see and modify all [system settings](system-settings.md), manage other users including other admins, configure [default prompts](prompts.md), and monitor the [vector store](vector-store.md). Most users will never need these capabilities.
+
+## Managing Existing Users
+
+Each user row includes action buttons that give you complete control over that account. The edit button opens a modal where you can update their username or email address. This is useful when people change names, switch email providers, or when you need to correct initial entry mistakes.
+
+The admin toggle is perhaps the most powerful single click in the interface. Promoting a user to admin grants them access to everything you can see and do. Demoting an admin back to regular user immediately revokes all their administrative capabilities. The system prevents you from removing admin rights from your own account, ensuring you can't accidentally lock yourself out.
+
+The delete button requires careful consideration. Removing a user is permanent and cannot be undone through the interface. All their recordings, notes, and settings will be deleted along with their account. The system asks for confirmation, but once confirmed, the removal is immediate and complete.
+
+## Monitoring Usage Patterns
+
+The recording count and storage columns reveal how users interact with your Speakr instance. High recording counts might indicate power users who rely heavily on the system, while low counts could suggest users who need training or might not need accounts at all.
+
+Storage consumption tells another important story. Users with disproportionately high storage might be uploading very long recordings, keeping everything indefinitely, or possibly misusing the system. You can adjust [file size limits](system-settings.md#maximum-file-size) and review [chunking settings](../troubleshooting.md#files-over-25mb-fail-with-openai) if needed. This information helps you have informed conversations about resource usage and establish appropriate policies.
+
+Patterns often emerge when you regularly review this data. You might notice seasonal variations in academic settings, project-based spikes in corporate environments, or gradual growth that signals the need for infrastructure expansion.
+
+## Security Implications
+
+Every user account is a potential security vector. Strong passwords are your first defense, but they're not enough alone. Encourage users to use unique passwords, change them regularly, and never share them with others.
+
+Admin accounts require extra vigilance. Each admin can do everything you can do, including creating more admins or deleting all users. Limit admin access to the absolute minimum needed for operations. When someone no longer needs admin privileges, revoke them immediately.
+
+Inactive accounts pose particular risks. They might have weak or compromised passwords that no one is monitoring. Regular audits help you identify and remove these vulnerabilities before they become problems.
+
+---
+
+Next: [System Statistics](statistics.md) →
\ No newline at end of file
diff --git a/docs/admin-guide/vector-store.md b/docs/admin-guide/vector-store.md
new file mode 100644
index 00000000..15f7a48e
--- /dev/null
+++ b/docs/admin-guide/vector-store.md
@@ -0,0 +1,71 @@
+# Vector Store Management
+
+The Vector Store tab controls the intelligence behind Inquire Mode, Speakr's semantic search capability that lets users find information across all their recordings using natural language questions. This is where you monitor and manage the embedding system that transforms transcripts into searchable knowledge.
+
+![Vector Store Management](../assets/images/screenshots/Admin vector store.png)
+
+## Understanding Inquire Mode
+
+Before diving into management, it's worth understanding what you're managing. Inquire Mode breaks each transcript into overlapping chunks of text, converts these chunks into mathematical representations called embeddings, and stores them in a searchable format. When users ask questions, their query gets converted to the same mathematical format and compared against all stored chunks to find the most relevant information.
+
+This approach goes beyond simple keyword matching. The system understands that "budget concerns" relates to "financial constraints" and "cost overruns" even though the exact words differ. This semantic understanding makes Inquire Mode powerful for discovering information that users might not remember precisely.
+
+## The Embedding Model
+
+Your Speakr instance uses the all-MiniLM-L6-v2 model, shown prominently in the interface. This model generates 384-dimensional vectors - imagine each chunk of text mapped to a point in 384-dimensional space where similar meanings cluster together.
+
+This specific model was chosen carefully. Larger models exist with better accuracy, but they require GPUs and significant computational resources. The MiniLM model runs efficiently on CPU-only systems, making advanced search accessible without expensive infrastructure. It processes text quickly, understands context well, and produces compact embeddings that don't overwhelm your storage.
+
+The model works best with English text, as that's what dominated its training data. Other languages may work with varying success, but English content will always produce the most reliable results. This limitation is a trade-off for the model's efficiency and accessibility.
+
+## Processing Status Overview
+
+The status cards give you immediate insight into your vector store's health. Total Recordings shows how many audio files exist in your system, while Processed for Inquire indicates how many have been converted to searchable embeddings. These numbers should eventually match, though there's often a lag as background processing catches up.
+
+Need Processing reveals recordings waiting for embedding generation. This number grows when users upload new content and shrinks as the background processor works through the queue. A consistently high number might indicate processing has stalled or your system is overwhelmed.
+
+Total Chunks shows the granular pieces your recordings have been divided into. A typical one-hour recording might generate 50-60 chunks, depending on transcript density. This chunking ensures relevant segments can be found even in very long recordings.
+
+The Embeddings Status indicator provides a quick health check. "Available" in green means everything is working correctly. Other states might indicate the model is loading, processing is running, or attention is needed.
+
+## Processing Progress
+
+The processing progress bar shows real-time advancement through the embedding queue. When at 100%, all recordings are processed and searchable. Lower percentages indicate work in progress, with the bar filling as recordings are completed.
+
+This visual feedback helps you understand system status at a glance. A stuck progress bar suggests processing has stopped. Slow progress might indicate system resource constraints. Rapid progress shows everything is working efficiently.
+
+## Managing the Processing Queue
+
+The Refresh Status button updates all statistics and progress indicators, useful for monitoring active processing or verifying recent uploads have been queued. The interface doesn't auto-refresh, so manual refreshes ensure you're seeing current information.
+
+When the system shows recordings need processing but progress isn't advancing, several factors might be at play. The background processor might have stopped, the embedding model might have failed to load, or system resources might be exhausted. Check your logs for specific error messages.
+
+The processing system is designed to be resilient. If processing fails for a specific recording, the system marks it and moves on rather than getting stuck. These failures appear in your logs and might require manual intervention to resolve.
+
+## Optimizing Performance
+
+Processing performance depends heavily on your system resources. The embedding model needs about 500MB of RAM when loaded, plus additional memory for processing text. CPU speed directly impacts how quickly embeddings are generated - a modern multi-core processor can handle several recordings simultaneously.
+
+Disk I/O also matters. The system reads transcripts, processes them, and writes embeddings back to the database. Fast storage, particularly SSDs, significantly improves processing throughput. If your vector store is on a different disk than your transcripts, ensure both have adequate performance.
+
+Network latency shouldn't affect processing since everything happens locally, but database performance matters. Regular database maintenance, including index optimization and vacuum operations, keeps queries fast even as your vector store grows.
+
+## Troubleshooting Common Issues
+
+When Inquire Mode returns poor results despite processed recordings, the issue might be query formulation rather than the vector store. Encourage users to ask complete questions rather than typing keywords. "What did John say about the budget?" works better than just "John budget."
+
+If processing seems frozen, check whether the sentence-transformers library is properly installed. The system gracefully degrades without it, disabling Inquire Mode rather than crashing, but processing won't advance. Your logs will show whether the embedding model loaded successfully.
+
+Memory errors during processing usually indicate your system is trying to process too much simultaneously. The chunking system prevents individual recordings from overwhelming memory, but processing multiple large recordings in parallel might exceed available RAM.
+
+## Scaling Considerations
+
+The vector store grows predictably with your content. Each chunk requires about 2KB of storage for its embedding and metadata. A typical one-hour recording generating 50 chunks needs about 100KB of embedding storage. Ten thousand hours of recordings might require 100MB for embeddings - manageable even on modest systems.
+
+Search performance remains fast even with large vector stores thanks to efficient indexing. However, extremely large instances (hundreds of thousands of recordings) might benefit from dedicated vector database solutions rather than the built-in SQLite storage.
+
+If your instance grows beyond comfortable limits, consider archiving old recordings. The vector store only includes active recordings, so removing obsolete content improves both storage and search performance.
+
+---
+
+Return to [Admin Guide Overview](index.md) →
\ No newline at end of file
diff --git a/docs/assets/css/style.scss b/docs/assets/css/style.scss
new file mode 100644
index 00000000..00be0b30
--- /dev/null
+++ b/docs/assets/css/style.scss
@@ -0,0 +1,347 @@
+---
+---
+
+@import "{{ site.theme }}";
+
+// Custom colors
+:root {
+ --primary-color: #6366f1;
+ --secondary-color: #8b5cf6;
+ --accent-color: #ec4899;
+ --success-color: #10b981;
+ --warning-color: #f59e0b;
+ --danger-color: #ef4444;
+ --dark-bg: #1f2937;
+ --light-bg: #f9fafb;
+}
+
+// Override theme colors
+.page-header {
+ background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
+ padding: 3rem 1rem;
+}
+
+.site-footer {
+ background: var(--dark-bg);
+ color: #e5e7eb;
+ padding: 2rem 1rem;
+ margin-top: 3rem;
+}
+
+// Logo in header
+.project-logo {
+ width: 60px;
+ height: 60px;
+ margin-bottom: 1rem;
+ border-radius: 12px;
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
+}
+
+.project-name {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: 1rem;
+}
+
+// Navigation cards
+.grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
+ gap: 1.5rem;
+ margin: 2rem 0;
+}
+
+.card {
+ background: white;
+ border: 1px solid #e5e7eb;
+ border-radius: 12px;
+ padding: 1.5rem;
+ transition: all 0.3s ease;
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
+}
+
+.card:hover {
+ transform: translateY(-4px);
+ box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
+ border-color: var(--primary-color);
+}
+
+.card h3 {
+ color: var(--primary-color);
+ margin-top: 0;
+ margin-bottom: 0.5rem;
+ font-size: 1.25rem;
+}
+
+.card p {
+ color: #6b7280;
+ margin-bottom: 1rem;
+ line-height: 1.6;
+}
+
+.card .btn {
+ display: inline-block;
+ background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
+ color: white;
+ padding: 0.5rem 1.25rem;
+ border-radius: 8px;
+ text-decoration: none;
+ font-weight: 500;
+ transition: opacity 0.3s ease;
+}
+
+.card .btn:hover {
+ opacity: 0.9;
+}
+
+// Feature badges
+.badge {
+ display: inline-block;
+ padding: 0.25rem 0.75rem;
+ border-radius: 9999px;
+ font-size: 0.875rem;
+ font-weight: 500;
+ margin: 0 0.25rem;
+}
+
+.badge-new {
+ background: var(--success-color);
+ color: white;
+}
+
+.badge-beta {
+ background: var(--warning-color);
+ color: white;
+}
+
+// Screenshots
+img[src*="screenshots"] {
+ border: 1px solid #e5e7eb;
+ border-radius: 12px;
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
+ margin: 1.5rem 0;
+ max-width: 100%;
+ height: auto;
+}
+
+// Code blocks
+pre {
+ background: #1f2937;
+ color: #e5e7eb;
+ border-radius: 8px;
+ padding: 1rem;
+ overflow-x: auto;
+ margin: 1rem 0;
+ border: 1px solid #374151;
+}
+
+code {
+ background: #f3f4f6;
+ padding: 0.125rem 0.375rem;
+ border-radius: 4px;
+ font-size: 0.875em;
+ color: var(--primary-color);
+}
+
+pre code {
+ background: none;
+ padding: 0;
+ color: inherit;
+}
+
+// Tables
+table {
+ width: 100%;
+ border-collapse: separate;
+ border-spacing: 0;
+ border: 1px solid #e5e7eb;
+ border-radius: 8px;
+ overflow: hidden;
+ margin: 1.5rem 0;
+}
+
+th {
+ background: var(--light-bg);
+ padding: 0.75rem;
+ text-align: left;
+ font-weight: 600;
+ color: #374151;
+ border-bottom: 2px solid #e5e7eb;
+}
+
+td {
+ padding: 0.75rem;
+ border-bottom: 1px solid #e5e7eb;
+}
+
+tr:last-child td {
+ border-bottom: none;
+}
+
+tr:hover {
+ background: #f9fafb;
+}
+
+// Alerts and callouts
+.note, .warning, .tip {
+ padding: 1rem 1.25rem;
+ border-radius: 8px;
+ margin: 1.5rem 0;
+ border-left: 4px solid;
+}
+
+.note {
+ background: #eff6ff;
+ border-color: var(--primary-color);
+ color: #1e40af;
+}
+
+.warning {
+ background: #fef3c7;
+ border-color: var(--warning-color);
+ color: #92400e;
+}
+
+.tip {
+ background: #d1fae5;
+ border-color: var(--success-color);
+ color: #065f46;
+}
+
+// Sidebar navigation
+.sidebar {
+ background: white;
+ border-radius: 12px;
+ padding: 1.5rem;
+ border: 1px solid #e5e7eb;
+ margin-bottom: 2rem;
+}
+
+.sidebar h3 {
+ color: var(--primary-color);
+ margin-top: 0;
+ margin-bottom: 1rem;
+ font-size: 1.125rem;
+}
+
+.sidebar ul {
+ list-style: none;
+ padding: 0;
+ margin: 0;
+}
+
+.sidebar li {
+ margin-bottom: 0.5rem;
+}
+
+.sidebar a {
+ color: #6b7280;
+ text-decoration: none;
+ display: block;
+ padding: 0.5rem 0.75rem;
+ border-radius: 6px;
+ transition: all 0.2s ease;
+}
+
+.sidebar a:hover {
+ background: var(--light-bg);
+ color: var(--primary-color);
+}
+
+.sidebar a.active {
+ background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
+ color: white;
+}
+
+// Feature list
+.feature-list {
+ list-style: none;
+ padding: 0;
+}
+
+.feature-list li {
+ padding: 0.75rem 0;
+ border-bottom: 1px solid #e5e7eb;
+ display: flex;
+ align-items: flex-start;
+}
+
+.feature-list li:last-child {
+ border-bottom: none;
+}
+
+.feature-list li:before {
+ content: "✓";
+ color: var(--success-color);
+ font-weight: bold;
+ margin-right: 0.75rem;
+ font-size: 1.25rem;
+}
+
+// Responsive design
+@media (max-width: 768px) {
+ .grid {
+ grid-template-columns: 1fr;
+ }
+
+ .page-header {
+ padding: 2rem 1rem;
+ }
+
+ .project-name {
+ font-size: 1.75rem;
+ }
+}
+
+// Smooth scrolling
+html {
+ scroll-behavior: smooth;
+}
+
+// Better typography
+.main-content {
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
+ line-height: 1.7;
+ color: #374151;
+}
+
+h1, h2, h3, h4, h5, h6 {
+ font-weight: 600;
+ line-height: 1.3;
+ margin-top: 2rem;
+ margin-bottom: 1rem;
+}
+
+h1 {
+ font-size: 2.5rem;
+ color: var(--primary-color);
+}
+
+h2 {
+ font-size: 2rem;
+ color: #1f2937;
+ border-bottom: 2px solid #e5e7eb;
+ padding-bottom: 0.5rem;
+}
+
+h3 {
+ font-size: 1.5rem;
+ color: #374151;
+}
+
+// Animations
+@keyframes fadeIn {
+ from {
+ opacity: 0;
+ transform: translateY(10px);
+ }
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+}
+
+.main-content > * {
+ animation: fadeIn 0.5s ease-out;
+}
\ No newline at end of file
diff --git a/docs/assets/images/logo.png b/docs/assets/images/logo.png
new file mode 100644
index 00000000..7def29e9
Binary files /dev/null and b/docs/assets/images/logo.png differ
diff --git a/docs/assets/images/main2.png b/docs/assets/images/main2.png
new file mode 100644
index 00000000..5b863a2a
Binary files /dev/null and b/docs/assets/images/main2.png differ
diff --git a/docs/assets/images/screenshots/Admin dashboard.png b/docs/assets/images/screenshots/Admin dashboard.png
new file mode 100644
index 00000000..bf44097e
Binary files /dev/null and b/docs/assets/images/screenshots/Admin dashboard.png differ
diff --git a/docs/assets/images/screenshots/Admin default prompts.png b/docs/assets/images/screenshots/Admin default prompts.png
new file mode 100644
index 00000000..79163599
Binary files /dev/null and b/docs/assets/images/screenshots/Admin default prompts.png differ
diff --git a/docs/assets/images/screenshots/Admin stats.png b/docs/assets/images/screenshots/Admin stats.png
new file mode 100644
index 00000000..30ac8148
Binary files /dev/null and b/docs/assets/images/screenshots/Admin stats.png differ
diff --git a/docs/assets/images/screenshots/Admin system settings.png b/docs/assets/images/screenshots/Admin system settings.png
new file mode 100644
index 00000000..281a1564
Binary files /dev/null and b/docs/assets/images/screenshots/Admin system settings.png differ
diff --git a/docs/assets/images/screenshots/Admin vector store.png b/docs/assets/images/screenshots/Admin vector store.png
new file mode 100644
index 00000000..dacf6c70
Binary files /dev/null and b/docs/assets/images/screenshots/Admin vector store.png differ
diff --git a/docs/assets/images/screenshots/Filters.png b/docs/assets/images/screenshots/Filters.png
new file mode 100644
index 00000000..5b0774ad
Binary files /dev/null and b/docs/assets/images/screenshots/Filters.png differ
diff --git a/docs/assets/images/screenshots/Multilingual.png b/docs/assets/images/screenshots/Multilingual.png
new file mode 100644
index 00000000..15212e06
Binary files /dev/null and b/docs/assets/images/screenshots/Multilingual.png differ
diff --git a/docs/assets/images/screenshots/Record mic or system audio (for online meetings) and take markdown notes.png b/docs/assets/images/screenshots/Record mic or system audio (for online meetings) and take markdown notes.png
new file mode 100644
index 00000000..1b72b549
Binary files /dev/null and b/docs/assets/images/screenshots/Record mic or system audio (for online meetings) and take markdown notes.png differ
diff --git a/docs/assets/images/screenshots/Summary View.png b/docs/assets/images/screenshots/Summary View.png
new file mode 100644
index 00000000..c19fb6ca
Binary files /dev/null and b/docs/assets/images/screenshots/Summary View.png differ
diff --git a/docs/assets/images/screenshots/after recording, finalize tags and settings and notes before uploading or discard.png b/docs/assets/images/screenshots/after recording, finalize tags and settings and notes before uploading or discard.png
new file mode 100644
index 00000000..3bf32799
Binary files /dev/null and b/docs/assets/images/screenshots/after recording, finalize tags and settings and notes before uploading or discard.png differ
diff --git a/docs/assets/images/screenshots/chat view with question.png b/docs/assets/images/screenshots/chat view with question.png
new file mode 100644
index 00000000..748248db
Binary files /dev/null and b/docs/assets/images/screenshots/chat view with question.png differ
diff --git a/docs/assets/images/screenshots/edit recording modal.png b/docs/assets/images/screenshots/edit recording modal.png
new file mode 100644
index 00000000..85bf7367
Binary files /dev/null and b/docs/assets/images/screenshots/edit recording modal.png differ
diff --git a/docs/assets/images/screenshots/edit recording tags modal.png b/docs/assets/images/screenshots/edit recording tags modal.png
new file mode 100644
index 00000000..9d22da61
Binary files /dev/null and b/docs/assets/images/screenshots/edit recording tags modal.png differ
diff --git a/docs/assets/images/screenshots/edit transcript with ASR.png b/docs/assets/images/screenshots/edit transcript with ASR.png
new file mode 100644
index 00000000..37cccf90
Binary files /dev/null and b/docs/assets/images/screenshots/edit transcript with ASR.png differ
diff --git a/docs/assets/images/screenshots/full recording reprocessing.png b/docs/assets/images/screenshots/full recording reprocessing.png
new file mode 100644
index 00000000..42f94a61
Binary files /dev/null and b/docs/assets/images/screenshots/full recording reprocessing.png differ
diff --git a/docs/assets/images/screenshots/iinquire mode contextual searches.png b/docs/assets/images/screenshots/iinquire mode contextual searches.png
new file mode 100644
index 00000000..4e5ba34f
Binary files /dev/null and b/docs/assets/images/screenshots/iinquire mode contextual searches.png differ
diff --git a/docs/assets/images/screenshots/inquire mode 2.png b/docs/assets/images/screenshots/inquire mode 2.png
new file mode 100644
index 00000000..933413e6
Binary files /dev/null and b/docs/assets/images/screenshots/inquire mode 2.png differ
diff --git a/docs/assets/images/screenshots/inquire mode.png b/docs/assets/images/screenshots/inquire mode.png
new file mode 100644
index 00000000..78d8d0cc
Binary files /dev/null and b/docs/assets/images/screenshots/inquire mode.png differ
diff --git a/docs/assets/images/screenshots/live recording view with notes.png b/docs/assets/images/screenshots/live recording view with notes.png
new file mode 100644
index 00000000..48a6438c
Binary files /dev/null and b/docs/assets/images/screenshots/live recording view with notes.png differ
diff --git a/docs/assets/images/screenshots/main view no diarization.png b/docs/assets/images/screenshots/main view no diarization.png
new file mode 100644
index 00000000..1723ef6a
Binary files /dev/null and b/docs/assets/images/screenshots/main view no diarization.png differ
diff --git a/docs/assets/images/screenshots/new recording view.png b/docs/assets/images/screenshots/new recording view.png
new file mode 100644
index 00000000..13b9565a
Binary files /dev/null and b/docs/assets/images/screenshots/new recording view.png differ
diff --git a/docs/assets/images/screenshots/notes tab.png b/docs/assets/images/screenshots/notes tab.png
new file mode 100644
index 00000000..b4f5ae0c
Binary files /dev/null and b/docs/assets/images/screenshots/notes tab.png differ
diff --git a/docs/assets/images/screenshots/record from screen.png b/docs/assets/images/screenshots/record from screen.png
new file mode 100644
index 00000000..57ec65b8
Binary files /dev/null and b/docs/assets/images/screenshots/record from screen.png differ
diff --git a/docs/assets/images/screenshots/record from tab.png b/docs/assets/images/screenshots/record from tab.png
new file mode 100644
index 00000000..a3beb1c9
Binary files /dev/null and b/docs/assets/images/screenshots/record from tab.png differ
diff --git a/docs/assets/images/screenshots/recording view with simple transcription view and chat visible.png b/docs/assets/images/screenshots/recording view with simple transcription view and chat visible.png
new file mode 100644
index 00000000..9ed3b395
Binary files /dev/null and b/docs/assets/images/screenshots/recording view with simple transcription view and chat visible.png differ
diff --git a/docs/assets/images/screenshots/settings Tags that allow custom prompts stackable and custom asr settings.png b/docs/assets/images/screenshots/settings Tags that allow custom prompts stackable and custom asr settings.png
new file mode 100644
index 00000000..c13e8ec1
Binary files /dev/null and b/docs/assets/images/screenshots/settings Tags that allow custom prompts stackable and custom asr settings.png differ
diff --git a/docs/assets/images/screenshots/settings about page.png b/docs/assets/images/screenshots/settings about page.png
new file mode 100644
index 00000000..df9fc0b2
Binary files /dev/null and b/docs/assets/images/screenshots/settings about page.png differ
diff --git a/docs/assets/images/screenshots/settings account info.png b/docs/assets/images/screenshots/settings account info.png
new file mode 100644
index 00000000..7c665a4b
Binary files /dev/null and b/docs/assets/images/screenshots/settings account info.png differ
diff --git a/docs/assets/images/screenshots/settings custom prompts.png b/docs/assets/images/screenshots/settings custom prompts.png
new file mode 100644
index 00000000..1b6c8d12
Binary files /dev/null and b/docs/assets/images/screenshots/settings custom prompts.png differ
diff --git a/docs/assets/images/screenshots/settings shared transcripts.png b/docs/assets/images/screenshots/settings shared transcripts.png
new file mode 100644
index 00000000..f55a09b5
Binary files /dev/null and b/docs/assets/images/screenshots/settings shared transcripts.png differ
diff --git a/docs/assets/images/screenshots/settings speakr management.png b/docs/assets/images/screenshots/settings speakr management.png
new file mode 100644
index 00000000..d447369f
Binary files /dev/null and b/docs/assets/images/screenshots/settings speakr management.png differ
diff --git a/docs/assets/images/screenshots/share recording modal.png b/docs/assets/images/screenshots/share recording modal.png
new file mode 100644
index 00000000..bd075daf
Binary files /dev/null and b/docs/assets/images/screenshots/share recording modal.png differ
diff --git a/docs/assets/images/screenshots/share recording.png b/docs/assets/images/screenshots/share recording.png
new file mode 100644
index 00000000..00b3a3ec
Binary files /dev/null and b/docs/assets/images/screenshots/share recording.png differ
diff --git a/docs/assets/images/screenshots/shared recording.png b/docs/assets/images/screenshots/shared recording.png
new file mode 100644
index 00000000..81d81fc5
Binary files /dev/null and b/docs/assets/images/screenshots/shared recording.png differ
diff --git a/docs/assets/images/screenshots/shared transcript modal.png b/docs/assets/images/screenshots/shared transcript modal.png
new file mode 100644
index 00000000..9340b618
Binary files /dev/null and b/docs/assets/images/screenshots/shared transcript modal.png differ
diff --git a/docs/assets/images/screenshots/speaker id modal.png b/docs/assets/images/screenshots/speaker id modal.png
new file mode 100644
index 00000000..1345e587
Binary files /dev/null and b/docs/assets/images/screenshots/speaker id modal.png differ
diff --git a/docs/assets/images/screenshots/summary reprocessing modal.png b/docs/assets/images/screenshots/summary reprocessing modal.png
new file mode 100644
index 00000000..921f4b04
Binary files /dev/null and b/docs/assets/images/screenshots/summary reprocessing modal.png differ
diff --git a/docs/assets/images/screenshots/tag selection and stacking.png b/docs/assets/images/screenshots/tag selection and stacking.png
new file mode 100644
index 00000000..413e2671
Binary files /dev/null and b/docs/assets/images/screenshots/tag selection and stacking.png differ
diff --git a/docs/assets/images/speakr-logo.png b/docs/assets/images/speakr-logo.png
new file mode 100644
index 00000000..7def29e9
Binary files /dev/null and b/docs/assets/images/speakr-logo.png differ
diff --git a/docs/ci-cd-setup.md b/docs/ci-cd-setup.md
new file mode 100644
index 00000000..cd54d147
--- /dev/null
+++ b/docs/ci-cd-setup.md
@@ -0,0 +1,89 @@
+# CI/CD Setup for Speakr
+
+This document explains how the Continuous Integration and Continuous Deployment (CI/CD) pipeline is set up for the Speakr project.
+
+## Automatic Docker Image Building and Publishing
+
+The Speakr project uses GitHub Actions to automatically build and publish Docker images to Docker Hub whenever changes are pushed to the repository.
+
+### How It Works
+
+1. When code is pushed to the `master` branch or a new tag is created (in the format `v*.*.*`), the GitHub Actions workflow is triggered.
+2. The workflow builds a Docker image using the project's Dockerfile.
+3. If the trigger was a push to the `master` branch, the image is tagged with:
+ - `latest`
+ - The short SHA of the commit
+ - The branch name (`master`)
+4. If the trigger was a new tag (e.g., `v1.2.3`), the image is tagged with:
+ - The full version (`1.2.3`)
+ - The major.minor version (`1.2`)
+ - The tag name (`v1.2.3`)
+5. The image is then pushed to Docker Hub under your account.
+
+### Setup Instructions
+
+To set up automatic Docker image publishing, follow these steps:
+
+1. **Create a Docker Hub Account** (if you don't already have one):
+ - Go to [Docker Hub](https://hub.docker.com/) and sign up for an account.
+ - Create a repository named `speakr`.
+
+2. **Create a Docker Hub Access Token**:
+ - Log in to Docker Hub.
+ - Go to your account settings by clicking on your username in the top-right corner and selecting "Account Settings".
+ - Navigate to the "Security" tab.
+ - Click "New Access Token".
+ - Give your token a name (e.g., "GitHub Actions") and set the appropriate permissions (at least "Read & Write").
+ - Copy the generated token (you won't be able to see it again).
+
+3. **Add Docker Hub Credentials to GitHub Secrets**:
+ - Go to your GitHub repository.
+ - Click on "Settings" > "Secrets and variables" > "Actions".
+ - Click "New repository secret".
+ - Add the following secrets:
+ - Name: `DOCKERHUB_USERNAME`, Value: Your Docker Hub username
+ - Name: `DOCKERHUB_TOKEN`, Value: The access token you generated in the previous step
+
+4. **Verify the Workflow**:
+ - The workflow file is located at `.github/workflows/docker-publish.yml`.
+ - It's already configured to build and push Docker images to Docker Hub.
+ - You can customize it further if needed.
+
+5. **Trigger the Workflow**:
+ - Push a change to the `master` branch or create a new tag to trigger the workflow.
+ - Go to the "Actions" tab in your GitHub repository to monitor the workflow's progress.
+
+### Using the Published Docker Images
+
+Once the images are published to Docker Hub, you can use them in your docker-compose.yml file:
+
+```yaml
+version: '3.8'
+
+services:
+ app:
+ image: learnedmachine/speakr:latest
+ container_name: speakr
+ restart: unless-stopped
+ ports:
+ - "8899:8899"
+ volumes:
+ - ./uploads:/data/uploads
+ - ./instance:/data/instance
+ env_file:
+ - .env
+```
+
+### Versioning Strategy
+
+To create a new version of your application:
+
+1. Make your changes and commit them to the repository.
+2. Create a new tag following semantic versioning:
+ ```bash
+ git tag v1.0.0 # Replace with the appropriate version number
+ git push origin v1.0.0
+ ```
+3. The GitHub Actions workflow will automatically build and publish a new Docker image with the appropriate version tags.
+
+This allows users to choose between using the latest version (`learnedmachine/speakr:latest`) or a specific version (`learnedmachine/speakr:1.0.0`).
diff --git a/docs/faq.md b/docs/faq.md
new file mode 100644
index 00000000..8b2690b5
--- /dev/null
+++ b/docs/faq.md
@@ -0,0 +1,151 @@
+# Frequently Asked Questions
+
+These are the questions that come up most often when people start using Speakr. The answers here will save you time and help you understand how to get the most from the platform.
+
+## General Questions
+
+### What is Speakr exactly?
+
+Speakr is a self-hosted web application that transforms your audio recordings into organized, searchable, and intelligent notes. It combines [transcription](features.md#core-transcription-features), [AI summarization](features.md#automatic-summarization), [speaker identification](features.md#speaker-diarization), and [semantic search](user-guide/inquire-mode.md) into a single platform you control completely. If you self-host an ASR model like a Whisper endpoint or the recommended ASR service, and an openAI compatible API for LLMs, your data never leaves your infrastructure, giving you complete privacy and control.
+
+### How is Speakr different from other transcription services?
+
+The key difference is self-hosting - you run Speakr on your own server, keeping complete control of your data. Beyond privacy, Speakr integrates transcription with AI-powered features like [intelligent summarization](features.md#automatic-summarization), [interactive chat](user-guide/transcripts.md) with your recordings, and [semantic search](user-guide/inquire-mode.md) across all your content. It's not just about converting speech to text; it's about making that text useful and accessible.
+
+### What audio formats does Speakr support?
+
+Speakr handles most common audio formats including MP3, WAV, M4A, OGG, FLAC, and more. The system uses FFmpeg internally to process audio, so essentially any format FFmpeg supports will work. Video files containing audio tracks are also supported - Speakr will extract and process the audio component.
+
+### Can multiple people use the same Speakr instance?
+
+Yes, Speakr is designed as a multi-user system. Each user has their own account with separate recordings, settings, and speaker libraries. Admins can [create and manage user accounts](admin-guide/user-management.md). See [system statistics](admin-guide/statistics.md) to monitor usage, monitor usage, and configure system-wide settings. Users can't see each other's recordings unless explicitly shared through [share links](user-guide/sharing.md). Learn about [sharing security](user-guide/sharing.md#security-and-privacy-considerations).
+
+## Installation and Setup
+
+### What are the minimum system requirements?
+
+Speakr runs comfortably on modest hardware. You need at least 2GB of RAM, though 4GB is recommended for better performance. CPU requirements depend on your usage - a dual-core processor handles single-user instances fine, while busy multi-user installations benefit from more cores. Storage needs depend on your recording volume, but start with at least 20GB free space for the application and initial recordings.
+
+### Do I need to know Docker to install Speakr?
+
+Basic Docker knowledge helps but isn't essential. The [quick start guide](getting-started.md) provides exact commands to copy and run. For production deployments, see the [installation guide](getting-started/installation.md). You'll need to install Docker and Docker Compose on your server, create a configuration file with your API keys, then run a single command to start everything. The hardest part is usually getting your API keys from OpenAI or OpenRouter.
+
+### Can I run Speakr on a Raspberry Pi?
+
+Yes, Speakr can run on a Raspberry Pi 4 or newer with at least 4GB of RAM. Performance won't match a full server, especially for transcription processing, but it's perfectly usable for personal use. The ARM-compatible Docker images work out of the box. Just be patient with longer processing times for large recordings.
+
+### How do I backup my Speakr data?
+
+Your Speakr data consists of three essential components: the SQLite database in the `instance/` directory, audio files and transcriptions in the `uploads/` directory, and your configuration in the `.env` file. To create a complete backup, stop the container first to ensure database consistency, then backup all three directories:
+
+```bash
+docker compose down
+tar czf speakr_backup_$(date +%Y%m%d).tar.gz uploads/ instance/ .env
+docker compose up -d
+```
+
+Regular automated backups are highly recommended for production use.
+
+## Transcription and AI Features
+
+### How accurate is the transcription?
+
+Transcription accuracy depends on several factors - audio quality, speaker clarity, background noise, and technical vocabulary. See the [troubleshooting guide](troubleshooting.md#poor-transcription-quality) for tips. Configure [custom prompts](admin-guide/prompts.md) for technical vocabulary. With good audio, expect 90-95% accuracy for clear English speech. Accuracy decreases with heavy accents, multiple overlapping speakers, or poor recording quality. The ASR endpoint with speaker diarization often provides better practical usability even if raw accuracy is similar.
+
+### What's the difference between Whisper API and ASR endpoints?
+
+Whisper API provides basic transcription - converting speech to text without speaker identification. The [recommended ASR container](getting-started.md#option-b-custom-asr-endpoint-configuration) (`onerahmet/openai-whisper-asr-webservice`) offers advanced features like [speaker diarization](features.md#speaker-diarization), which identifies and labels different speakers in the conversation. Learn to [manage speakers](user-guide/transcripts.md#speaker-identification) after transcription. Diarization is essential for meetings with multiple participants, while Whisper API works fine for single-speaker recordings like dictations or podcasts.
+
+### Can Speakr transcribe languages other than English?
+
+Yes, Speakr supports multiple languages through its transcription services. Whisper models handle dozens of languages with varying accuracy - major languages like Spanish, French, German, and Chinese work well, while less common languages may have reduced accuracy. Set your preferred language in [account settings](user-guide/settings.md#language-preferences) or leave it blank for automatic detection. See [language support details](features.md#language-support).
+
+### How long can my recordings be?
+
+There's no hard limit on recording length, but practical considerations apply. Very long recordings (over 2-3 hours) take longer to process, use more API credits, and can make the interface sluggish. The file upload limit defaults to 300MB, which accommodates several hours of compressed audio. For very long content like all-day workshops, consider splitting into logical segments.
+
+### What AI model generates the summaries?
+
+Summary generation uses the language model configured in your [environment file](getting-started.md#step-3-configure-your-transcription-service). Customize summaries with [AI prompts](admin-guide/prompts.md) - through a local LLM endpoint or a Cloud provider like OpenAI or OpenRouter. The model choice affects [summary quality](features.md#automatic-summarization), cost, and processing speed. Monitor performance in [system statistics](admin-guide/statistics.md).
+
+## Privacy and Security
+
+### Is my data really private?
+
+When self-hosted properly, your audio and transcriptions never leave your server. However, the transcription and summarization APIs (OpenAI, OpenRouter) do process your content on their servers. For complete privacy, you'd need to use local models for both transcription and summarization, which requires significant computational resources.
+
+### Can I use Speakr for confidential business meetings?
+
+Yes, with appropriate precautions. Self-hosting keeps data under your control, but consider your API provider's data policies. OpenAI and OpenRouter have different data retention and usage policies. For maximum security, use local transcription and summarization models, though this requires powerful hardware and technical expertise.
+
+### Are share links secure?
+
+[Share links](user-guide/sharing.md) use cryptographically secure random tokens that are impossible to guess. Manage shared recordings from the [sharing dashboard](user-guide/sharing.md#managing-your-shared-recordings). However, anyone with the link can access the shared content without authentication. Treat share links like passwords - only send them through secure channels and revoke access when no longer needed. For sensitive content, consider alternative sharing methods that require authentication.
+
+### Who can see my recordings?
+
+Only you can see your recordings by default. [Admin users](admin-guide/user-management.md) cannot directly view other users' recordings through the interface, though they can monitor [usage patterns](admin-guide/statistics.md), though they have database access that could theoretically allow it. Shared recordings are accessible to anyone with the share link. Other users on the same Speakr instance cannot see your recordings unless you explicitly share them.
+
+## Features and Functionality
+
+### What is Inquire Mode?
+
+[Inquire Mode](user-guide/inquire-mode.md) is Speakr's semantic search feature that lets you find information across all your recordings using natural language questions. The [vector store](admin-guide/vector-store.md) must be configured for this to work. Instead of searching for exact keywords, you can ask questions like "What did we decide about the marketing budget?" and get relevant excerpts from any recording that discussed that topic. It uses AI embeddings to understand meaning and context.
+
+### How do speaker profiles work?
+
+When you [identify speakers](user-guide/transcripts.md#speaker-identification) in a transcription by clicking on generic labels (SPEAKER_01, etc.) and assigning names, Speakr saves these as speaker profiles. Manage them in [account settings](user-guide/settings.md#speakers-management-tab). In future updates, we intend to add functionality to allow recordings can then use these profiles to automatically suggest speaker identities based on voice characteristics. Over time, you build a library of recognized speakers that makes multi-person transcriptions much more useful.
+
+### Can I edit transcriptions after they're generated?
+
+Yes, transcriptions are fully editable. Click the Edit button above any transcription to make corrections. See the [transcripts guide](user-guide/transcripts.md#editing-transcriptions) for editing options. This is particularly useful for fixing misrecognized technical terms, proper names, or correcting speaker assignments. Your edits are preserved - they won't be lost if you regenerate the summary or use the [chat feature](user-guide/transcripts.md). Export edited transcripts using [various formats](user-guide/transcripts.md).
+
+### What export formats are available?
+
+Speakr can export recordings in multiple formats. Copy transcriptions directly to your clipboard for pasting into other applications. Learn about [export options](features.md#export-options) and [sharing](user-guide/sharing.md). Download complete recordings as Word documents (.docx) including transcription, summary, and notes. [Share links](user-guide/sharing.md) provide read-only web access. Configure what's visible in [share settings](user-guide/sharing.md#creating-a-share-link). The chat history can also be exported for documentation purposes.
+
+## Troubleshooting
+
+### Why is transcription taking so long?
+
+Several factors affect transcription speed - file size, API service load, network speed, and model selection. Large files naturally take longer. API services can slow down during peak usage. Slow internet connections create bottlenecks uploading audio. Using larger, more accurate models like Whisper Large takes longer than smaller models.
+
+### My recordings are stuck in "pending" status
+
+This usually means the background processor has stopped or encountered an error. Check the Docker logs for error messages. See the [troubleshooting guide](troubleshooting.md#transcription-never-starts) for details. Monitor processing in [vector store](admin-guide/vector-store.md). Common causes include invalid API keys, exceeded API quotas, or network connectivity issues. Restarting the container often resolves temporary issues. Check your API provider's dashboard for usage limits or billing problems.
+
+### Why can't I share recordings?
+
+[Sharing](user-guide/sharing.md) requires your Speakr instance to be accessible from the internet with HTTPS/SSL encryption. Check [sharing requirements](user-guide/sharing.md#requirements-for-sharing) and [troubleshooting](troubleshooting.md#sharing-links-dont-work). Local installations or non-HTTPS setups cannot generate working share links. The system disables sharing features when these requirements aren't met. To enable sharing, deploy Speakr on a public server with a domain name and SSL certificate.
+
+### The interface is slow with large transcriptions
+
+Browsers struggle displaying very large amounts of text, especially in the bubble view with speaker diarization. For recordings over 2 hours, consider using the simple view instead of bubble view. Clear your browser cache if performance degrades over time. Breaking very long recordings into segments improves both performance and usability.
+
+## Best Practices
+
+### How should I organize my recordings?
+
+Develop a consistent [tagging system](user-guide/settings.md#tag-management-tab) early. Create tags for different projects, meeting types, or clients. Tags can include [custom prompts](admin-guide/prompts.md) for specialized processing. Use descriptive titles that will help you find recordings months later. Add notes immediately after recordings while context is fresh. Regular maintenance - archiving old recordings and cleaning up test files - keeps your library manageable.
+
+### Do I need to inform people they're being recorded?
+
+Legal requirements vary by jurisdiction. Many regions require explicit consent from all parties being recorded. Speakr includes a configurable [recording disclaimer](admin-guide/system-settings.md#recording-disclaimer) feature. See [compliance considerations](troubleshooting.md#recording-disclaimer-for-legal-compliance). Set appropriate legal text that displays before recordings start. Consult local laws to ensure compliance - this is especially important in regions with strict recording laws like the EU, California, or Australia.
+
+### What's the best audio quality for transcription?
+
+Record in quiet environments when possible. Use a good microphone positioned close to speakers. For meetings, place the recording device centrally where all participants are clearly audible. Avoid background music or TV noise. Higher quality audio not only improves transcription accuracy but also reduces processing time and API costs.
+
+### How can I maximize transcription accuracy?
+
+Speak clearly and avoid talking over others. Minimize background noise and echo. For technical content, consider adding a custom vocabulary or glossary to your [prompts](admin-guide/prompts.md). Users can set [personal prompts](user-guide/settings.md#custom-prompts-tab) for their recordings. Use the appropriate [language setting](user-guide/settings.md#language-preferences) rather than relying on auto-detection. Review [language support](features.md#language-support) for best results. For multi-speaker recordings, use the [ASR endpoint](getting-started.md#option-b-custom-asr-endpoint-configuration) with appropriate speaker count settings. [Identify speakers](user-guide/transcripts.md#speaker-identification) after transcription for best results.
+
+For Chinese transcription specifically, use the large-v3 model as smaller models may not output Chinese characters correctly. For other languages, test different models to find the best accuracy for your specific language and accent.
+
+### What's the difference between chunking by size vs duration?
+
+Chunking by file size (e.g., CHUNK_LIMIT=20MB) works well for consistent bitrate audio. Chunking by duration (e.g., CHUNK_LIMIT=1400s) is better when your transcription service has time limits, like Azure's 1500-second maximum. Duration-based chunking ensures no chunk exceeds the time limit regardless of file compression or quality.
+
+---
+
+Return to [Home](index.md) →
\ No newline at end of file
diff --git a/docs/favicon.ico b/docs/favicon.ico
new file mode 100644
index 00000000..edf51c57
Binary files /dev/null and b/docs/favicon.ico differ
diff --git a/docs/features.md b/docs/features.md
new file mode 100644
index 00000000..8e2f08c2
--- /dev/null
+++ b/docs/features.md
@@ -0,0 +1,105 @@
+# Features
+
+Speakr combines powerful transcription capabilities with intelligent AI features to transform your audio recordings into valuable, actionable knowledge. Every feature is designed to save time and extract maximum value from your spoken content.
+
+## Core Transcription Features
+
+### Multi-Engine Support
+
+Speakr supports multiple transcription engines to match your needs and budget. Use [OpenAI's Whisper API](getting-started.md#option-a-openai-whisper-configuration) for quick, cloud-based transcription with excellent accuracy. Deploy the [recommended ASR container](getting-started.md#option-b-custom-asr-endpoint-configuration) for advanced features like speaker diarization and local processing. See the [installation guide](getting-started/installation.md) for detailed setup instructions. The system automatically handles different audio formats, converting them as needed for optimal transcription quality.
+
+### Speaker Diarization
+
+When using the [ASR endpoint](getting-started.md#option-b-custom-asr-endpoint-configuration), Speakr automatically identifies different speakers in your recordings. If you encounter issues, check the [troubleshooting guide](troubleshooting.md#speaker-identification-not-working). Each speaker gets a unique label that you can later customize with actual names. The system remembers these speaker profiles, building a library that improves identification accuracy over time. Manage your speaker library in [account settings](user-guide/settings.md). This feature transforms multi-person meetings from walls of text into organized conversations.
+
+### Language Support
+
+Transcribe content in dozens of languages with automatic detection or manual selection. Major languages like English, Spanish, French, German, and Chinese receive excellent support with high accuracy. The system handles multilingual content gracefully, switching between languages as needed within the same recording.
+
+## AI-Powered Intelligence
+
+### Automatic Summarization
+
+Every recording receives an AI-generated summary that captures key points, decisions, and action items. Configure this through [custom prompts](admin-guide/prompts.md). Users can also set [personal prompts](user-guide/settings.md#custom-prompts-tab) for their recordings. Summaries adapt to your content type - technical meetings get detailed technical summaries, while casual conversations receive lighter overviews. Custom prompts let you shape summaries to match your specific needs.
+
+### Interactive Chat
+
+Transform static transcripts into dynamic conversations with the integrated chat feature. Learn how to use AI chat effectively in the [transcripts guide](user-guide/transcripts.md). Ask questions about your recordings and receive intelligent answers based on the actual content. Request custom summaries, extract specific information, or generate derivative content like emails or reports. The AI maintains context throughout the conversation, allowing complex multi-turn interactions.
+
+### Semantic Search (Inquire Mode)
+
+Search across all your recordings using natural language questions instead of keywords through [Inquire Mode](user-guide/inquire-mode.md). The [vector store](admin-guide/vector-store.md) must be configured for this feature to work. The semantic search understands meaning and context, finding relevant content even when exact words don't match. Ask questions like "When did we discuss the budget increase?" and get results from any recording that covered that topic, regardless of the specific terminology used.
+
+## Organization and Management
+
+### Tagging System
+
+Organize recordings with a flexible [tagging system](user-guide/settings.md#tag-management-tab) that goes beyond simple labels. Tags can include [custom AI prompts](admin-guide/prompts.md) for specialized processing. Each tag can carry [custom AI prompts](admin-guide/prompts.md) and transcription settings, enabling automatic specialized processing based on content type, automatically applying specialized processing to tagged recordings. Tags use colors for visual organization and stack intelligently when multiple tags apply to the same recording.
+
+### Speaker Management
+
+Build and maintain a library of speaker profiles that persist across recordings. [Identify speakers](user-guide/transcripts.md#speaker-identification) after each transcription to build your library. Once identified, speakers are remembered and suggested in future recordings. The system tracks usage statistics, showing how often each speaker appears and when they were last identified. Bulk management tools help maintain a clean, organized speaker library.
+
+### Custom Prompts
+
+Shape AI behavior with [custom prompts](admin-guide/prompts.md) at multiple levels. Understand the [prompt hierarchy](admin-guide/prompts.md#understanding-prompt-hierarchy) for effective configuration. Personal prompts apply to all your recordings, while tag-specific prompts activate for particular content types. The hierarchical system ensures the right prompt applies to each recording, with intelligent stacking when multiple prompts are relevant.
+
+## Sharing and Collaboration
+
+### Secure Share Links
+
+Generate cryptographically secure links to [share recordings](user-guide/sharing.md) with people outside your Speakr instance. Note the [requirements for sharing](user-guide/sharing.md#requirements-for-sharing). Control exactly what recipients see - include or exclude summaries and notes based on your needs. Share links work on any device without requiring accounts or authentication.
+
+### Export Options
+
+Export recordings in multiple formats for different purposes. Generate Word documents with complete transcripts, summaries, and notes for formal documentation. Copy formatted text to clipboards for quick sharing. Export individual components like summaries or notes for focused distribution.
+
+### Real-Time Monitoring
+
+Track all your shared recordings from a central dashboard. See what's been shared, when, and with what permissions. Modify share settings without generating new links, or instantly revoke access when shares are no longer appropriate.
+
+## Advanced Capabilities
+
+### Audio Chunking
+
+Handle large audio files that exceed API limits through intelligent chunking. See the [troubleshooting guide](troubleshooting.md#files-over-25mb-fail-with-openai) for configuration details. Learn about [chunking strategies](faq.md#whats-the-difference-between-chunking-by-size-vs-duration) in the FAQ. The system automatically splits long recordings into manageable segments, processes them separately, then seamlessly reassembles the results. Configure chunk size by duration or file size to match your API provider's requirements.
+
+### Black Hole Processing
+
+Set up a watched directory where dropped audio files are automatically processed. Configure this in [system settings](admin-guide/system-settings.md) for automated workflows. Perfect for automation workflows or batch processing, the black hole directory monitors for new files and queues them for transcription without manual intervention.
+
+### Custom ASR Configuration
+
+Fine-tune transcription for specific scenarios with custom ASR settings. See [ASR configuration](troubleshooting.md#asr-endpoint-returns-405-or-404-errors) for common setup issues. Set expected speaker counts for different meeting types. Configure specialized models for technical vocabulary or specific accents. Apply these settings automatically through the tagging system.
+
+## User Experience
+
+### Progressive Web App
+
+Install Speakr as a progressive web app for a native-like experience on any device. The PWA works offline for viewing existing recordings and syncs when connectivity returns. Mobile-optimized interfaces ensure smooth operation on phones and tablets.
+
+### Dark Mode
+
+Reduce eye strain with a full dark mode implementation that affects every interface element. The theme preference persists across sessions and devices, automatically applying your choice whenever you log in.
+
+### Responsive Design
+
+Access Speakr from any device with interfaces that adapt to screen size. Desktop users get a full three-panel layout with simultaneous access to recordings, transcripts, and chat. Mobile users receive a streamlined interface optimized for touch interaction and smaller screens.
+
+## Administrative Control
+
+### Multi-User Support
+
+Run a single Speakr instance for your entire team with isolated user spaces. See [user management](admin-guide/user-management.md) for details. The [FAQ](faq.md#can-multiple-people-use-the-same-speakr-instance) explains the multi-user architecture. Each user maintains their own recordings, settings, and speaker libraries. Administrators manage users, monitor usage, and configure system-wide settings without accessing individual recordings.
+
+### System Monitoring
+
+Track system health with comprehensive statistics and metrics. Monitor transcription queues, storage usage, and processing performance. Identify bottlenecks and optimize configuration based on actual usage patterns.
+
+### Flexible Configuration
+
+Configure every aspect of Speakr through [environment variables](getting-started.md#step-3-configure-your-transcription-service) and [admin settings](admin-guide/index.md). Check [system settings](admin-guide/system-settings.md) for global configuration options. Set API endpoints, adjust processing limits, enable or disable features, and customize the user experience. The system adapts to your infrastructure and requirements.
+
+---
+
+Return to [Home](index.md) →
\ No newline at end of file
diff --git a/docs/getting-started.md b/docs/getting-started.md
new file mode 100644
index 00000000..a6e40eb2
--- /dev/null
+++ b/docs/getting-started.md
@@ -0,0 +1,178 @@
+# Quick Start Guide
+
+Get Speakr up and running in just a few minutes using the pre-built Docker image! This guide will walk you through the fastest way to deploy Speakr with either OpenAI Whisper API or a [custom ASR endpoint](features.md#speaker-diarization).
+
+## Prerequisites
+
+Before you begin, make sure you have Docker and Docker Compose installed on your system. You'll also need an API key for either OpenAI or OpenRouter (or a compatible service), at least 2GB of available RAM, and about 10GB of available disk space for storing recordings and transcriptions.
+
+## Step 1: Create Project Directory
+
+First, create a directory for your Speakr installation and navigate into it:
+
+```bash
+mkdir speakr
+cd speakr
+```
+
+## Step 2: Download Configuration Files
+
+Download the Docker Compose configuration and choose the appropriate environment template based on your transcription service:
+
+```bash
+# Download docker compose example
+wget https://raw.githubusercontent.com/murtaza-nasir/speakr/master/docker-compose.example.yml -O docker-compose.yml
+```
+
+Now download the environment configuration template. You have two options depending on which transcription service you want to use.
+
+For standard OpenAI Whisper API (recommended for most users):
+```bash
+wget https://raw.githubusercontent.com/murtaza-nasir/speakr/master/env.whisper.example -O .env
+```
+
+Or for a custom ASR endpoint with speaker diarization:
+```bash
+wget https://raw.githubusercontent.com/murtaza-nasir/speakr/master/env.asr.example -O .env
+```
+
+## Step 3: Configure Your Transcription Service
+
+Open the `.env` file in your preferred text editor and configure it based on your chosen service.
+
+### Option A: OpenAI Whisper Configuration
+
+If you're using OpenAI Whisper, you'll need to set up both the transcription service and the text generation model. The text generation model is used for creating summaries, generating titles, and powering the chat features.
+
+Edit your `.env` file and update these key variables:
+
+```bash
+# For text generation (summaries, chat, titles)
+TEXT_MODEL_BASE_URL=https://openrouter.ai/api/v1
+TEXT_MODEL_API_KEY=your_openrouter_api_key_here
+TEXT_MODEL_NAME=openai/gpt-4o-mini
+
+# For transcription
+TRANSCRIPTION_BASE_URL=https://api.openai.com/v1
+TRANSCRIPTION_API_KEY=your_openai_api_key_here
+WHISPER_MODEL=whisper-1
+```
+
+The text model can use OpenRouter for access to various AI models, or you can point it directly to OpenAI by using the same base URL and API key as your transcription service. OpenRouter provides access to multiple models including GPT-4, Claude, and others, which can be more cost-effective for text generation tasks.
+
+### Option B: Custom ASR Endpoint Configuration
+
+If you're using a custom ASR service like WhisperX or a self-hosted Whisper server, configure these variables:
+
+```bash
+# For text generation (summaries, chat, titles)
+TEXT_MODEL_BASE_URL=https://openrouter.ai/api/v1
+TEXT_MODEL_API_KEY=your_openrouter_api_key_here
+TEXT_MODEL_NAME=openai/gpt-4o-mini
+
+# Enable ASR endpoint
+USE_ASR_ENDPOINT=true
+
+# ASR service URL (use container name if in same docker compose)
+ASR_BASE_URL=http://whisper-asr:9000
+```
+
+When using an ASR endpoint, [speaker diarization](features.md#speaker-diarization) is automatically enabled, allowing Speakr to identify different speakers in your recordings. After transcription, you'll need to [identify speakers](user-guide/transcripts.md#speaker-identification) to build your speaker library. The ASR_BASE_URL should point to your ASR service. If you're running the ASR service in the same Docker Compose stack, use the container name and internal port (like `http://whisper-asr:9000`). For external services, use the full URL with the appropriate IP address or domain name.
+
+## Step 4: Configure Admin Account
+
+Speakr automatically creates an admin user on first startup. Configure these credentials in your `.env` file before launching:
+
+```bash
+ADMIN_USERNAME=admin
+ADMIN_PASSWORD=changeme
+```
+
+Make sure to change these values to something secure, especially the password. This admin account will be created automatically when you first start Speakr, and you'll use these credentials to log in. The first user created through this method becomes the system administrator with full access to all features including user management and system settings.
+
+## Step 5: Launch Speakr
+
+With your configuration complete, start Speakr using Docker Compose:
+
+```bash
+docker compose up -d
+```
+
+The first launch will take a few minutes as Docker downloads the pre-built image (about 3GB) and initializes the database. You can monitor the startup process by viewing the logs:
+
+```bash
+docker compose logs -f app
+```
+
+Look for a message indicating that the Flask application is running and ready to accept connections. Press Ctrl+C to exit the log view (this won't stop the container).
+
+## Step 6: Access Speakr
+
+Once the container is running, open your web browser and navigate to:
+
+```
+http://localhost:8899
+```
+
+Log in using the admin credentials you configured in Step 4. You should now see the Speakr dashboard, ready for your first recording.
+
+## Your First Recording
+
+After logging in, you can immediately start using Speakr. Click the "New Recording" button in the top navigation to either upload an existing audio file or start a [live recording](user-guide/recording.md). For detailed instructions, see the [recording guide](user-guide/recording.md). For uploads, Speakr supports [common audio formats](faq.md#what-audio-formats-does-speakr-support) like MP3, M4A, WAV, and more, with files up to 500MB by default. You can adjust this limit in [system settings](admin-guide/system-settings.md). For live recording, you can capture from your microphone, system audio, or both simultaneously.
+
+## Optional Features
+
+### Enable Inquire Mode
+
+[Inquire Mode](user-guide/inquire-mode.md) allows you to search across all your recordings using natural language questions. Learn more about [semantic search capabilities](features.md#semantic-search-inquire-mode) in the features guide. To enable it, set this in your `.env` file:
+
+```bash
+ENABLE_INQUIRE_MODE=true
+```
+
+Then restart the container with `docker compose restart` for the change to take effect.
+
+### Enable User Registration
+
+By default, only the admin can create new users. Learn more about [user management](admin-guide/user-management.md) in the admin guide. To allow self-registration, set:
+
+```bash
+ALLOW_REGISTRATION=true
+```
+
+### Configure Your Timezone
+
+Set your local timezone for accurate timestamp display:
+
+```bash
+TIMEZONE="America/New_York"
+```
+
+Use any valid timezone from the TZ database like "Europe/London", "Asia/Tokyo", or "UTC".
+
+## Stopping and Starting Speakr
+
+To stop Speakr while preserving all your data:
+
+```bash
+docker compose down
+```
+
+To start it again:
+
+```bash
+docker compose up -d
+```
+
+Your recordings, transcriptions, and settings are preserved in the `./uploads` and `./instance` directories on your host system.
+
+## Troubleshooting
+
+If Speakr doesn't start properly, check the logs for error messages using `docker compose logs app`. For more detailed help, see the [Troubleshooting Guide](troubleshooting.md), particularly the [installation issues](troubleshooting.md#installation-and-setup-issues) section. Common issues include incorrect API keys, which will show authentication errors in the logs, or port conflicts if another service is using port 8899. You can change the port by editing the `docker-compose.yml` file and modifying the ports section.
+
+If transcription fails, verify your API keys are correct and you have sufficient credits with your chosen service. The logs will show detailed error messages that can help identify the issue.
+
+---
+
+Next: [Installation Guide](getting-started/installation.md) for production deployments and advanced configuration
\ No newline at end of file
diff --git a/docs/getting-started/installation.md b/docs/getting-started/installation.md
new file mode 100644
index 00000000..c1907c3b
--- /dev/null
+++ b/docs/getting-started/installation.md
@@ -0,0 +1,556 @@
+# Installation Guide
+
+This comprehensive guide covers deploying Speakr for production use, including detailed configuration options, performance tuning, and deployment best practices. While the Quick Start guide gets you running quickly, this guide provides everything you need for a robust production deployment.
+
+## Understanding Speakr's Architecture
+
+Before diving into installation, it's helpful to understand how Speakr works. The application integrates with external APIs for two main purposes: transcription services that convert your audio to text, and text generation services that power features like summaries, titles, and interactive chat. Speakr is designed to be flexible, supporting both cloud-based services like OpenAI and self-hosted solutions running on your own infrastructure.
+
+Speakr uses specific API endpoint formats for these integrations. For transcription, it supports the standard OpenAI Whisper API format using the `/audio/transcriptions` endpoint, which is implemented by OpenAI, OpenRouter, and many self-hosted solutions. Alternatively, for advanced features like speaker diarization, Speakr can connect to ASR webservices that provide an `/asr` endpoint. For text generation, Speakr uses the OpenAI Chat Completions API format with the `/chat/completions` endpoint, which is widely supported across different AI providers.
+
+## Prerequisites
+
+For a production deployment, ensure your system meets these requirements. You'll need Docker Engine version 20.10 or later and Docker Compose version 2.0 or later. The system should have at least 4GB of RAM, with 8GB recommended for optimal performance, especially if you're processing longer recordings. Plan for at least 20GB of free disk space to accommodate recordings and transcriptions, though actual requirements will depend on your usage patterns. The server should have a stable internet connection for API calls to transcription and AI services, unless you're running everything locally.
+
+## Choosing Your Deployment Method
+
+You have two main options for deploying Speakr. The first and recommended approach is using the pre-built Docker image from Docker Hub, which requires no source code and gets you running quickly. The second option is building from source, which is useful if you need to modify the code or prefer to build your own images. Both methods use Docker Compose for orchestration and management.
+
+## Standard Installation Using Pre-Built Image
+
+### Step 1: Create Installation Directory
+
+Choose an appropriate location for your Speakr installation. This directory will contain your configuration files and data volumes. For production deployments, using a dedicated directory like `/opt/speakr` or `/srv/speakr` is recommended as it provides a clear separation from user home directories and follows Linux filesystem hierarchy standards.
+
+```bash
+mkdir -p /opt/speakr
+cd /opt/speakr
+```
+
+If you're just testing or running Speakr for personal use, you can create the directory in your home folder instead. The location isn't critical, but keeping everything organized in one place makes management easier.
+
+### Step 2: Create Docker Compose Configuration
+
+Create a `docker-compose.yml` file with the following configuration:
+
+```yaml
+services:
+ app:
+ image: learnedmachine/speakr:latest
+ container_name: speakr
+ restart: unless-stopped
+ ports:
+ - "8899:8899"
+ env_file:
+ - .env
+ volumes:
+ - ./uploads:/data/uploads
+ - ./instance:/data/instance
+```
+
+Or download the example configuration:
+
+```bash
+wget https://raw.githubusercontent.com/murtaza-nasir/speakr/master/docker-compose.example.yml -O docker-compose.yml
+```
+
+The restart policy `unless-stopped` ensures Speakr automatically starts after system reboots unless you've explicitly stopped it. The volumes mount local directories for persistent storage of uploads and database files.
+
+### Step 3: Environment Configuration
+
+The environment configuration is where you tell Speakr which AI services to use and how to connect to them. Download the appropriate environment template based on your transcription service choice. This template contains all the configuration variables with helpful comments explaining each setting.
+
+#### For OpenAI Whisper API
+
+If you're using OpenAI's Whisper API or any compatible service, download the Whisper environment template:
+
+```bash
+wget https://raw.githubusercontent.com/murtaza-nasir/speakr/master/env.whisper.example -O .env
+```
+
+Now edit the `.env` file to add your API keys and customize the settings. The configuration is organized into logical sections. First, configure the text generation model that powers summaries, titles, and chat features. OpenRouter is recommended here because it provides access to multiple AI models at competitive prices, but you can use any OpenAI-compatible service:
+
+```bash
+TEXT_MODEL_BASE_URL=https://openrouter.ai/api/v1
+TEXT_MODEL_API_KEY=sk-or-v1-your-key-here
+TEXT_MODEL_NAME=openai/gpt-4o-mini
+```
+
+If you prefer to use OpenAI directly for text generation, simply change the base URL to `https://api.openai.com/v1` and use your OpenAI API key. You can also use local models through Ollama or LM Studio by pointing to `http://localhost:11434/v1` or similar.
+
+Next, configure the transcription service. This is what converts your audio files into text:
+
+```bash
+TRANSCRIPTION_BASE_URL=https://api.openai.com/v1
+TRANSCRIPTION_API_KEY=sk-your-openai-key-here
+WHISPER_MODEL=whisper-1
+```
+
+#### For Custom ASR Endpoint with Speaker Diarization
+
+If you want speaker diarization to identify who's speaking in your recordings, you'll need to use an ASR webservice endpoint. This requires running a separate service, but provides powerful features for meeting transcriptions and multi-speaker recordings:
+
+```bash
+wget https://raw.githubusercontent.com/murtaza-nasir/speakr/master/env.asr.example -O .env
+```
+
+The ASR configuration enables the custom endpoint and tells Speakr where to find it:
+
+```bash
+USE_ASR_ENDPOINT=true
+ASR_BASE_URL=http://your-asr-service:9000
+```
+
+The ASR_BASE_URL depends on your deployment architecture. If you're running the ASR service in the same Docker Compose stack as Speakr, use the service name from your docker-compose.yml file, like `http://whisper-asr:9000`. This uses Docker's internal networking for communication. If the ASR service is running elsewhere, use its full URL with the appropriate IP address or domain name.
+
+Speaker diarization is automatically enabled when using ASR endpoints. The system will identify different speakers in your recordings and label them as Speaker 1, Speaker 2, and so on. You can optionally override the default speaker detection settings by uncommenting and adjusting ASR_MIN_SPEAKERS and ASR_MAX_SPEAKERS in your environment file.
+
+### Step 4: Configure System Settings
+
+One of Speakr's conveniences is automatic admin account creation. Instead of going through a registration process, you define the admin credentials in your environment file, and Speakr creates the account automatically on first startup. This ensures you can log in immediately without any additional setup steps:
+
+```bash
+ADMIN_USERNAME=admin
+ADMIN_PASSWORD=your-secure-password-here
+```
+
+Choose a strong password for this account as it has full system access, including the ability to manage users and view all recordings. The admin account is special and cannot be created through the regular registration process, only through these environment variables.
+
+Next, configure how the application behaves. These settings control user access and system operation:
+
+```bash
+ALLOW_REGISTRATION=false
+TIMEZONE="America/New_York"
+LOG_LEVEL="INFO"
+```
+
+Setting `ALLOW_REGISTRATION=false` means only the admin can create new user accounts, which is recommended for private installations where you want to control access. If you're running Speakr for a team or family, this prevents random people from creating accounts. The timezone setting affects how dates and times are displayed throughout the interface, so set it to your local timezone for convenience. The log level controls how much information Speakr writes to its logs. Use `INFO` during initial setup and testing to see what's happening, then switch to `ERROR` for production to reduce log volume and improve performance.
+
+### Step 5: Configure Advanced Features
+
+#### Large File Handling
+
+One of Speakr's most useful features is automatic handling of large audio files. Many transcription APIs have file size limits, with OpenAI's 25MB limit being a common constraint. Rather than forcing you to manually split files, Speakr handles this automatically through intelligent chunking:
+
+```bash
+ENABLE_CHUNKING=true
+CHUNK_LIMIT=20MB
+CHUNK_OVERLAP_SECONDS=3
+```
+
+When chunking is enabled, Speakr automatically detects when a file exceeds the configured limit and splits it into smaller pieces. Each chunk is processed separately, and the transcriptions are seamlessly merged back together. The overlap setting ensures that no words are lost at chunk boundaries, which is especially important for continuous speech. The chunk limit can be specified as a file size like `20MB` or as a duration like `20m` for 20 minutes, depending on your API's limitations.
+
+This feature only applies when using the standard Whisper API method. If you're using an ASR endpoint, chunking is not needed as these services typically handle large files natively.
+
+#### Inquire Mode for Semantic Search
+
+Inquire Mode transforms Speakr from a simple transcription tool into a knowledge base of all your recordings. When enabled, you can search across all your transcriptions using natural language questions:
+
+```bash
+ENABLE_INQUIRE_MODE=true
+```
+
+With Inquire Mode active, Speakr creates embeddings of your transcriptions that enable semantic search. This means you can ask questions like "When did we discuss the marketing budget?" and find relevant recordings even if those exact words weren't used. The feature requires additional processing during transcription but provides powerful search capabilities that become more valuable as your recording library grows.
+
+#### Automated File Processing
+
+The automated file processing feature, sometimes called the "black hole" directory, monitors a designated folder for new audio files and automatically processes them without manual intervention. This is perfect for integrating with recording devices, automated workflows, or batch processing scenarios:
+
+```bash
+ENABLE_AUTO_PROCESSING=true
+AUTO_PROCESS_MODE=admin_only
+AUTO_PROCESS_WATCH_DIR=/data/auto-process
+AUTO_PROCESS_CHECK_INTERVAL=30
+```
+
+When enabled, Speakr checks the watch directory every 30 seconds for new audio files. Any files found are automatically moved to the uploads directory and processed using your configured transcription settings. The `admin_only` mode assigns all processed files to the admin user, but you can also configure it for multi-user scenarios with separate directories for each user.
+
+To use this feature, you'll need to mount an additional volume in your Docker Compose configuration, which we'll cover in the next steps.
+
+### Step 6: Set Up Data Directories
+
+Speakr needs local directories to store your data persistently. These directories are mounted as Docker volumes, ensuring your recordings and database survive container updates and restarts:
+
+```bash
+mkdir -p uploads instance
+chmod 755 uploads instance
+```
+
+The `uploads` directory stores all your audio files and their transcriptions, organized by user. The `instance` directory contains the SQLite database that tracks all your recordings, users, and settings. Setting the permissions to 755 ensures the Docker container can read and write to these directories while maintaining reasonable security.
+
+If you're using the automated file processing feature, create that directory as well:
+
+```bash
+mkdir -p auto-process
+chmod 755 auto-process
+```
+
+### Step 7: Launch Speakr
+
+With everything configured, you're ready to start Speakr. The `-d` flag runs the container in detached mode, meaning it continues running in the background:
+
+```bash
+docker compose up -d
+```
+
+The first time you run this command, Docker will download the Speakr image from Docker Hub. This image is approximately 3GB and contains all the dependencies needed to run Speakr, including FFmpeg for audio processing and various Python libraries. The download time depends on your internet connection speed.
+
+Monitor the startup process to ensure everything is working correctly:
+
+```bash
+docker compose logs -f app
+```
+
+Watch the logs for any error messages. You should see messages about database initialization, admin user creation, and finally a message indicating the Flask application is running on port 8899. Press Ctrl+C to stop following the logs (this won't stop the container, just the log viewing).
+
+### Step 8: Verify Installation
+
+Open your web browser and navigate to `http://your-server:8899`, replacing `your-server` with your actual server address or `localhost` if you're running locally. You should see the Speakr login page with its distinctive gradient design.
+
+Log in using the admin credentials you configured in the environment file. If login fails, check your Docker logs to ensure the admin user was created successfully. Sometimes typos in the environment file can cause issues.
+
+Once logged in, test the installation by creating a test recording or uploading a sample audio file. The recording interface should show options for microphone, system audio, or both. Try uploading a small audio file first to verify that your API keys are working correctly. The transcription process should complete within a few moments for short files, and you should see the transcribed text appear along with an AI-generated summary.
+
+If transcription fails, check the Docker logs for API authentication errors or connection issues. Common problems include incorrect API keys, insufficient API credits, or network connectivity issues.
+
+## Advanced Deployment Scenarios
+
+### Running ASR Service for Speaker Diarization
+
+If you need speaker diarization to identify different speakers in your recordings, you'll need to run an ASR service alongside Speakr. The recommended approach is using the WhisperX-based ASR webservice in the same Docker Compose stack.
+
+First, you'll need a Hugging Face token to access the speaker diarization models. Create an account at Hugging Face, generate an access token, and importantly, visit the model pages for pyannote/segmentation-3.0 and pyannote/speaker-diarization-3.1 to accept their terms. These are gated models that require explicit approval.
+
+Here's a complete Docker Compose configuration that includes both services:
+
+```yaml
+services:
+ whisper-asr:
+ image: onerahmet/openai-whisper-asr-webservice:latest-gpu
+ container_name: whisper-asr-webservice
+ ports:
+ - "9000:9000"
+ environment:
+ - ASR_MODEL=distil-large-v3
+ - ASR_COMPUTE_TYPE=int8
+ - ASR_ENGINE=whisperx
+ - HF_TOKEN=your_huggingface_token_here
+ deploy:
+ resources:
+ reservations:
+ devices:
+ - driver: nvidia
+ capabilities: [gpu]
+ device_ids: ["0"]
+ restart: unless-stopped
+ networks:
+ - speakr-network
+
+ speakr:
+ image: learnedmachine/speakr:latest
+ container_name: speakr
+ restart: unless-stopped
+ ports:
+ - "8899:8899"
+ env_file:
+ - .env
+ volumes:
+ - ./uploads:/data/uploads
+ - ./instance:/data/instance
+ depends_on:
+ - whisper-asr
+ networks:
+ - speakr-network
+
+networks:
+ speakr-network:
+ driver: bridge
+```
+
+When running both services in the same Docker Compose file, containers communicate using service names. In your `.env` file, set `ASR_BASE_URL=http://whisper-asr:9000` using the service name, not localhost or an IP address. This is a common source of confusion but is how Docker networking works.
+
+## Production Considerations
+
+### Using a Reverse Proxy for SSL
+
+For production deployments, running Speakr behind a reverse proxy is essential for security and enabling all features. The browser recording feature, particularly system audio capture, requires HTTPS to work due to browser security restrictions. A reverse proxy handles SSL termination, meaning it manages the HTTPS certificates while communicating with Speakr over HTTP internally.
+
+Here's a complete nginx configuration for Speakr:
+
+```nginx
+server {
+ listen 443 ssl http2;
+ server_name speakr.yourdomain.com;
+
+ ssl_certificate /path/to/certificate.crt;
+ ssl_certificate_key /path/to/private.key;
+
+ # Security headers
+ add_header X-Frame-Options "SAMEORIGIN" always;
+ add_header X-Content-Type-Options "nosniff" always;
+ add_header X-XSS-Protection "1; mode=block" always;
+
+ location / {
+ proxy_pass http://localhost:8899;
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Proto $scheme;
+
+ # WebSocket support for live features
+ proxy_http_version 1.1;
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection "upgrade";
+
+ # Timeouts for large file uploads
+ proxy_read_timeout 300s;
+ proxy_send_timeout 300s;
+ }
+}
+
+# Redirect HTTP to HTTPS
+server {
+ listen 80;
+ server_name speakr.yourdomain.com;
+ return 301 https://$server_name$request_uri;
+}
+```
+
+The WebSocket configuration is important for real-time features in Speakr. The timeout settings ensure large file uploads don't get interrupted. You can obtain free SSL certificates from Let's Encrypt using Certbot, making HTTPS accessible for everyone.
+
+### Backup Strategy
+
+Regular backups are essential for production deployments. Your Speakr data consists of three critical components that need backing up: the SQLite database in the `instance` directory, the audio files and transcriptions in the `uploads` directory, and your configuration in the `.env` file.
+
+Create a backup script that captures all three components:
+
+```bash
+#!/bin/bash
+BACKUP_DIR="/backup/speakr"
+DATE=$(date +%Y%m%d_%H%M%S)
+
+# Create backup directory if it doesn't exist
+mkdir -p "$BACKUP_DIR"
+
+# Create the backup
+tar czf "$BACKUP_DIR/speakr_backup_$DATE.tar.gz" \
+ /opt/speakr/instance \
+ /opt/speakr/uploads \
+ /opt/speakr/.env
+
+# Optional: Keep only last 30 days of backups
+find "$BACKUP_DIR" -name "speakr_backup_*.tar.gz" -mtime +30 -delete
+
+echo "Backup completed: speakr_backup_$DATE.tar.gz"
+```
+
+Make the script executable and schedule it with cron for automated daily backups:
+
+```bash
+chmod +x /opt/speakr/backup.sh
+crontab -e
+# Add this line for daily backups at 2 AM:
+0 2 * * * /opt/speakr/backup.sh
+```
+
+For critical deployments, consider copying backups to remote storage or cloud services for additional redundancy. The compressed backup size is typically much smaller than the original data, as audio files compress well.
+
+### Monitoring and Maintenance
+
+Proactive monitoring helps prevent issues before they impact users. Audio files can consume significant storage over time, especially if you're recording long meetings regularly. Set up disk space monitoring with alerts when usage exceeds 80%. A simple monitoring approach uses cron with df:
+
+```bash
+#!/bin/bash
+USAGE=$(df /opt/speakr | tail -1 | awk '{print $5}' | sed 's/%//')
+if [ $USAGE -gt 80 ]; then
+ echo "Warning: Speakr disk usage is at ${USAGE}%" | mail -s "Speakr Disk Alert" [email protected]
+fi
+```
+
+Monitor the Docker container health and logs regularly. You can use Docker's built-in health check feature or external monitoring tools. Check for patterns like repeated API failures, authentication errors, or processing timeouts. Also track your API usage and costs with your transcription service provider, as costs can add up with heavy usage.
+
+### Security Hardening
+
+Production deployments require additional security measures beyond the default configuration. Start by ensuring strong passwords for all accounts, especially the admin account. Never use default or simple passwords in production.
+
+Restrict network access using firewall rules. If Speakr is only used internally, limit access to your organization's IP ranges:
+
+```bash
+# Example using ufw
+ufw allow from 192.168.1.0/24 to any port 8899
+ufw deny 8899
+```
+
+Implement rate limiting at the reverse proxy level to prevent abuse and API exhaustion. In nginx, you can add:
+
+```nginx
+limit_req_zone $binary_remote_addr zone=speakr:10m rate=10r/s;
+limit_req zone=speakr burst=20;
+```
+
+Keep the Docker image updated with the latest security patches. Check for updates regularly and plan maintenance windows for updates. Always backup before updating, and test updates in a staging environment first if possible.
+
+## Updating Speakr
+
+Keeping Speakr updated ensures you have the latest features and security patches. The update process is straightforward but should be done carefully to avoid data loss.
+
+First, always create a backup before updating:
+
+```bash
+# Create a backup
+tar czf speakr_backup_before_update.tar.gz uploads/ instance/ .env
+
+# Pull the latest image
+docker compose pull
+
+# Stop the current container
+docker compose down
+
+# Start with the new image
+docker compose up -d
+
+# Check the logs to ensure successful startup
+docker compose logs -f app
+```
+
+The update process preserves all your data since it's stored in mounted volumes outside the container. However, checking the release notes is important as some updates might require configuration changes or have breaking changes that need attention.
+
+If an update causes issues, you can rollback by specifying the previous version in your docker-compose.yml file:
+
+```yaml
+image: learnedmachine/speakr:v1.2.3 # Replace with your previous version
+```
+
+## Troubleshooting Common Issues
+
+### Container Won't Start
+
+When the container fails to start, the logs usually tell you exactly what's wrong. Check them first:
+
+```bash
+docker compose logs app
+```
+
+Common startup issues include missing or malformed `.env` files. Ensure your `.env` file exists and has proper syntax. Each line should be `KEY=value` with no spaces around the equals sign. Comments start with `#`.
+
+Port conflicts are another common issue. Check if port 8899 is already in use:
+
+```bash
+netstat -tulpn | grep 8899
+# Or on macOS:
+lsof -i :8899
+```
+
+If the port is in use, either stop the conflicting service or change Speakr's port in docker-compose.yml.
+
+### Transcription Failures
+
+Transcription failures usually stem from API configuration issues. Check the Docker logs for specific error messages:
+
+```bash
+docker compose logs app | grep -i error
+```
+
+Common transcription issues include incorrect API keys, which show as authentication errors in the logs. Double-check your keys in the `.env` file and ensure they're for the correct service. Insufficient API credits will show as quota or payment errors. Check your account balance with your API provider. Network connectivity issues appear as connection timeouts or DNS resolution failures.
+
+For ASR endpoints, verify the service is running and accessible:
+
+```bash
+# Test ASR endpoint connectivity
+curl http://your-asr-service:9000/docs
+```
+
+If using Docker networking with service names, remember that containers must be on the same network to communicate.
+
+### Performance Issues
+
+Slow performance can have multiple causes. Start by checking system resources:
+
+```bash
+# Check memory usage
+free -h
+
+# Check disk I/O
+iotop
+
+# Check Docker resource usage
+docker stats speakr
+```
+
+If memory is constrained, consider adding swap space or upgrading your server. For disk I/O issues, ensure you're using SSD storage for the uploads and instance directories. Traditional hard drives can significantly slow down operations, especially with multiple concurrent users.
+
+For large file processing, ensure chunking is properly configured. Without chunking, large files might timeout or fail completely. The chunk size should be slightly below your API's limit to account for encoding overhead.
+
+If you're seeing slow transcription with many concurrent users, you might be hitting API rate limits. Check your API provider's documentation for rate limits and consider upgrading your plan if needed.
+
+### Browser Recording Issues
+
+If browser recording isn't working, especially system audio, the most common cause is using HTTP instead of HTTPS. Browsers require secure connections for audio capture due to privacy concerns. Either set up SSL with a reverse proxy or, for local development only, modify your browser's security settings to treat your local URL as secure.
+
+In Chrome, navigate to `chrome://flags`, search for "insecure origins", and add your URL to the list. Remember this reduces security and should only be used for development.
+
+## Building from Source
+
+If you need to modify Speakr's code or prefer building your own images, you can build from source. This requires cloning the repository and using Docker's build capability.
+
+First, clone the repository and navigate to it:
+
+```bash
+git clone https://github.com/murtaza-nasir/speakr.git
+cd speakr
+```
+
+Modify the docker-compose.yml to build locally instead of using the pre-built image:
+
+```yaml
+services:
+ app:
+ build: . # Build from current directory
+ image: speakr:custom # Tag for your custom build
+ container_name: speakr
+ restart: unless-stopped
+ ports:
+ - "8899:8899"
+ env_file:
+ - .env
+ volumes:
+ - ./uploads:/data/uploads
+ - ./instance:/data/instance
+```
+
+Build and start your custom version:
+
+```bash
+docker compose up -d --build
+```
+
+The `--build` flag forces Docker to rebuild the image even if one exists. This is useful when you've made code changes and want to test them.
+
+## Performance Optimization
+
+For high-volume deployments or when processing many large files, optimization becomes important. Start with model selection if using ASR. The distil-large-v3 model offers an excellent balance of speed and accuracy. For English-only content, use the `.en` variants which are faster and more accurate for English.
+
+Optimize Docker resource allocation for your workload:
+
+```yaml
+services:
+ app:
+ image: learnedmachine/speakr:latest
+ deploy:
+ resources:
+ limits:
+ memory: 8G
+ cpus: '4'
+ reservations:
+ memory: 4G
+ cpus: '2'
+```
+
+This ensures Speakr has enough resources while preventing it from consuming everything on shared servers.
+
+For storage performance, use SSD drives for the Docker volumes. The database benefits significantly from fast random I/O, and large audio file processing is much faster with SSDs. If using network storage, ensure low latency connections.
+
+---
+
+Next: [User Guide](../user-guide/index.md) to learn how to use all of Speakr's features
\ No newline at end of file
diff --git a/docs/github-secrets-guide.md b/docs/github-secrets-guide.md
new file mode 100644
index 00000000..09291eff
--- /dev/null
+++ b/docs/github-secrets-guide.md
@@ -0,0 +1,64 @@
+# Adding GitHub Secrets for Docker Hub Authentication
+
+This guide provides step-by-step instructions on how to add your Docker Hub credentials as secrets in your GitHub repository.
+
+## Step 1: Generate a Docker Hub Access Token
+
+1. Log in to your Docker Hub account at [https://hub.docker.com/](https://hub.docker.com/)
+2. Click on your username in the top-right corner and select "Account Settings"
+3. In the left sidebar, click on "Security"
+4. Click the "New Access Token" button
+5. Give your token a descriptive name (e.g., "GitHub Actions")
+6. Select "Read & Write" permissions
+7. Click "Generate"
+8. **IMPORTANT**: Copy the generated token immediately and save it somewhere secure. You won't be able to see it again after you leave this page.
+
+## Step 2: Add Secrets to Your GitHub Repository
+
+1. Go to your GitHub repository at [https://github.com/murtaza-nasir/speakr](https://github.com/murtaza-nasir/speakr)
+2. Click on the "Settings" tab near the top of the page
+3. In the left sidebar, click on "Secrets and variables", then select "Actions"
+4. Click the "New repository secret" button
+5. Add your Docker Hub username:
+ - Name: `DOCKERHUB_USERNAME`
+ - Value: Your Docker Hub username
+ - Click "Add secret"
+6. Click the "New repository secret" button again
+7. Add your Docker Hub access token:
+ - Name: `DOCKERHUB_TOKEN`
+ - Value: The access token you generated in Step 1
+ - Click "Add secret"
+
+## Step 3: Verify the Secrets
+
+1. After adding both secrets, they should appear in the "Repository secrets" list
+2. The actual values will be hidden for security reasons
+3. These secrets are now available for use in your GitHub Actions workflows
+
+## Step 4: Test the Workflow
+
+1. Make a small change to your repository and push it to the `master` branch
+2. Go to the "Actions" tab in your GitHub repository
+3. You should see the "Docker Build and Publish" workflow running
+4. Once completed successfully, check your Docker Hub repository to verify that the image was pushed
+
+## Troubleshooting
+
+If the workflow fails with authentication errors:
+- Verify that the secrets are named exactly `DOCKERHUB_USERNAME` and `DOCKERHUB_TOKEN`
+- Check that your Docker Hub access token has "Read & Write" permissions
+- Ensure that your Docker Hub account has a repository with the same name as your GitHub repository (`speakr`)
+- Check the workflow logs for specific error messages
+
+## Screenshots
+
+Here's a visual guide to help you navigate the GitHub interface:
+
+### Finding the Settings Tab
+![GitHub Settings Tab](https://docs.github.com/assets/cb-40742/mw-1440/images/help/repository/repo-actions-settings.webp)
+
+### Navigating to Secrets and Variables
+![Secrets and Variables](https://docs.github.com/assets/cb-39735/mw-1440/images/help/settings/actions-settings.webp)
+
+### Adding a New Secret
+![New Secret](https://docs.github.com/assets/cb-86795/mw-1440/images/help/security/add-secret-repository.webp)
diff --git a/docs/index.md b/docs/index.md
new file mode 100644
index 00000000..3e76598f
--- /dev/null
+++ b/docs/index.md
@@ -0,0 +1,151 @@
+# Welcome to Speakr
+
+Speakr is a powerful self-hosted transcription platform that helps you capture, transcribe, and understand your audio content. Whether you're recording meetings, interviews, lectures, or personal notes, Speakr transforms spoken words into valuable, searchable knowledge.
+
+<div style="max-width: 80%; margin: 2em auto;">
+ <img src="assets/images/screenshots/Filters.png" alt="Main Interface" style="border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);">
+</div>
+
+## Quick Navigation
+
+<div class="grid cards">
+ <div class="card">
+ <div class="card-icon">📚</div>
+ <h3>Getting Started</h3>
+ <p>New to Speakr? Start here for a quick overview and setup guide.</p>
+ <a href="getting-started" class="card-link">Get Started →</a>
+ </div>
+
+ <div class="card">
+ <div class="card-icon">🚀</div>
+ <h3>Installation</h3>
+ <p>Step-by-step instructions for Docker and manual installation.</p>
+ <a href="getting-started/installation" class="card-link">Install Now →</a>
+ </div>
+
+ <div class="card">
+ <div class="card-icon">👤</div>
+ <h3>User Guide</h3>
+ <p>Learn how to <a href="user-guide/recording">record</a>, <a href="user-guide/transcripts">transcribe</a>, and manage your audio content.</p>
+ <a href="user-guide/" class="card-link">Learn More →</a>
+ </div>
+
+ <div class="card">
+ <div class="card-icon">⚙️</div>
+ <h3>Admin Guide</h3>
+ <p>Configure <a href="admin-guide/user-management">users</a>, <a href="admin-guide/prompts">system settings</a>, and manage your instance.</p>
+ <a href="admin-guide/" class="card-link">Configure →</a>
+ </div>
+
+ <div class="card">
+ <div class="card-icon">❓</div>
+ <h3>FAQ</h3>
+ <p>Find answers to commonly asked questions about Speakr.</p>
+ <a href="faq" class="card-link">View FAQ →</a>
+ </div>
+
+ <div class="card">
+ <div class="card-icon">🔧</div>
+ <h3>Troubleshooting</h3>
+ <p>Solutions for <a href="troubleshooting#transcription-problems">transcription issues</a> and <a href="troubleshooting#performance-issues">performance problems</a>.</p>
+ <a href="troubleshooting" class="card-link">Get Help →</a>
+ </div>
+</div>
+
+## Core Features
+
+<div class="feature-grid">
+ <div class="feature-card">
+ <h4>🎙️ Smart Recording</h4>
+ <ul>
+ <li>Audio capture from mic or system</li>
+ <li>Take notes while recording</li>
+ <li>Generate <a href="features#automatic-summarization">smart summaries</a></li>
+ </ul>
+ </div>
+
+ <div class="feature-card">
+ <h4>🤖 AI Transcription</h4>
+ <ul>
+ <li><a href="features#language-support">Multi-language support</a></li>
+ <li><a href="features#speaker-diarization">Speaker identification</a></li>
+ <li>Custom vocabularies</li>
+ </ul>
+ </div>
+
+ <div class="feature-card">
+ <h4>🔍 Intelligent Search</h4>
+ <ul>
+ <li><a href="user-guide/inquire-mode">Semantic search</a></li>
+ <li>Natural language queries</li>
+ <li>Cross-recording search</li>
+ </ul>
+ </div>
+
+ <div class="feature-card">
+ <h4>📊 Organization</h4>
+ <ul>
+ <li><a href="features#tagging-system">Smart tagging system</a></li>
+ <li><a href="admin-guide/prompts">Custom AI prompts</a></li>
+ <li><a href="features#speaker-management">Participant tracking</a></li>
+ </ul>
+ </div>
+
+ <div class="feature-card">
+ <h4>🌍 International</h4>
+ <ul>
+ <li>5+ languages supported</li>
+ <li>Automatic UI translation</li>
+ <li>Localized summaries</li>
+ </ul>
+ </div>
+
+ <div class="feature-card">
+ <h4>🔒 Privacy First</h4>
+ <ul>
+ <li><a href="getting-started/installation">Self-hosting ready</a></li>
+ <li><a href="troubleshooting#offline-deployment">Offline-ready</a></li>
+ <li><a href="user-guide/sharing">Secure sharing</a></li>
+ </ul>
+ </div>
+</div>
+
+## Latest Updates
+
+!!! info "Version 0.5.5 - Latest Release"
+ - **Full Internationalization** - Complete multi-language support for UI and content
+ - **Enhanced Audio Processing** - 128kbps MP3 for better transcription accuracy
+ - **Recording Disclaimer** - Configurable legal notices for compliance
+ - **Advanced Filtering** - Smart date presets and multi-tag selection
+ - **Offline Deployment** - All dependencies bundled for air-gapped environments
+
+## Getting Help
+
+Need assistance? We're here to help:
+
+<div class="help-grid">
+ <div class="help-card">
+ <h4>📖 Documentation</h4>
+ <p>You're already here! Browse our comprehensive guides:</p>
+ <ul>
+ <li><a href="faq">Frequently Asked Questions</a></li>
+ <li><a href="troubleshooting">Troubleshooting Guide</a></li>
+ <li><a href="user-guide/">User Documentation</a></li>
+ <li><a href="admin-guide/">Admin Documentation</a></li>
+ </ul>
+ </div>
+
+ <div class="help-card">
+ <h4>💬 Community</h4>
+ <p>Connect with other users and get support:</p>
+ <ul>
+ <li><a href="https://github.com/murtaza-nasir/speakr/issues">Report Issues</a></li>
+ <li><a href="https://github.com/murtaza-nasir/speakr/discussions">Join Discussions</a></li>
+ <li><a href="https://github.com/murtaza-nasir/speakr">Star on GitHub</a></li>
+ </ul>
+ </div>
+</div>
+
+---
+
+Ready to transform your audio into actionable insights? [Get started now](getting-started.md) →
\ No newline at end of file
diff --git a/docs/javascripts/extra.js b/docs/javascripts/extra.js
new file mode 100644
index 00000000..aebb1c14
--- /dev/null
+++ b/docs/javascripts/extra.js
@@ -0,0 +1,168 @@
+// Custom JavaScript for Speakr documentation
+
+// Add copy button to code blocks
+document.addEventListener('DOMContentLoaded', function() {
+ // Initialize copy to clipboard for code blocks
+ const codeBlocks = document.querySelectorAll('pre > code');
+
+ codeBlocks.forEach(function(codeBlock) {
+ // Skip if already has a copy button
+ if (codeBlock.parentElement.querySelector('.copy-button')) return;
+
+ const button = document.createElement('button');
+ button.className = 'copy-button';
+ button.textContent = 'Copy';
+ button.style.position = 'absolute';
+ button.style.top = '0.5em';
+ button.style.right = '0.5em';
+ button.style.padding = '0.25em 0.5em';
+ button.style.fontSize = '0.875em';
+ button.style.background = 'var(--md-code-bg-color)';
+ button.style.color = 'var(--md-code-fg-color)';
+ button.style.border = '1px solid var(--md-default-fg-color--lightest)';
+ button.style.borderRadius = '0.25em';
+ button.style.cursor = 'pointer';
+
+ const pre = codeBlock.parentElement;
+ pre.style.position = 'relative';
+ pre.appendChild(button);
+
+ button.addEventListener('click', async function() {
+ try {
+ await navigator.clipboard.writeText(codeBlock.textContent);
+ button.textContent = 'Copied!';
+ setTimeout(() => {
+ button.textContent = 'Copy';
+ }, 2000);
+ } catch (err) {
+ console.error('Failed to copy:', err);
+ button.textContent = 'Failed';
+ setTimeout(() => {
+ button.textContent = 'Copy';
+ }, 2000);
+ }
+ });
+ });
+
+ // Add smooth scrolling for anchor links
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
+ anchor.addEventListener('click', function (e) {
+ const href = this.getAttribute('href');
+ if (href === '#') return;
+
+ e.preventDefault();
+ const target = document.querySelector(href);
+ if (target) {
+ target.scrollIntoView({
+ behavior: 'smooth',
+ block: 'start'
+ });
+
+ // Update URL without jumping
+ history.pushState(null, null, href);
+ }
+ });
+ });
+
+ // Add external link indicators
+ document.querySelectorAll('a[href^="http"]').forEach(link => {
+ if (!link.hostname.includes(window.location.hostname)) {
+ link.setAttribute('target', '_blank');
+ link.setAttribute('rel', 'noopener noreferrer');
+
+ // Add external icon if not already present
+ if (!link.querySelector('.external-icon')) {
+ const icon = document.createElement('span');
+ icon.className = 'external-icon';
+ icon.innerHTML = ' ↗';
+ icon.style.fontSize = '0.75em';
+ icon.style.verticalAlign = 'super';
+ link.appendChild(icon);
+ }
+ }
+ });
+
+ // Enhance search functionality
+ const searchInput = document.querySelector('.md-search__input');
+ if (searchInput) {
+ // Add keyboard shortcut hint
+ searchInput.setAttribute('placeholder', 'Search (Press "/" to focus)');
+
+ // Add "/" keyboard shortcut
+ document.addEventListener('keydown', function(e) {
+ if (e.key === '/' && !searchInput.matches(':focus')) {
+ e.preventDefault();
+ searchInput.focus();
+ }
+ });
+ }
+
+ // Add responsive tables wrapper
+ document.querySelectorAll('table').forEach(table => {
+ if (!table.parentElement.classList.contains('table-wrapper')) {
+ const wrapper = document.createElement('div');
+ wrapper.className = 'table-wrapper';
+ wrapper.style.overflowX = 'auto';
+ table.parentElement.insertBefore(wrapper, table);
+ wrapper.appendChild(table);
+ }
+ });
+
+ // Add image zoom functionality
+ document.querySelectorAll('.md-content img').forEach(img => {
+ img.style.cursor = 'zoom-in';
+ img.addEventListener('click', function() {
+ const overlay = document.createElement('div');
+ overlay.style.position = 'fixed';
+ overlay.style.top = '0';
+ overlay.style.left = '0';
+ overlay.style.width = '100%';
+ overlay.style.height = '100%';
+ overlay.style.background = 'rgba(0, 0, 0, 0.9)';
+ overlay.style.zIndex = '9999';
+ overlay.style.display = 'flex';
+ overlay.style.alignItems = 'center';
+ overlay.style.justifyContent = 'center';
+ overlay.style.cursor = 'zoom-out';
+
+ const zoomedImg = document.createElement('img');
+ zoomedImg.src = img.src;
+ zoomedImg.style.maxWidth = '90%';
+ zoomedImg.style.maxHeight = '90%';
+ zoomedImg.style.objectFit = 'contain';
+
+ overlay.appendChild(zoomedImg);
+ document.body.appendChild(overlay);
+
+ overlay.addEventListener('click', function() {
+ document.body.removeChild(overlay);
+ });
+
+ // Close on Escape key
+ document.addEventListener('keydown', function closeOnEscape(e) {
+ if (e.key === 'Escape' && document.body.contains(overlay)) {
+ document.body.removeChild(overlay);
+ document.removeEventListener('keydown', closeOnEscape);
+ }
+ });
+ });
+ });
+});
+
+// Add loading indicator for slow operations
+window.addEventListener('load', function() {
+ // Remove any loading indicators
+ const loader = document.querySelector('.page-loader');
+ if (loader) {
+ loader.style.display = 'none';
+ }
+});
+
+// Print-friendly styling
+window.addEventListener('beforeprint', function() {
+ document.body.classList.add('print-mode');
+});
+
+window.addEventListener('afterprint', function() {
+ document.body.classList.remove('print-mode');
+});
\ No newline at end of file
diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml
new file mode 100644
index 00000000..46d972c3
--- /dev/null
+++ b/docs/mkdocs.yml
@@ -0,0 +1,180 @@
+site_name: Speakr
+site_description: AI-Powered Audio Transcription & Note-Taking Platform
+site_url: https://speakr.yourdomain.com
+repo_url: https://github.com/murtaza-nasir/speakr
+repo_name: speakr
+edit_uri: edit/main/docs/
+
+theme:
+ name: material
+ logo: assets/images/speakr-logo.png
+ favicon: assets/images/speakr-logo.png
+ palette:
+ # Light mode
+ - media: "(prefers-color-scheme: light)"
+ scheme: default
+ primary: indigo
+ accent: indigo
+ toggle:
+ icon: material/brightness-7
+ name: Switch to dark mode
+ # Dark mode
+ - media: "(prefers-color-scheme: dark)"
+ scheme: slate
+ primary: indigo
+ accent: indigo
+ toggle:
+ icon: material/brightness-4
+ name: Switch to light mode
+
+ features:
+ - navigation.instant
+ - navigation.instant.progress
+ - navigation.tracking
+ - navigation.tabs
+ - navigation.tabs.sticky
+ - navigation.sections
+ - navigation.expand
+ - navigation.path
+ - navigation.indexes
+ - navigation.top
+ - navigation.footer
+ - toc.follow
+ - toc.integrate
+ - search.suggest
+ - search.highlight
+ - search.share
+ - header.autohide
+ - content.action.edit
+ - content.action.view
+ - content.code.copy
+ - content.code.annotate
+ - content.tooltips
+
+plugins:
+ - search:
+ separator: '[\s\-\.\_]+'
+ lang:
+ - en
+ - minify:
+ minify_html: true
+ minify_js: true
+ minify_css: true
+ htmlmin_opts:
+ remove_comments: true
+ - git-revision-date-localized:
+ enable_creation_date: true
+ type: iso_date
+ enabled: !ENV [CI, false] # Only enable in CI/production
+
+markdown_extensions:
+ # Python Markdown
+ - abbr
+ - admonition
+ - attr_list
+ - def_list
+ - footnotes
+ - md_in_html
+ - meta
+ - tables
+ - toc:
+ permalink: true
+ title: On this page
+
+ # Python Markdown Extensions
+ - pymdownx.arithmatex:
+ generic: true
+ - pymdownx.betterem:
+ smart_enable: all
+ - pymdownx.caret
+ - pymdownx.critic
+ - pymdownx.details
+ - pymdownx.emoji:
+ emoji_index: !!python/name:material.extensions.emoji.twemoji
+ emoji_generator: !!python/name:material.extensions.emoji.to_svg
+ - pymdownx.highlight:
+ anchor_linenums: true
+ line_spans: __span
+ pygments_lang_class: true
+ - pymdownx.inlinehilite
+ - pymdownx.keys
+ - pymdownx.mark
+ - pymdownx.smartsymbols
+ - pymdownx.snippets:
+ auto_append:
+ - includes/abbreviations.md
+ - pymdownx.superfences:
+ custom_fences:
+ - name: mermaid
+ class: mermaid
+ format: !!python/name:pymdownx.superfences.fence_code_format
+ - pymdownx.tabbed:
+ alternate_style: true
+ combine_header_slug: true
+ - pymdownx.tasklist:
+ custom_checkbox: true
+ - pymdownx.tilde
+
+extra:
+ social:
+ - icon: fontawesome/brands/github
+ link: https://github.com/murtaza-nasir/speakr
+ - icon: fontawesome/brands/docker
+ link: https://hub.docker.com/r/learnedmachine/speakr
+
+ analytics:
+ provider: google
+ property: G-XXXXXXXXXX
+ feedback:
+ title: Was this page helpful?
+ ratings:
+ - icon: material/emoticon-happy-outline
+ name: This page was helpful
+ data: 1
+ note: Thanks for your feedback!
+ - icon: material/emoticon-sad-outline
+ name: This page could be improved
+ data: 0
+ note: Thanks for your feedback!
+
+extra_css:
+ - stylesheets/extra.css
+
+extra_javascript:
+ - javascripts/extra.js
+
+exclude_docs: |
+ README.md
+ DEPLOYMENT_GUIDE.md
+ DOCUMENTATION_VERIFICATION_CHECKLIST.md
+ ci-cd-setup.md
+ github-secrets-guide.md
+ .github-deploy.yml
+
+nav:
+ - Home:
+ - index.md
+ - Screenshots: screenshots.md
+ - Features: features.md
+ - Getting Started: getting-started.md
+ - Installation: getting-started/installation.md
+
+ - User Guide:
+ - user-guide/index.md
+ - First Steps: user-guide/first-steps.md
+ - Recording Audio: user-guide/recording.md
+ - Understanding Transcripts: user-guide/transcripts.md
+ - Inquire Mode: user-guide/inquire-mode.md
+ - Sharing Recordings: user-guide/sharing.md
+ - Account Settings: user-guide/settings.md
+
+ - Admin Guide:
+ - admin-guide/index.md
+ - User Management: admin-guide/user-management.md
+ - System Statistics: admin-guide/statistics.md
+ - System Settings: admin-guide/system-settings.md
+ - Default Prompts: admin-guide/prompts.md
+ - Vector Store: admin-guide/vector-store.md
+
+ - Troubleshooting: troubleshooting.md
+ - FAQ: faq.md
\ No newline at end of file
diff --git a/docs/requirements-docs.txt b/docs/requirements-docs.txt
new file mode 100644
index 00000000..c036a342
--- /dev/null
+++ b/docs/requirements-docs.txt
@@ -0,0 +1,16 @@
+# MkDocs and Material theme
+mkdocs>=1.5.3
+mkdocs-material>=9.5.0
+mkdocs-material-extensions>=1.3
+
+# MkDocs plugins
+mkdocs-minify-plugin>=0.7.2
+mkdocs-git-revision-date-localized-plugin>=1.2.2
+
+# Markdown extensions
+pymdown-extensions>=10.5
+pygments>=2.17.0
+
+# Additional utilities
+Pillow>=10.1.0 # For image optimization
+cairosvg>=2.7.1 # For SVG support
\ No newline at end of file
diff --git a/docs/screenshots.md b/docs/screenshots.md
new file mode 100644
index 00000000..579cfb6a
--- /dev/null
+++ b/docs/screenshots.md
@@ -0,0 +1,303 @@
+# Screenshots Gallery
+
+Explore Speakr's powerful features through our visual gallery. Click on any image to view it in full size.
+
+## Main Interface
+
+### Dashboard Views
+
+<div class="screenshot-grid">
+ <div class="screenshot-item">
+ <img src="../assets/images/screenshots/Filters.png" alt="Main Dashboard with Filters" />
+ <p class="caption">Main dashboard with advanced filtering options</p>
+ </div>
+
+ <div class="screenshot-item">
+ <img src="../assets/images/screenshots/main view no diarization.png" alt="Simple Transcription View" />
+ <p class="caption">Clean interface for simple transcriptions</p>
+ </div>
+</div>
+
+### Multi-language Support
+
+<div class="screenshot-item">
+ <img src="../assets/images/screenshots/Multilingual.png" alt="Multi-language Interface" />
+ <p class="caption">Full internationalization with support for 5 languages</p>
+</div>
+
+## Recording & Upload
+
+### New Recording Interface
+
+<div class="screenshot-grid">
+ <div class="screenshot-item">
+ <img src="../assets/images/screenshots/new recording view.png" alt="Recording Interface" />
+ <p class="caption">Upload or record audio directly in your browser</p>
+ </div>
+
+ <div class="screenshot-item">
+ <img src="../assets/images/screenshots/live recording view with notes.png" alt="Live Recording with Notes" />
+ <p class="caption">Take notes while recording in real-time</p>
+ </div>
+</div>
+
+### Recording Options
+
+<div class="screenshot-grid">
+ <div class="screenshot-item">
+ <img src="../assets/images/screenshots/record from tab.png" alt="Record from Tab" />
+ <p class="caption">Record audio from a specific browser tab</p>
+ </div>
+
+ <div class="screenshot-item">
+ <img src="../assets/images/screenshots/record from screen.png" alt="Record from Screen" />
+ <p class="caption">Capture system audio while screen sharing</p>
+ </div>
+</div>
+
+### Post-Recording
+
+<div class="screenshot-item">
+ <img src="../assets/images/screenshots/after recording, finalize tags and settings and notes before uploading or discard.png" alt="Post-Recording Options" />
+ <p class="caption">Add tags, notes, and configure settings before processing</p>
+</div>
+
+## Transcription Features
+
+### Transcription Views
+
+<div class="screenshot-grid">
+ <div class="screenshot-item">
+ <img src="../assets/images/screenshots/recording view with simple transcription view and chat visible.png" alt="Transcription with Chat" />
+ <p class="caption">Simple transcription view with AI chat panel</p>
+ </div>
+
+ <div class="screenshot-item">
+ <img src="../assets/images/screenshots/Summary View.png" alt="Summary View" />
+ <p class="caption">AI-generated summary with key points</p>
+ </div>
+</div>
+
+### Speaker Identification
+
+<div class="screenshot-grid">
+ <div class="screenshot-item">
+ <img src="../assets/images/screenshots/speaker id modal.png" alt="Speaker Identification" />
+ <p class="caption">Identify and label speakers in your recordings</p>
+ </div>
+
+ <div class="screenshot-item">
+ <img src="../assets/images/screenshots/edit transcript with ASR.png" alt="ASR Transcript Editor" />
+ <p class="caption">Advanced segment-based editor for ASR transcriptions</p>
+ </div>
+</div>
+
+## AI-Powered Features
+
+### Interactive Chat
+
+<div class="screenshot-grid">
+ <div class="screenshot-item">
+ <img src="../assets/images/screenshots/chat view with question.png" alt="AI Chat Interface" />
+ <p class="caption">Ask questions about your recordings and get intelligent answers</p>
+ </div>
+
+ <div class="screenshot-item">
+ <img src="../assets/images/screenshots/notes tab.png" alt="Notes Tab" />
+ <p class="caption">Organize your thoughts with markdown notes</p>
+ </div>
+</div>
+
+### Inquire Mode
+
+<div class="screenshot-grid">
+ <div class="screenshot-item">
+ <img src="../assets/images/screenshots/inquire mode.png" alt="Inquire Mode Search" />
+ <p class="caption">Semantic search across all your recordings</p>
+ </div>
+
+ <div class="screenshot-item">
+ <img src="../assets/images/screenshots/inquire mode 2.png" alt="Inquire Mode Results" />
+ <p class="caption">Natural language search with contextual results</p>
+ </div>
+
+ <div class="screenshot-item">
+ <img src="../assets/images/screenshots/iinquire mode contextual searches.png" alt="Contextual Search Results" />
+ <p class="caption">Find relevant content across multiple recordings</p>
+ </div>
+</div>
+
+## Organization & Management
+
+### Tags and Filtering
+
+<div class="screenshot-grid">
+ <div class="screenshot-item">
+ <img src="../assets/images/screenshots/tag selection and stacking.png" alt="Tag Selection" />
+ <p class="caption">Multi-tag selection with intelligent prompt stacking</p>
+ </div>
+
+ <div class="screenshot-item">
+ <img src="../assets/images/screenshots/settings Tags that allow custom prompts stackable and custom asr settings.png" alt="Tag Management" />
+ <p class="caption">Create tags with custom AI prompts and ASR settings</p>
+ </div>
+</div>
+
+### Recording Management
+
+<div class="screenshot-grid">
+ <div class="screenshot-item">
+ <img src="../assets/images/screenshots/edit recording modal.png" alt="Edit Recording" />
+ <p class="caption">Edit recording metadata and settings</p>
+ </div>
+
+ <div class="screenshot-item">
+ <img src="../assets/images/screenshots/edit recording tags modal.png" alt="Edit Tags" />
+ <p class="caption">Manage tags for better organization</p>
+ </div>
+</div>
+
+## Sharing & Collaboration
+
+### Share Recordings
+
+<div class="screenshot-grid">
+ <div class="screenshot-item">
+ <img src="../assets/images/screenshots/share recording modal.png" alt="Share Modal" />
+ <p class="caption">Generate secure share links with customizable permissions</p>
+ </div>
+
+ <div class="screenshot-item">
+ <img src="../assets/images/screenshots/shared recording.png" alt="Shared Recording View" />
+ <p class="caption">Clean public view for shared recordings</p>
+ </div>
+</div>
+
+### Manage Shares
+
+<div class="screenshot-grid">
+ <div class="screenshot-item">
+ <img src="../assets/images/screenshots/shared transcript modal.png" alt="Manage Shares" />
+ <p class="caption">Control and revoke shared links</p>
+ </div>
+
+ <div class="screenshot-item">
+ <img src="../assets/images/screenshots/settings shared transcripts.png" alt="Shared Transcripts Settings" />
+ <p class="caption">Overview of all your shared recordings</p>
+ </div>
+</div>
+
+## User Settings
+
+### Account Configuration
+
+<div class="screenshot-grid">
+ <div class="screenshot-item">
+ <img src="../assets/images/screenshots/settings account info.png" alt="Account Settings" />
+ <p class="caption">Personal information and language preferences</p>
+ </div>
+
+ <div class="screenshot-item">
+ <img src="../assets/images/screenshots/settings custom prompts.png" alt="Custom Prompts" />
+ <p class="caption">Configure personal AI summarization prompts</p>
+ </div>
+</div>
+
+### Speaker Management
+
+<div class="screenshot-item">
+ <img src="../assets/images/screenshots/settings speakr management.png" alt="Speaker Management" />
+ <p class="caption">Manage your speaker library with usage statistics</p>
+</div>
+
+## Admin Features
+
+### User Management
+
+<div class="screenshot-item">
+ <img src="../assets/images/screenshots/Admin dashboard.png" alt="Admin Dashboard" />
+ <p class="caption">Manage users and monitor system usage</p>
+</div>
+
+### System Configuration
+
+<div class="screenshot-grid">
+ <div class="screenshot-item">
+ <img src="../assets/images/screenshots/Admin system settings.png" alt="System Settings" />
+ <p class="caption">Configure global system parameters</p>
+ </div>
+
+ <div class="screenshot-item">
+ <img src="../assets/images/screenshots/Admin default prompts.png" alt="Default Prompts" />
+ <p class="caption">Set default AI prompts for all users</p>
+ </div>
+</div>
+
+### Monitoring & Analytics
+
+<div class="screenshot-grid">
+ <div class="screenshot-item">
+ <img src="../assets/images/screenshots/Admin stats.png" alt="System Statistics" />
+ <p class="caption">Monitor system health and usage patterns</p>
+ </div>
+
+ <div class="screenshot-item">
+ <img src="../assets/images/screenshots/Admin vector store.png" alt="Vector Store Management" />
+ <p class="caption">Manage semantic search infrastructure</p>
+ </div>
+</div>
+
+## Processing & Reprocessing
+
+<div class="screenshot-grid">
+ <div class="screenshot-item">
+ <img src="../assets/images/screenshots/full recording reprocessing.png" alt="Full Reprocessing" />
+ <p class="caption">Reprocess recordings with updated settings</p>
+ </div>
+
+ <div class="screenshot-item">
+ <img src="../assets/images/screenshots/summary reprocessing modal.png" alt="Summary Reprocessing" />
+ <p class="caption">Regenerate summaries with new prompts</p>
+ </div>
+</div>
+
+---
+
+<style>
+.screenshot-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
+ gap: 2rem;
+ margin: 2rem 0;
+}
+
+.screenshot-item {
+ text-align: center;
+ margin: 2rem 0;
+}
+
+.screenshot-item img {
+ width: 100%;
+ max-width: 800px;
+ border-radius: 8px;
+ box-shadow: 0 4px 12px rgba(0,0,0,0.1);
+ cursor: pointer;
+ transition: transform 0.2s;
+}
+
+.screenshot-item img:hover {
+ transform: scale(1.02);
+}
+
+.caption {
+ margin-top: 0.5rem;
+ font-style: italic;
+ color: #666;
+}
+
+@media (max-width: 768px) {
+ .screenshot-grid {
+ grid-template-columns: 1fr;
+ }
+}
+</style>
\ No newline at end of file
diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css
new file mode 100644
index 00000000..77b96765
--- /dev/null
+++ b/docs/stylesheets/extra.css
@@ -0,0 +1,572 @@
+/* Custom styles for Speakr documentation */
+
+/* Logo styling */
+.md-header__button.md-logo img,
+.md-header__button.md-logo svg {
+ height: 1.6rem;
+ width: auto;
+}
+
+/* Better code blocks */
+.highlight {
+ margin: 1em 0;
+}
+
+/* Custom admonition colors */
+.md-typeset .admonition.info,
+.md-typeset details.info {
+ border-color: rgb(0, 123, 255);
+}
+
+.md-typeset .admonition.info > .admonition-title,
+.md-typeset details.info > summary {
+ background-color: rgba(0, 123, 255, 0.1);
+ border-color: rgb(0, 123, 255);
+}
+
+/* Better image display */
+.md-typeset img {
+ border-radius: 8px;
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
+ margin: 1.5em 0;
+}
+
+/* Improve table styling */
+.md-typeset table:not([class]) {
+ margin: 1.5em 0;
+}
+
+.md-typeset table:not([class]) th {
+ background-color: var(--md-default-bg-color--light);
+ font-weight: 600;
+}
+
+/* Custom navigation styling */
+.md-nav__item--active > .md-nav__link {
+ font-weight: 600;
+}
+
+/* Better search results */
+.md-search-result__title {
+ font-weight: 600;
+}
+
+/* Responsive video embeds */
+.video-wrapper {
+ position: relative;
+ padding-bottom: 56.25%;
+ height: 0;
+ overflow: hidden;
+ max-width: 100%;
+ margin: 1.5em 0;
+}
+
+.video-wrapper iframe {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ border-radius: 8px;
+}
+
+/* Custom badges */
+.badge {
+ display: inline-block;
+ padding: 0.25em 0.6em;
+ font-size: 0.75em;
+ font-weight: 600;
+ line-height: 1;
+ color: #fff;
+ text-align: center;
+ white-space: nowrap;
+ vertical-align: baseline;
+ border-radius: 0.25rem;
+ margin: 0 0.25em;
+}
+
+.badge-primary {
+ background-color: #007bff;
+}
+
+.badge-success {
+ background-color: #28a745;
+}
+
+.badge-warning {
+ background-color: #ffc107;
+ color: #212529;
+}
+
+.badge-danger {
+ background-color: #dc3545;
+}
+
+/* Screenshot styling */
+.screenshot-container {
+ max-width: 80%;
+ margin: 2em auto;
+}
+
+.screenshot-container img {
+ width: 100%;
+ height: auto;
+ border-radius: 8px;
+ box-shadow: 0 4px 12px rgba(0,0,0,0.1);
+}
+
+/* Navigation cards grid */
+.grid.cards {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
+ gap: 1.5em;
+ margin: 2em 0 3em 0;
+}
+
+.grid.cards .card {
+ background: var(--md-code-bg-color);
+ border: 1px solid var(--md-default-fg-color--lightest);
+ border-radius: 12px;
+ padding: 1.75em;
+ text-align: center;
+ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
+ position: relative;
+ overflow: hidden;
+}
+
+.grid.cards .card:hover {
+ transform: translateY(-4px);
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
+ border-color: var(--md-primary-fg-color);
+}
+
+.grid.cards .card::before {
+ content: '';
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ height: 3px;
+ background: linear-gradient(90deg, var(--md-primary-fg-color), var(--md-accent-fg-color));
+ transform: scaleX(0);
+ transition: transform 0.3s ease;
+}
+
+.grid.cards .card:hover::before {
+ transform: scaleX(1);
+}
+
+.card-icon {
+ font-size: 2.5em;
+ margin-bottom: 0.5em;
+ opacity: 0.9;
+}
+
+.grid.cards .card h3 {
+ margin: 0.5em 0;
+ color: var(--md-default-fg-color);
+ font-size: 1.25em;
+}
+
+.grid.cards .card p {
+ color: var(--md-default-fg-color--light);
+ margin: 0.75em 0 1.25em 0;
+ line-height: 1.6;
+}
+
+.card-link {
+ display: inline-block;
+ color: var(--md-primary-fg-color);
+ text-decoration: none;
+ font-weight: 600;
+ transition: all 0.2s ease;
+}
+
+.card-link:hover {
+ color: var(--md-accent-fg-color);
+ transform: translateX(4px);
+}
+
+/* Feature cards grid */
+.feature-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
+ gap: 1.25em;
+ margin: 2em 0;
+}
+
+.feature-card {
+ background: var(--md-code-bg-color);
+ padding: 1.5em;
+ border: 1px solid var(--md-default-fg-color--lightest);
+ border-radius: 8px;
+ transition: all 0.3s ease;
+}
+
+.feature-card:hover {
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
+ transform: translateY(-2px);
+ border-color: var(--md-primary-fg-color--light);
+}
+
+.feature-card h4 {
+ margin: 0 0 0.75em 0;
+ color: var(--md-default-fg-color);
+ font-size: 1.1em;
+ display: flex;
+ align-items: center;
+ gap: 0.5em;
+}
+
+.feature-card ul {
+ margin: 0;
+ padding-left: 1.25em;
+ color: var(--md-default-fg-color--light);
+}
+
+.feature-card li {
+ margin: 0.4em 0;
+ font-size: 0.95em;
+}
+
+/* Help section grid */
+.help-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
+ gap: 2em;
+ margin: 2em 0;
+}
+
+.help-card {
+ background: var(--md-code-bg-color);
+ padding: 1.75em;
+ border-radius: 8px;
+ border: 1px solid var(--md-default-fg-color--lightest);
+}
+
+.help-card h4 {
+ margin-top: 0;
+ color: var(--md-default-fg-color);
+ font-size: 1.2em;
+}
+
+.help-card p {
+ color: var(--md-default-fg-color--light);
+ margin: 0.75em 0;
+}
+
+.help-card ul {
+ margin: 0.5em 0;
+ padding-left: 1.5em;
+}
+
+.help-card li {
+ margin: 0.5em 0;
+}
+
+.help-card a {
+ color: var(--md-primary-fg-color);
+ text-decoration: none;
+ transition: color 0.2s ease;
+}
+
+.help-card a:hover {
+ color: var(--md-accent-fg-color);
+ text-decoration: underline;
+}
+
+/* Custom tabs styling */
+.md-typeset .tabbed-set > input:checked + label {
+ font-weight: 600;
+}
+
+/* Improve inline code */
+.md-typeset code {
+ padding: 0.15em 0.3em;
+ border-radius: 0.25em;
+}
+
+/* Version selector styling */
+.md-version__current {
+ font-weight: 600;
+}
+
+/* Footer improvements */
+.md-footer-meta {
+ background-color: var(--md-footer-bg-color);
+}
+
+/* Dark mode adjustments */
+[data-md-color-scheme="slate"] .grid.cards .card {
+ background: var(--md-code-bg-color);
+ border-color: var(--md-default-fg-color--lighter);
+}
+
+[data-md-color-scheme="slate"] .feature-card {
+ background: var(--md-code-bg-color);
+}
+
+[data-md-color-scheme="slate"] .help-card {
+ background: var(--md-code-bg-color);
+}
+
+/* Guide cards for User/Admin guides */
+.guide-cards {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
+ gap: 1.5em;
+ margin: 2em 0 3em 0;
+}
+
+.guide-card {
+ background: var(--md-code-bg-color);
+ border: 1px solid var(--md-default-fg-color--lightest);
+ border-radius: 12px;
+ padding: 1.75em;
+ text-align: center;
+ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
+ position: relative;
+ overflow: hidden;
+}
+
+.guide-card:hover {
+ transform: translateY(-4px);
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
+ border-color: var(--md-primary-fg-color);
+}
+
+.guide-card::before {
+ content: '';
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ height: 3px;
+ background: linear-gradient(90deg, var(--md-primary-fg-color), var(--md-accent-fg-color));
+ transform: scaleX(0);
+ transition: transform 0.3s ease;
+}
+
+.guide-card:hover::before {
+ transform: scaleX(1);
+}
+
+.guide-card .card-icon {
+ font-size: 2.5em;
+ margin-bottom: 0.5em;
+ opacity: 0.9;
+}
+
+.guide-card h3 {
+ margin: 0.5em 0;
+ color: var(--md-default-fg-color);
+ font-size: 1.25em;
+}
+
+.guide-card p {
+ color: var(--md-default-fg-color--light);
+ margin: 0.75em 0 1.25em 0;
+ line-height: 1.6;
+ font-size: 0.95em;
+}
+
+/* Tips grid */
+.tips-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
+ gap: 1.25em;
+ margin: 2em 0;
+}
+
+.tip-card {
+ background: var(--md-code-bg-color);
+ padding: 1.25em;
+ border-radius: 8px;
+ border: 1px solid var(--md-default-fg-color--lightest);
+ transition: all 0.2s ease;
+}
+
+.tip-card:hover {
+ border-color: var(--md-primary-fg-color--light);
+ transform: translateY(-2px);
+}
+
+.tip-card h4 {
+ margin: 0 0 0.5em 0;
+ color: var(--md-default-fg-color);
+ font-size: 1em;
+}
+
+.tip-card p {
+ margin: 0;
+ color: var(--md-default-fg-color--light);
+ font-size: 0.9em;
+ line-height: 1.5;
+}
+
+/* Responsibility grid */
+.responsibility-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
+ gap: 1.25em;
+ margin: 2em 0;
+}
+
+.resp-card {
+ background: linear-gradient(135deg, var(--md-code-bg-color), var(--md-default-bg-color--light));
+ padding: 1.5em;
+ border-radius: 10px;
+ border: 1px solid var(--md-default-fg-color--lightest);
+}
+
+.resp-card h4 {
+ margin: 0 0 0.75em 0;
+ color: var(--md-primary-fg-color);
+ font-size: 1.1em;
+}
+
+.resp-card p {
+ margin: 0;
+ color: var(--md-default-fg-color--light);
+ font-size: 0.9em;
+ line-height: 1.5;
+}
+
+/* Action cards */
+.action-cards {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
+ gap: 1.25em;
+ margin: 2em 0;
+}
+
+.action-card {
+ display: flex;
+ align-items: flex-start;
+ gap: 1em;
+ background: var(--md-code-bg-color);
+ padding: 1.25em;
+ border-radius: 8px;
+ border: 1px solid var(--md-default-fg-color--lightest);
+ transition: all 0.2s ease;
+}
+
+.action-card:hover {
+ border-color: var(--md-primary-fg-color);
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
+}
+
+.action-icon {
+ font-size: 1.5em;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 2em;
+ height: 2em;
+ background: var(--md-primary-fg-color--light);
+ color: white;
+ border-radius: 50%;
+ flex-shrink: 0;
+}
+
+.action-card strong {
+ display: block;
+ margin-bottom: 0.25em;
+ color: var(--md-default-fg-color);
+}
+
+.action-card p {
+ margin: 0;
+ color: var(--md-default-fg-color--light);
+ font-size: 0.85em;
+}
+
+/* Best practices */
+.best-practices {
+ display: grid;
+ gap: 1em;
+ margin: 2em 0;
+}
+
+.practice-item {
+ background: var(--md-code-bg-color);
+ padding: 1em 1.25em;
+ border-left: 4px solid var(--md-primary-fg-color);
+ border-radius: 4px;
+}
+
+.practice-item strong {
+ color: var(--md-default-fg-color);
+ font-size: 1em;
+}
+
+.practice-item p {
+ margin: 0.5em 0 0 0;
+ color: var(--md-default-fg-color--light);
+ font-size: 0.9em;
+}
+
+/* Help section styling */
+.help-section {
+ background: var(--md-code-bg-color);
+ padding: 1.5em;
+ border-radius: 8px;
+ margin: 2em 0;
+}
+
+.help-item {
+ display: flex;
+ align-items: center;
+ gap: 1em;
+ margin: 0.75em 0;
+}
+
+.help-icon {
+ font-size: 1.25em;
+ display: inline-block;
+ width: 1.5em;
+}
+
+.help-item span:last-child {
+ color: var(--md-default-fg-color--light);
+}
+
+.help-item a {
+ color: var(--md-primary-fg-color);
+ text-decoration: none;
+}
+
+.help-item a:hover {
+ text-decoration: underline;
+}
+
+.help-item code {
+ background: var(--md-code-bg-color);
+ padding: 0.2em 0.4em;
+ border-radius: 3px;
+ font-size: 0.9em;
+}
+
+/* Mobile optimization */
+@media screen and (max-width: 768px) {
+ .grid.cards {
+ grid-template-columns: 1fr;
+ }
+
+ .feature-grid {
+ grid-template-columns: 1fr;
+ }
+
+ .help-grid {
+ grid-template-columns: 1fr;
+ }
+
+ .md-typeset img {
+ max-width: 100%;
+ height: auto;
+ }
+
+ .card-icon {
+ font-size: 2em;
+ }
+}
\ No newline at end of file
diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md
new file mode 100644
index 00000000..361017f5
--- /dev/null
+++ b/docs/troubleshooting.md
@@ -0,0 +1,152 @@
+# Troubleshooting
+
+When something goes wrong with Speakr, this guide helps you identify and resolve common issues quickly. Most problems fall into a few categories - [installation issues](getting-started/installation.md), transcription failures, performance problems, or feature-specific quirks. Also check the [FAQ](faq.md) for common questions. Understanding where to look and what to check saves hours of frustration.
+
+## Installation and Setup Issues
+
+### Container Won't Start
+
+When your Docker container refuses to start or immediately exits, the problem usually lies in your configuration. Check your [environment file](getting-started.md#step-3-configure-your-transcription-service) first - a single typo in API keys or mismatched quotes can prevent startup. Review the [installation guide](getting-started/installation.md) for proper setup. Run `docker-compose logs app` to see the actual error messages. Common culprits include port conflicts (another service using 8899), missing volume mounts, or incorrect file permissions on your data directory.
+
+If you see database connection errors, ensure your database file has proper permissions. The container runs as a specific user and needs read/write access to the data directories. On Linux systems, you might need to adjust ownership with `chown -R 1000:1000 ./uploads ./instance`.
+
+### Can't Access the Web Interface
+
+When Speakr starts successfully but you can't reach the web interface, network configuration is usually the issue. First, verify the container is actually running with `docker ps`. Check that port 8899 is properly mapped - the docker-compose file should show `"8899:8899"` in the ports section.
+
+Firewall rules often block access, especially on cloud servers. Ensure port 8899 is open in your firewall, security groups (AWS), or network policies. If accessing from another machine, remember that `localhost` won't work - use the server's actual IP address or hostname.
+
+### Admin Login Fails
+
+If you can't log in with your [admin credentials](getting-started.md#step-4-configure-admin-account), first verify you're using the exact username and password from your environment file. For user management issues, see the [admin guide](admin-guide/user-management.md). These are case-sensitive and must match exactly. Check the Docker logs for admin user creation messages - you should see "Admin user created successfully" during first startup.
+
+Sometimes the admin user creation fails silently if the password doesn't meet requirements. Ensure your admin password is at least 8 characters long. If the admin user wasn't created, you might need to remove the database file and restart the container to trigger initialization again.
+
+## Transcription Problems
+
+### Transcription Never Starts
+
+When recordings stay in "pending" status indefinitely, the background processor might have stopped. Check the logs for error messages about the [transcription service](features.md#multi-engine-support). Monitor processing status in the [vector store](admin-guide/vector-store.md) admin panel. API key issues are the most common cause - verify your OpenAI or OpenRouter API key is valid and has available credits.
+
+Network connectivity problems can also prevent transcription. The container needs to reach external API endpoints. If you're behind a corporate proxy, you'll need to configure proxy settings in your Docker environment.
+
+### Transcription Fails Immediately
+
+Quick failures usually indicate API authentication problems. Double-check your API keys in the environment file. Remember that OpenAI and OpenRouter use different key formats. OpenAI keys start with "sk-" while OpenRouter keys look different. Ensure you're using the right key for your configured service.
+
+API rate limits or insufficient credits also cause immediate failures. Log into your API provider's dashboard to check your usage and limits. Some API plans have restrictive rate limits that Speakr might exceed with large files.
+
+### ASR Endpoint Returns 405 or 404 Errors
+
+If you're getting "405 Method Not Allowed" or "404 Not Found" errors with the Whisper ASR webservice, check your ASR_BASE_URL configuration. The URL should not include trailing comments or descriptions - remove anything after the # symbol in your environment file. For the Whisper ASR webservice, use just the base URL like `http://whisper-asr:9000` without `/asr` at the end.
+
+When using Docker Compose, always use container names rather than IP addresses for service communication. Instead of `http://192.168.1.132:9000`, use `http://whisper-asr-webservice:9000` where `whisper-asr-webservice` is your container name.
+
+### Poor Transcription Quality
+
+Transcription accuracy depends heavily on audio quality. Background noise, multiple overlapping speakers, or poor microphone placement all degrade results. The AI models work best with clear, single-speaker audio or well-separated multiple speakers.
+
+Language mismatches cause poor results too. If you've set a specific transcription language in settings but upload audio in a different language, accuracy suffers. Either set the correct language or leave it blank for auto-detection.
+
+For recordings with multiple speakers, using the [ASR endpoint with speaker diarization](features.md#speaker-diarization) dramatically improves usability. Learn how to [identify speakers](user-guide/transcripts.md#speaker-identification) after transcription, even if the raw transcription accuracy is similar.
+
+### Chinese Transcription Issues
+
+For [Chinese language transcription](features.md#language-support), model selection is critical. See the [FAQ on language support](faq.md#can-speakr-transcribe-languages-other-than-english) for more details. The large-v3 model works best with Chinese content. Smaller models like distil-large-v3 may not output Chinese characters correctly even when the language is set to "zh". If you're getting romanized output instead of Chinese characters, upgrade to the large-v3 model.
+
+### Summary Language Doesn't Match Preference
+
+If [summaries](features.md#automatic-summarization) revert to English when you click "Reprocess Summary" despite having [language preferences](user-guide/settings.md#language-preferences) set, this might be a model limitation. Configure [custom prompts](admin-guide/prompts.md) to enforce language requirements. Some models like Qwen3-30B don't always follow language instructions correctly. Try using a different model that better respects language directives, or ensure your custom prompt explicitly specifies the output language.
+
+## Performance Issues
+
+### Slow Transcription Processing
+
+Large audio files naturally take longer to process, but excessive delays indicate problems. Check your [server resources](getting-started.md#prerequisites) and review [system statistics](admin-guide/statistics.md) for performance metrics - Speakr needs adequate CPU and RAM, especially when processing multiple recordings simultaneously. The `docker stats` command shows current resource usage.
+
+Network speed affects transcription time since audio must upload to API services. Slow internet connections create bottlenecks, particularly for large files. Consider chunking settings if you consistently work with long recordings.
+
+The choice of transcription model impacts speed. Whisper Large is more accurate but slower than Whisper Base. If speed matters more than perfect accuracy, consider using a smaller model through your API settings.
+
+### Files Over 25MB Fail with OpenAI
+
+OpenAI's Whisper API has a 25MB file size limit. For larger files, enable [chunking](features.md#audio-chunking) in your environment configuration. Learn about [chunking strategies](faq.md#whats-the-difference-between-chunking-by-size-vs-duration):
+```
+ENABLE_CHUNKING=true
+CHUNK_LIMIT=20MB # or use duration: CHUNK_LIMIT=1400s
+CHUNK_OVERLAP_SECONDS=3
+```
+
+You can specify chunk limits either by file size (MB) or duration (seconds). For models with specific duration limits like Azure's 1500-second maximum, use duration-based chunking. The system will automatically split your recordings and reassemble the transcription.
+
+### ASR Timeout on Long Recordings
+
+Long recordings (over 30 minutes) may timeout during ASR processing. Increase the timeout in Admin Settings > System Settings > "ASR Timeout Seconds". For a 2-hour recording, set it to at least 7200 seconds (2 hours). Very long recordings like 3+ hour files may need longer timeouts depending on the GPU you are using for transcription (if local).
+
+### Web Interface Feels Sluggish
+
+Browser performance degrades with very large transcriptions. Recordings over 2 hours can generate massive amounts of text that some browsers may struggle to display smoothly. The bubble view for speaker-labeled transcriptions is particularly resource-intensive.
+
+Clear your browser cache if the interface gradually becomes slower over time. Speakr caches data locally for performance, but this cache can become corrupted. In Chrome or Firefox, hard refresh with Ctrl+Shift+R to reload fresh assets.
+
+## Feature-Specific Issues
+
+### Speaker Identification Not Working
+
+[Speaker diarization](features.md#speaker-diarization) requires the [ASR endpoint](getting-started.md#option-b-custom-asr-endpoint-configuration), not standard Whisper API. Configure speaker settings in [system settings](admin-guide/system-settings.md). Verify you've configured ASR settings correctly in your environment file. The ASR_BASE_URL should point to a valid ASR service that supports diarization.
+
+Even with ASR enabled, you must explicitly request diarization when uploading or reprocessing recordings. Speakr should do this by default, but user settings may override this behavior. Check the speaker count settings - if you set min and max speakers to 1, diarization effectively disables. Use reasonable ranges like 2-6 speakers for most recordings.
+
+After transcription, speakers appear as generic labels (SPEAKER_01, etc.). You must manually [identify speakers](user-guide/transcripts.md#speaker-identification) by clicking the labels and assigning names. Manage your [speaker library](user-guide/settings.md#speakers-management-tab) in account settings.
+
+### WhisperX Shows UNKNOWN_SPEAKER
+
+If WhisperX only shows "UNKNOWN_SPEAKER" instead of numbered speakers, ensure you're using the correct ASR_ENGINE setting. Set `ASR_ENGINE=whisperx` in your Docker environment. Also verify that your HF_TOKEN (Hugging Face token) is valid, as it's required for the speaker diarization models.
+
+### Sharing Links Don't Work
+
+[Sharing](user-guide/sharing.md) requires your Speakr instance to be accessible from the internet with HTTPS. See [sharing requirements](user-guide/sharing.md#requirements-for-sharing) and [security considerations](user-guide/sharing.md#security-and-privacy-considerations). Local installations or non-SSL setups cannot generate working share links. The share button will be disabled or show an error explaining the requirements.
+
+If your instance meets the requirements but shares still fail, check that your configured URL in the environment matches reality. Mismatched URLs cause share links to point to the wrong location. The URL must be exactly what external users will use to access your instance.
+
+### Inquire Mode Returns No Results
+
+[Semantic search](user-guide/inquire-mode.md) requires the embedding model to be properly installed and initialized. Check the [Vector Store tab](admin-guide/vector-store.md) in admin settings and review [vector store troubleshooting](admin-guide/vector-store.md#troubleshooting-common-issues) - it should show "Available" status. If not, the sentence-transformers library might be missing or failed to load.
+
+All recordings need processing before they're searchable. The Vector Store tab shows how many recordings are processed versus pending. Use the process button to manually trigger embedding generation if automatic processing has stalled.
+
+Query formulation matters enormously. [Inquire Mode](user-guide/inquire-mode.md) understands context and meaning, not just keywords. Learn [effective search strategies](user-guide/inquire-mode.md#asking-effective-questions) in the user guide. Ask complete questions rather than typing isolated words. "What did we decide about the budget?" works better than just "budget decision".
+
+## Additional Considerations
+
+### Recording Disclaimer for Legal Compliance
+
+In many jurisdictions, you must inform participants they're being recorded. Enable a recording disclaimer in [System Settings](admin-guide/system-settings.md#recording-disclaimer). Check the [FAQ on recording compliance](faq.md#do-i-need-to-inform-people-theyre-being-recorded). Set custom text that appears before any recording starts, such as legal notices about consent requirements. This feature is particularly important in regions with strict recording laws like Australia or California.
+
+### Offline Deployment
+
+Speakr can run completely offline as all dependencies are built into the Docker image. For offline deployments, use local models via Ollama for [text generation](features.md#automatic-summarization) and ensure your ASR endpoint is hosted locally. The system will work without internet access once properly configured.
+
+### Non-Docker Installation
+
+While Docker is the only officially supported installation method, you can attempt manual installation using npm and Python. You'll need to handle dependencies, environment setup, and configuration yourself. This approach is not recommended for regular use and you'll need to troubleshoot issues independently.
+
+## Getting Help
+
+### Check the Logs
+
+Docker logs contain valuable debugging information. Use `docker-compose logs -f app` to see real-time logs. Look for ERROR or WARNING messages that correspond to when problems occurred. Python tracebacks indicate code-level issues that might require support.
+
+For ASR issues, also check the ASR container logs: `docker-compose logs -f whisper-asr-webservice`
+
+### System Information
+
+When requesting help, provide your system configuration from the About tab in account settings. Include the Speakr version, configured AI model, transcription service type, and any error messages. This context helps others understand your specific setup.
+
+### Community Support
+
+The GitHub repository's issue tracker is your best resource for reporting bugs or requesting features. Search existing issues first - someone might have already encountered and solved your problem. When creating new issues, include specific steps to reproduce the problem.
+
+---
+
+Next: [FAQ](faq.md) →
\ No newline at end of file
diff --git a/docs/user-guide/first-steps.md b/docs/user-guide/first-steps.md
new file mode 100644
index 00000000..ea24fd93
--- /dev/null
+++ b/docs/user-guide/first-steps.md
@@ -0,0 +1,118 @@
+# Main View
+
+The Speakr main view is where you'll spend most of your time. It's designed as a three-panel interface that makes it easy to navigate your recordings, review transcriptions, and interact with your content. Understanding each component will help you work more efficiently with your audio recordings.
+
+![Main View Interface](../assets/images/screenshots/recording view with simple transcription view and chat visible.png)
+
+## Understanding the Interface Layout
+
+The main view is organized into three distinct sections that work together seamlessly. On the left, you have the recordings sidebar where all your audio files are listed and can be filtered. The center panel displays the full transcription of your selected recording. If your recording was processed with ASR and speaker diarization, you'll see speaker labels and can click any sentence to jump to that position in the audio. The right panel contains the AI-generated summary, your personal notes, and an interactive chat interface. Above both the center and right panels, spanning across the top, is the metadata bar with recording information and action buttons.
+
+## Top Navigation Bar
+
+The navigation bar at the top of the screen provides quick access to essential features:
+
+![Navigation Elements](../assets/images/screenshots/Filters.png)
+
+Starting from the left, you'll find the Speakr logo which always brings you back to the main view from anywhere in the application. The Inquire button opens the semantic search interface, allowing you to search across all your recordings using natural language questions. The New Recording button is your gateway to creating new content, either by uploading existing audio files or recording directly in your browser. On the right side, your username appears with a dropdown menu containing access to settings, language preferences, and the logout option.
+
+## Left Sidebar - Recording List and Filters
+
+The left sidebar is your command center for organizing and finding recordings. At the top, you'll see a search bar that lets you quickly find recordings by title or content. Below that, the filter system helps you narrow down your recording list.
+
+### Using Filters
+
+![Filter Interface](../assets/images/screenshots/Filters.png)
+
+The filter system in Speakr is designed to be both powerful and intuitive. Click on "Active filters" to expand the filtering panel. You can filter by tags, which appear as colored pills that you can click to select or deselect. The date range filter offers convenient presets like "Today", "Yesterday", "This Week", and "Last Week", or you can set a custom date range using the date pickers. When filters are active, their count appears next to the filter label, and a clear button lets you reset all filters at once.
+
+### Recording List
+
+Below the filters, your recordings are displayed as cards showing essential information at a glance. Each recording card displays the title prominently, followed by metadata including the participants (if speaker diarization was used), the recording date, and the duration. Colored tag pills show which categories have been assigned to each recording. The small icons on the right indicate the recording's processing status, with different colors for completed, processing, or failed transcriptions.
+
+## Center Panel - Transcription View
+
+The center panel is where you'll read and interact with your transcription. This is the heart of Speakr, displaying the complete text of your recording.
+
+### Transcription Display
+
+![Transcription without Diarization](../assets/images/screenshots/main view no diarization.png)
+![Transcription with Diarization](../assets/images/screenshots/Summary View.png)
+
+The transcription display varies depending on how your audio was processed. If you used a standard Whisper API endpoint, you'll see a simple continuous text transcription without speaker identification. The text flows as a single narrative, which works well for single-speaker recordings or when speaker identification isn't needed.
+
+If you've used an ASR endpoint with speaker diarization enabled, each speaker's contributions are clearly labeled with colored tags like "SPEAKER_01", "SPEAKER_02", etc. These labels are color-coded to help you follow multi-person conversations visually. While timestamps aren't displayed in the text, clicking on any sentence will automatically move the audio player to that exact position, making it easy to navigate through the recording.
+
+### View Options
+
+Above the transcription, several buttons control how the content is displayed. The Copy button lets you copy the entire transcription to your clipboard. The Edit button enables inline editing of the transcription if you need to make corrections.
+
+If your recording was processed with speaker diarization, you'll also see a Simple/Bubble toggle that switches between a flowing text view and a conversation bubble format. This toggle is only available when speaker identification is present in the transcription.
+
+## Recording Metadata Bar
+
+Spanning across the top of both the center and right panels, the metadata bar displays important recording information and provides quick access to actions. From left to right, you'll see the recording title, participant names (if identified), recording date and time, file size, and duration. The action buttons on the right side of this bar allow you to bookmark the recording (star icon), edit recording details (pencil icon), manage tags (tag icon), reprocess the transcription (refresh icon), share the recording (share icon), and delete the recording (trash icon).
+
+## Right Panel - Playback, Summary, Notes, and Chat
+
+The right panel contains three tabbed sections that enhance your transcription with AI-powered features and personal annotations.
+
+### Playback Controls
+
+At the top of the right panel, you'll find the audio player controls. The play button starts and pauses playback, while the timeline shows your current position in the recording. You can click anywhere on the timeline to jump to that point. The speed control lets you adjust playback from 0.5x to 2x speed, which is particularly useful for quickly reviewing content or carefully analyzing specific sections.
+
+If your recording has speaker diarization, clicking on any sentence in the transcription will automatically seek the audio player to that exact moment, providing seamless navigation through the recording.
+
+### Summary Tab
+
+The Summary tab displays an AI-generated overview of your recording. This summary captures the key points, decisions, and action items from your recording, saving you time when reviewing content. The summary is automatically generated after transcription completes but can be regenerated with different settings if needed.
+
+### Notes Tab
+
+The Notes tab is your personal workspace for adding context, thoughts, or follow-up items related to the recording. These notes are private to you and searchable, making them perfect for adding meeting outcomes, personal reminders, or additional context that wasn't captured in the recording. The notes support markdown formatting, allowing you to create lists, headers, and formatted text.
+
+### Chat Tab
+
+The Chat tab provides an interactive AI assistant that can answer questions about your recording. Simply type a question like "What were the main decisions made?" or "What did John say about the budget?" and the AI will analyze the transcription to provide relevant answers. This is particularly useful for long recordings where you need to quickly find specific information.
+
+## Reprocessing Options
+
+Speakr provides two types of reprocessing to update your recordings with improved settings or different parameters.
+
+### Full Reprocessing
+
+![Full Reprocessing Modal](../assets/images/screenshots/full recording reprocessing.png)
+
+Full reprocessing completely re-transcribes your audio file using the ASR endpoint. This is useful when you want to change speaker diarization settings or use a different transcription model. Access this by clicking the refresh icon in the metadata bar and selecting "Transcription Reprocessing". You can adjust the language setting, minimum and maximum speakers for diarization, and other ASR-specific options. Note that full reprocessing will overwrite any manual edits you've made to the transcription.
+
+### Summary Reprocessing
+
+![Summary Reprocessing Modal](../assets/images/screenshots/summary reprocessing modal.png)
+
+Summary reprocessing generates a new title and summary based on the existing transcription. This is faster than full reprocessing and preserves any edits you've made to the transcription text. Use this when you want to regenerate the summary with different AI settings or after making significant edits to the transcription. Access this option from the same refresh menu by selecting "Summary Reprocessing".
+
+## Working with Multiple Recordings
+
+The main view is designed to handle large libraries of recordings efficiently. You can combine multiple filters to find exactly what you're looking for. For example, you might filter for all "Meeting" tagged recordings from last week that mention "budget" in the transcription. The filters work together, narrowing down your results with each additional criterion.
+
+When working with many recordings, consider using the sort options to organize by either creation date (when you uploaded or recorded) or meeting date (when the recording actually took place). This distinction is particularly useful when you're uploading older recordings or processing a backlog of audio files.
+
+## Tips for Effective Use
+
+To get the most out of the main view, develop a consistent tagging strategy early on. Create tags for different projects, clients, or meeting types, and apply them consistently. This small investment of time pays dividends when you need to find specific recordings later.
+
+The search function is powerful but works best with specific terms. Instead of searching for common words like "the" or "meeting", search for unique terms, project names, or specific topics discussed in your recordings.
+
+Make use of the notes section immediately after meetings while the context is fresh in your mind. These personal annotations become invaluable when revisiting recordings weeks or months later.
+
+For long recordings, the chat interface can save significant time. Instead of reading through an entire hour-long transcription, ask the AI specific questions about decisions made, action items assigned, or topics discussed.
+
+Remember that the interface updates in real-time. When you upload a new recording or when transcription completes, the interface will automatically refresh to show the latest status. You don't need to manually reload the page to see updates.
+
+## Creating New Content
+
+Now that you understand how to navigate and interact with existing recordings in the main view, let's explore how to create new content. Speakr offers two ways to add recordings to your library: uploading existing audio files or recording directly in your browser.
+
+---
+
+Next: [Recording and Uploading Audio](recording.md) →
\ No newline at end of file
diff --git a/docs/user-guide/index.md b/docs/user-guide/index.md
new file mode 100644
index 00000000..01ef0c2d
--- /dev/null
+++ b/docs/user-guide/index.md
@@ -0,0 +1,116 @@
+# User Guide
+
+Welcome to the Speakr User Guide! This documentation will help you master every feature, from basic recording to advanced AI-powered search capabilities.
+
+## Quick Navigation
+
+<div class="guide-cards">
+ <div class="guide-card">
+ <div class="card-icon">🖥️</div>
+ <h3>Main View</h3>
+ <p>Navigate the three-panel interface, use smart filters, and manage your recordings efficiently.</p>
+ <a href="first-steps" class="card-link">Learn the Interface →</a>
+ </div>
+
+ <div class="guide-card">
+ <div class="card-icon">🎙️</div>
+ <h3>Recording & Uploading</h3>
+ <p>Upload audio files or record directly in your browser with live note-taking capabilities.</p>
+ <a href="recording" class="card-link">Start Recording →</a>
+ </div>
+
+ <div class="guide-card">
+ <div class="card-icon">📝</div>
+ <h3>Working with Transcripts</h3>
+ <p>Edit transcriptions, identify speakers, and use AI chat to explore your content.</p>
+ <a href="transcripts" class="card-link">Master Transcripts →</a>
+ </div>
+
+ <div class="guide-card">
+ <div class="card-icon">🔍</div>
+ <h3>Inquire Mode</h3>
+ <p>Search across all recordings using natural language and semantic understanding.</p>
+ <a href="inquire-mode" class="card-link">Explore Inquire Mode →</a>
+ </div>
+
+ <div class="guide-card">
+ <div class="card-icon">🔗</div>
+ <h3>Sharing Recordings</h3>
+ <p>Create secure share links for recordings with control over what content is visible.</p>
+ <a href="sharing" class="card-link">Share Content →</a>
+ </div>
+
+ <div class="guide-card">
+ <div class="card-icon">⚙️</div>
+ <h3>Account Settings</h3>
+ <p>Configure preferences, manage speakers, create tags, and customize AI prompts.</p>
+ <a href="settings" class="card-link">Customize →</a>
+ </div>
+</div>
+
+## Pro Tips for Success
+
+<div class="tips-grid">
+ <div class="tip-card">
+ <h4>🏷️ Organize with Tags</h4>
+ <p>Create a consistent tagging system early. Tags with custom AI prompts can automatically generate specialized summaries for different content types.</p>
+ </div>
+
+ <div class="tip-card">
+ <h4>🎤 Recording Best Practices</h4>
+ <p>Use combined microphone and system audio for meetings. Take live notes to mark important moments without interrupting the recording.</p>
+ </div>
+
+ <div class="tip-card">
+ <h4>👥 Identify Speakers</h4>
+ <p>After transcription, identify speakers to build your speaker library. Future recordings will suggest known speakers automatically.</p>
+ </div>
+
+ <div class="tip-card">
+ <h4>💬 Chat Efficiently</h4>
+ <p>For long recordings, ask specific questions like "What were the action items?" instead of reading the entire transcript.</p>
+ </div>
+
+ <div class="tip-card">
+ <h4>🔎 Search Smartly</h4>
+ <p>Inquire Mode understands context, not just keywords. Ask natural questions to find information across all your recordings.</p>
+ </div>
+
+ <div class="tip-card">
+ <h4>📊 Custom Summaries</h4>
+ <p>Set personal summary prompts in settings to get summaries tailored to your specific needs and workflow.</p>
+ </div>
+</div>
+
+## Getting Started
+
+The best way to learn Speakr is by doing. Start with these simple steps:
+
+1. **Upload a test file** - Try a short audio recording to see the transcription process
+2. **Explore the interface** - Click through the different views and panels
+3. **Try the AI chat** - Ask questions about your recording to see the AI in action
+4. **Create your first tag** - Set up organization from the beginning
+5. **Test Inquire Mode** - Search for something specific in your recordings
+
+As you grow comfortable with basics, explore advanced features like speaker diarization, custom AI prompts, and bulk operations.
+
+## Need Help?
+
+<div class="help-section">
+ <div class="help-item">
+ <span class="help-icon">📚</span>
+ <span>Browse the complete <a href="../faq">FAQ</a> for quick answers</span>
+ </div>
+ <div class="help-item">
+ <span class="help-icon">🔧</span>
+ <span>Check <a href="../troubleshooting">Troubleshooting</a> for common issues</span>
+ </div>
+ <div class="help-item">
+ <span class="help-icon">💬</span>
+ <span>Report issues on <a href="https://github.com/murtaza-nasir/speakr/issues">GitHub</a></span>
+ </div>
+</div>
+
+---
+
+Ready to become a Speakr power user? Start with [First Steps](first-steps.md) →
\ No newline at end of file
diff --git a/docs/user-guide/inquire-mode.md b/docs/user-guide/inquire-mode.md
new file mode 100644
index 00000000..4c3d9d7c
--- /dev/null
+++ b/docs/user-guide/inquire-mode.md
@@ -0,0 +1,100 @@
+---
+layout: default
+title: Inquire Mode
+parent: User Guide
+nav_order: 4
+---
+
+# Inquire Mode - Semantic Search
+
+Inquire Mode transforms your entire recording library into an intelligent knowledge base that you can search using natural language questions. Instead of hunting through individual recordings or trying to remember which meeting contained a specific discussion, you can simply ask questions and receive comprehensive answers drawn from all your relevant recordings.
+
+![Inquire Mode Interface](../assets/images/screenshots/inquire mode.png)
+
+## Understanding Inquire Mode
+
+Think of Inquire Mode as having a knowledgeable assistant who has listened to every recording in your library and can instantly recall and synthesize information from any of them. When you ask a question, the system searches across all your transcriptions, understands the context and meaning behind your query, and provides a coherent answer with citations back to the source recordings.
+
+This semantic search capability goes far beyond simple keyword matching. The system understands concepts, relationships, and context. If you ask about "budget concerns," it will find discussions about financial constraints, cost overruns, funding issues, and resource limitations - even if the exact phrase "budget concerns" was never spoken.
+
+## Getting Started with Inquire Mode
+
+Access Inquire Mode by clicking the Inquire button in the top navigation bar. The interface opens with a clean search area at the top and powerful filtering options on the left side. Your search results appear in the main content area, organized and formatted for easy reading.
+
+The beauty of Inquire Mode is its simplicity. You don't need to learn special search syntax or commands. Just type your question as you would ask a colleague, and the system handles the complexity of finding and synthesizing the relevant information.
+
+## Using Filters to Focus Your Search
+
+The left sidebar contains filters that help you narrow your search to specific recordings before asking your question. This is particularly useful when you have a large library and want to focus on certain contexts.
+
+The tag filter lets you select recordings with specific tags, which is perfect when you want to search within a particular project, client, or type of meeting. If you've tagged your recordings consistently, this becomes a powerful way to segment your searches. The system shows how many recordings match each tag, helping you understand the scope of your search.
+
+Speaker filtering allows you to focus on what specific people have said across recordings. This is invaluable when you need to track commitments from a particular person, understand someone's perspective on various topics, or prepare for a meeting with specific individuals.
+
+Date range filtering helps you focus on recent discussions or search within a specific time period. This is particularly useful for tracking how discussions have evolved over time or finding information from a specific quarter or project phase.
+
+## Asking Effective Questions
+
+![Inquire Mode Example Results](../assets/images/screenshots/inquire mode 2.png)
+
+The key to getting great results from Inquire Mode is asking clear, specific questions. The system works best when you provide context and be specific about what you're looking for.
+
+Instead of searching for single words like "deadline," ask complete questions like "What are the upcoming deadlines for the mobile app project?" This helps the AI understand not just what information you want, but why you want it and how to present it most usefully.
+
+The system excels at different types of queries. You can ask for summaries of specific topics across multiple meetings, request lists of action items or decisions, search for specific statements or commitments, analyze patterns or trends in discussions, or identify problems and proposed solutions.
+
+## Understanding Your Results
+
+![Contextual Search Results](../assets/images/screenshots/inquire mode.png)
+
+When Inquire Mode returns results, it provides a synthesized answer that draws from all relevant recordings. The response isn't just a list of search hits - it's a coherent narrative that combines information from multiple sources into a unified answer.
+
+Each piece of information includes a citation in the format (Recording ID: XX) that links directly to the source recording. Clicking these links takes you to the full recording where you can see the complete context. This transparency ensures you can always verify the information and dive deeper when needed.
+
+The system intelligently organizes information, grouping related points together and presenting them in a logical flow. If multiple recordings discuss the same topic, the answer will synthesize these discussions, showing how the conversation evolved over time while maintaining clear attribution to each source.
+
+## Practical Applications
+
+Inquire Mode shines in numerous real-world scenarios. When preparing for meetings, you can quickly review what was previously discussed about agenda topics, what questions remained unresolved, and what commitments were made. This ensures you walk into meetings fully informed without spending hours reviewing old recordings.
+
+For project management, the system helps track decisions across multiple meetings, identify all action items assigned to team members, and monitor how project requirements or priorities have changed over time. You can ask questions like "What risks have been identified for the product launch?" and receive a comprehensive list drawn from all relevant discussions.
+
+Research and analysis become dramatically more efficient. Whether you're analyzing customer feedback patterns, tracking competitor mentions, or identifying recurring themes across interviews, Inquire Mode can surface insights that might otherwise remain buried in hours of recordings.
+
+The system also serves as an excellent compliance and documentation tool. You can quickly find specific commitments made to clients, locate discussions about regulatory requirements, or verify what was agreed upon in negotiations. The citation system provides an audit trail back to the original recordings.
+
+## Advanced Search Strategies
+
+As you become more comfortable with Inquire Mode, you can develop sophisticated search strategies. Start with broader questions to understand the landscape of available information, then drill down with increasingly specific queries. This iterative approach helps you discover information you might not have known to ask about directly.
+
+Combine filters strategically. For instance, when preparing for a client meeting, filter by that client's tag and the relevant date range, then ask about outstanding issues or commitments. This focused approach yields highly relevant results without noise from unrelated recordings.
+
+Pay attention to how the system interprets your questions. If results aren't quite what you expected, try rephrasing with different terms or adding more context. The system learns from the patterns in your recordings, so using terminology consistent with your actual discussions often yields better results.
+
+## Technical Considerations
+
+Inquire Mode's power comes from its semantic understanding capabilities. When embeddings are enabled (with sentence-transformers installed), the system creates mathematical representations of meaning that allow it to understand concepts beyond simple keyword matching. This means it can find relevant information even when different words are used to express the same ideas.
+
+Speakr uses the all-MiniLM-L6-v2 embedding model, a deliberately lightweight choice that balances performance with resource efficiency. This model generates 384-dimensional vectors and runs comfortably on CPU-only systems, which is crucial since most Speakr deployments are on standard servers or personal machines without dedicated GPUs. While newer, larger embedding models exist, they would require significantly more computational resources and could make the system sluggish or unusable on typical hardware. The MiniLM model provides excellent semantic understanding for conversational content while remaining fast and responsive even when processing hundreds of recordings.
+
+The system processes recordings in chunks, allowing it to search through even very long recordings efficiently. Each chunk is analyzed independently but results are synthesized to maintain context and continuity. This approach ensures both speed and accuracy, even with large recording libraries.
+
+Performance scales well with proper setup. The initial indexing of recordings happens automatically after transcription, and subsequent searches leverage this pre-computed index. Response times typically range from a few seconds for focused searches to slightly longer for complex queries across large libraries.
+
+## Making the Most of Inquire Mode
+
+To maximize the value of Inquire Mode, maintain good recording hygiene. Ensure your recordings have clear audio quality for accurate transcription, use speaker identification to track who said what, and apply consistent tags to organize your content. The better your input data, the more powerful your searches become.
+
+Take advantage of the iterative nature of search. Start with a general question, review the results, then ask follow-up questions to drill deeper. The system maintains context within a session, making it easy to refine your search based on initial results.
+
+Remember that Inquire Mode complements, not replaces, the standard recording interface. Use Inquire Mode for discovery and synthesis across recordings, but when you need deep focus on a single recording, the standard transcription view with its chat interface might be more appropriate.
+
+## Limitations to Keep in Mind
+
+While powerful, Inquire Mode has boundaries. It searches only transcribed text, not audio directly, so any errors in transcription will affect search results. The system cannot infer information that isn't explicitly stated in recordings - it finds and synthesizes what was said, not what was meant but left unsaid.
+
+Language support is optimized for English, as the embedding model (all-MiniLM-L6-v2) was primarily trained on English text. Other languages may work with varying degrees of success. Very long recordings might be summarized rather than fully indexed if they exceed processing limits. The system requires recordings to be fully processed before they're searchable, so very recent recordings might not appear immediately in results.
+
+---
+
+Next: [Sharing Recordings](sharing.md) →
\ No newline at end of file
diff --git a/docs/user-guide/recording.md b/docs/user-guide/recording.md
new file mode 100644
index 00000000..37db4085
--- /dev/null
+++ b/docs/user-guide/recording.md
@@ -0,0 +1,200 @@
+# Recording and Uploading Audio
+
+Speakr provides two powerful ways to add content to your library: uploading existing audio files for transcription or recording new audio directly in your browser. Both methods include the same powerful features for organization, [tagging](settings.md#tag-management-tab), and processing. After recording, you can [work with transcriptions](transcripts.md) and use [AI features](../features.md#ai-powered-intelligence).
+
+## Important: Browser Requirements for Recording
+
+Before you start recording, it's crucial to understand that browser security features can affect your ability to record audio, especially system audio. For security reasons, most browsers require HTTPS connections for audio recording features. If you're accessing Speakr locally (not via localhost), you may need to configure your browser to allow audio recording on HTTP connections. Detailed browser configuration instructions are provided at the bottom of this page.
+
+When recording system audio, you'll need to grant screen sharing permissions and specifically enable the "Also share system audio" option. Without this, only your microphone will be recorded. Different browsers may phrase this option differently, but it's essential for capturing computer audio.
+
+## Accessing the New Recording Screen
+
+Click the "+ New Recording" button in the top navigation bar to access the recording interface. This opens a dedicated screen where you can either upload files or start a live recording.
+
+![New Recording View](../assets/images/screenshots/new recording view.png)
+
+## Uploading Audio Files
+
+The upload interface provides a simple drag-and-drop area at the top of the screen. You can either drag audio files directly from your file manager onto this area, or click the area to open a file browser and select files.
+
+Speakr supports a [wide range of audio and video formats](../faq.md#what-audio-formats-does-speakr-support). Common audio formats like MP3, WAV, M4A, FLAC, AAC, and OGG work perfectly. You can also upload video files including MP4, MOV, and AVI, and Speakr will extract and process the audio track. Mobile recordings in formats like AMR, 3GP, and 3GPP are also supported. The default file size limit is 500MB, though this can be configured by your administrator in [system settings](../admin-guide/system-settings.md#maximum-file-size). For files over 25MB with OpenAI, see [chunking configuration](../troubleshooting.md#files-over-25mb-fail-with-openai).
+
+When you upload a file, it immediately appears in the upload queue with a progress bar showing the upload status. Once uploaded, you can add [tags](settings.md#tag-management-tab), set a custom title, and configure processing options before starting transcription. Tags can include [custom AI prompts](../admin-guide/prompts.md) for specialized processing.
+
+## Recording Live Audio
+
+Below the upload area, you'll find the audio recording section with three distinct recording modes, each designed for different scenarios:
+
+![Recording Options](../assets/images/screenshots/after recording, finalize tags and settings and notes before uploading or discard.png)
+
+### Microphone Recording
+
+The red microphone button captures audio from your selected microphone. This mode is perfect for recording in-person meetings, personal voice notes, or interviews. When you click this option, your browser will request microphone permission if it hasn't been granted already. You can select which microphone to use if you have multiple input devices connected.
+
+### System Audio Recording
+
+The blue system audio button captures all sound playing through your computer. This is ideal for recording online meetings when you're primarily listening, webinars, video presentations, or any audio content playing on your computer. This feature uses the browser's screen capture API, so you'll need to select which screen or application to share when you start recording. Make sure to check the "Share system audio" checkbox in the sharing dialog.
+
+### Combined Recording (Microphone + System)
+
+The purple combined button records both your microphone and system audio simultaneously into a single synchronized track. This is the recommended mode for online meetings where you're an active participant, as it captures both sides of the conversation. The system intelligently mixes both audio sources, ensuring clear recording of both your voice and the meeting audio.
+
+## How to Enable System Audio Recording
+
+When you click to record system audio (or both microphone and system), your browser will display a screen sharing dialog. This might seem confusing at first since you want to record audio, not share your screen, but this is how browsers provide access to system audio.
+
+### Recording from a Browser Tab
+
+Choose the tab option if the audio you want to record is playing within a specific browser tab, such as a YouTube video, web-based meeting platform (like Google Meet or browser-based Zoom), or online training video.
+
+![Tab Selection with Audio](../assets/images/screenshots/record from tab.png)
+
+When selecting a tab, you'll see a preview of all your open tabs. Choose the tab containing your audio source, then make sure to enable the **"Also share tab audio"** checkbox at the bottom of the dialog. This checkbox is critical - without it enabled, you'll only record silence. The exact wording may vary by browser (Chrome might say "Share tab audio" while Edge might phrase it slightly differently), but there will always be an audio-related checkbox that must be checked.
+
+This option will only capture audio from that specific tab, so make sure all the audio you're interested in is within that single tab before starting your recording.
+
+### Recording from Your Entire Screen
+
+Choose the screen option if the audio you want to record is coming from desktop applications or multiple sources.
+
+![Screen Selection Dialog](../assets/images/screenshots/record from screen.png)
+
+This is the recommended option when recording:
+- Desktop applications like Zoom client, Microsoft Teams, Skype, or Discord
+- Audio from multiple browser tabs simultaneously
+- System sounds or notifications you want to capture
+- Any combination of audio sources on your computer
+
+When you select "Your Entire Screen", you'll see previews of all your available screens (if you have multiple monitors). It doesn't matter which screen you choose since Speakr only records audio, not video. The critical step is to enable the **"Also share system audio"** checkbox at the bottom of the dialog. Without this checkbox enabled, you'll only record silence.
+
+**Important macOS Limitation:** The "Also share system audio" option is available on Windows and Linux, but may not be available on macOS due to operating system limitations. macOS users may only be able to record audio from browser tabs, not from the entire system or desktop applications. This is a limitation imposed by macOS's security model, not by Speakr or your browser.
+
+## During Recording - Live Interface
+
+Once you start recording, the interface transforms to show the active recording session:
+
+![Live Recording Interface](../assets/images/screenshots/Record mic or system audio (for online meetings) and take markdown notes.png)
+
+### Real-Time Audio Monitoring
+
+The recording interface displays live audio visualizers for each active input source. When recording from your microphone, you'll see a real-time waveform showing your voice levels. For system audio recording, a separate visualizer displays the computer audio levels. These visualizers help you confirm that audio is being captured properly and at appropriate levels.
+
+A prominent timer at the top shows the elapsed recording time in minutes and seconds, updating in real-time. Below the timer, you'll see an estimate of the file size based on the current recording duration and quality settings. This helps you stay aware of how much storage space your recording will require.
+
+### Live Note-Taking with Markdown
+
+One of Speakr's most powerful features is the ability to take structured notes while recording. The note-taking area appears below the audio visualizers and supports full markdown formatting.
+
+![Note Taking During Recording](../assets/images/screenshots/live recording view with notes.png)
+
+The markdown editor includes a formatting toolbar with buttons for common formatting options like bold, italic, headers, quotes, lists, and links. You can also type markdown syntax directly if you prefer. The editor supports all standard markdown elements, allowing you to create well-structured notes that complement your recording.
+
+Your notes are saved automatically and will be associated with the recording. They appear in the Notes tab when viewing the recording later and are fully searchable alongside the transcription. This makes it easy to capture important context, decisions, or action items that might not be explicitly stated in the audio.
+
+Common use cases for live notes include capturing action items and deadlines during meetings, noting important timestamps for later reference, recording participant names and roles, documenting decisions and their rationale, and adding context that might not be clear from the audio alone.
+
+## Finalizing Your Recording
+
+After stopping a recording or selecting an uploaded file, you'll see the finalization screen where you can add metadata and configure processing options:
+
+![Upload Modal](../assets/images/screenshots/after recording, finalize tags and settings and notes before uploading or discard.png)
+
+### Adding Tags
+
+The tag system is one of Speakr's most powerful organizational features. Tags appear as colored pills that you can select to categorize your recording. You can apply multiple tags to a single recording, making it easy to cross-reference content across different categories.
+
+![Tag Selection and Stacking](../assets/images/screenshots/tag selection and stacking.png)
+
+It's important to select relevant tags before uploading your file so that the appropriate summary prompts are applied during summarization. Each tag can have custom AI prompts associated with it, which influence how the summary is generated. For example, a "Meeting" tag might focus the summary on action items and decisions, while a "Lecture" tag might emphasize key concepts and learning points.
+
+**Intelligent Prompt Stacking:** When you select multiple tags, their associated prompts are concatenated in the order you select them, allowing for intelligent stacking of instructions. This powerful feature lets you combine general and specific prompts. For instance, you might have a standard "Meetings" tag with general meeting instructions, then add a project, client, or situation specific tag that adds additional context and instructions for the summarization. The AI will apply both sets of instructions by concatenating general meeting requirements with the specific modifications. This allows you to create sophisticated summarization rules without having to create a separate tag for every possible combination. To create and manage tags with custom prompts, see [Tag Management in Account Settings](settings.md#tag-management-tab).
+
+As shown in the interface, if you add tags that include summarization instructions, you will get an indication of this in the UI. The order matters - select your primary tag first, then add modifying tags to layer additional instructions. Tags are also searchable and filterable in the main view, making it easy to find related recordings later.
+
+### Advanced ASR Options
+
+If your administrator has configured ASR endpoints with speaker diarization, you'll see an expandable "Advanced ASR Options" section. Here you can specify the transcription language if your content is not in English, set the minimum and maximum number of expected speakers for better diarization accuracy, and configure other ASR-specific settings based on your setup.
+
+These settings are particularly useful for meetings with known participants, as setting accurate speaker counts improves the AI's ability to separate different voices in the transcription.
+
+### Final Actions
+
+At the bottom of the modal, you have three options for proceeding. The "Upload" or "Start Processing" button begins transcription immediately with your selected settings. The recording will appear in your library with a processing indicator while transcription runs in the background. The "Discard" option deletes the recording without saving, useful if you made a test recording or captured the wrong content. Some configurations may also offer a "Save Draft" option to store the recording without processing it immediately.
+
+## Best Practices for Quality Recordings
+
+### Optimizing Audio Quality
+
+The quality of your transcription starts with the quality of your recording. When using a microphone, find a quiet space with minimal echo and background noise. Soft furnishings and carpeted rooms generally provide better acoustics than empty rooms with hard surfaces. Position your microphone consistently, about 6-12 inches from your mouth, and speak at a steady volume.
+
+**Important Note for Phone Recordings:** Many smartphones have aggressive noise cancellation algorithms designed to enhance single-speaker calls. When recording meetings or conversations with multiple speakers using a phone's microphone, these noise cancellation features may incorrectly identify other speakers as background noise and filter them out. This can result in muffled or missing audio from speakers who are farther from the phone. This is not a limitation of Speakr but rather how modern phones process audio. For multi-speaker recordings, consider using an external microphone without noise cancellation or positioning the phone equidistant from all speakers.
+
+For system audio recording, close unnecessary applications that might produce notification sounds or background audio. If you're recording a video call, ensure you have a stable internet connection to avoid audio dropouts. Using wired internet instead of WiFi can improve stability for important recordings.
+
+When recording both microphone and system audio, use headphones to prevent echo and feedback. This ensures that the system audio doesn't get picked up by your microphone, which would create a confusing double recording.
+
+### Effective Organization from the Start
+
+Develop a consistent approach to naming and tagging your recordings. Include key information in titles such as the meeting type, main topic, or project name. If the original meeting date is different from the upload date, make sure you update the meeting date on upload, making chronological sorting easier.
+
+Apply tags before or immediately after recording while the context is fresh in your mind. Consider creating a standard set of tags for different types of content like meetings, lectures, interviews, or personal notes. If your organization uses specific project codes or client names, incorporate these into your tagging system.
+
+Take advantage of the live note-taking feature to capture information that might not be clear from audio alone. Note participant names at the beginning of meetings, mark important timestamps when key decisions are made, and document any visual information that was shared but won't be captured in the audio.
+
+
+## Browser Configuration for Local Deployments
+
+### System Audio Recording Requirements
+
+System audio recording requires specific browser support and configuration. The feature works best in Chrome and other Chromium-based browsers like Edge or Brave. Firefox has limited support, and Safari currently doesn't support system audio recording at all.
+
+For production deployments using HTTPS, audio recording works without additional configuration. However, if you're accessing Speakr over HTTP (except for localhost), you'll need to configure your browser to allow audio recording on insecure connections.
+
+### Chrome Configuration for HTTP Access
+
+If you're accessing Speakr over HTTP (not localhost), Chrome will block audio recording by default. To enable it:
+
+1. Open Chrome and navigate to `chrome://flags`
+2. Search for "Insecure origins treated as secure"
+3. In the text field, enter your Speakr URL (e.g., `http://192.168.1.100:8899`)
+4. Set the dropdown to "Enabled"
+5. Click "Relaunch" to restart Chrome with the new settings
+
+This configuration tells Chrome to treat your specific HTTP URL as if it were secure, enabling all audio recording features.
+
+### Firefox Configuration for HTTP Access
+
+Firefox requires a different approach to enable microphone access on HTTP sites:
+
+1. Open Firefox and navigate to `about:config`
+2. Click "Accept the Risk and Continue" when warned
+3. Search for `media.devices.insecure.enabled`
+4. Double-click the setting to change it from `false` to `true`
+5. Restart Firefox for the change to take effect
+
+Note that even with this setting, Firefox's system audio capture may not work reliably. For system audio recording, Chrome is strongly recommended.
+
+### Security Considerations
+
+These browser configurations reduce security and should only be used for local development or trusted internal networks. For production deployments, always use HTTPS with proper SSL certificates. This ensures all browser features work correctly and maintains security for your users.
+
+### Common Issues and Solutions
+
+If your microphone isn't detected, first check that your browser has permission to access it. Click the padlock or information icon in the address bar and ensure microphone access is allowed. Verify your microphone is properly connected and selected as the default input device in your system settings. If problems persist, try using a different browser or restarting your current browser.
+
+When system audio recording isn't working, the most common issue is forgetting to check the "Also share system audio" checkbox when selecting what to share. This checkbox appears at the bottom of the screen/tab selection dialog and must be enabled. Make sure you're selecting either the entire screen or a browser tab, not an individual application window, as application audio sharing is often not supported.
+
+If you're on a locally hosted instance and can't record audio, check whether you're accessing Speakr via HTTP. Browsers block audio recording on insecure connections for security reasons. Either set up HTTPS with a reverse proxy or configure your browser using the instructions above to allow audio recording on your specific HTTP URL.
+
+If a recording stops unexpectedly, check your available disk space as browsers have limits on local storage. Ensure your internet connection is stable, especially if you have auto-save features enabled. Check the browser's developer console (F12) for any error messages that might indicate the problem.
+
+For poor audio quality issues, start by checking your microphone placement and gain settings. External USB microphones often provide better quality than built-in laptop microphones. Reduce background noise by closing windows, turning off fans, and muting other devices. If recording system audio, ensure the source audio quality is good, as Speakr can't improve poor source audio.
+
+## Moving Forward
+
+Now that you understand how to create and upload recordings, you're ready to explore how to work with transcriptions and leverage Speakr's AI-powered features for summarization and chat.
+
+---
+
+Next: [Working with Transcriptions](transcripts.md) →
\ No newline at end of file
diff --git a/docs/user-guide/settings.md b/docs/user-guide/settings.md
new file mode 100644
index 00000000..d9286e32
--- /dev/null
+++ b/docs/user-guide/settings.md
@@ -0,0 +1,185 @@
+# Account Settings
+
+Your account settings are the control center for personalizing Speakr to work exactly how you need it. Every preference you set here shapes your daily experience, from the language you see to how AI summarizes your recordings. Access these settings by clicking your username in the top navigation and selecting Account.
+
+## Account Information Tab
+
+![Account Information](../assets/images/screenshots/settings account info.png)
+
+The Account Information tab presents a comprehensive view of your profile, statistics, and account actions.
+
+### Personal Information
+
+On the left side, you'll find fields to update your full name, job title, and company or organization. These details help identify you in collaborative environments and provide context for your recordings. Keeping these current ensures colleagues can recognize your contributions and administrators can manage users effectively.
+
+### Language Preferences
+
+Three distinct language settings shape your entire Speakr experience. The interface language dropdown immediately transforms all menus, buttons, and messages to your chosen language - English, Spanish, French, Chinese, or German. The transcription language field accepts ISO language codes like "en" or "es" to optimize recognition accuracy, though leaving it blank enables automatic detection for multilingual content. The preferred chatbot and summarization language ensures all AI-generated content appears in your chosen language, regardless of the source audio's language.
+
+### Account Statistics
+
+The right side displays your recording metrics at a glance. You'll see your total recordings count and how many have been completed processing. Below that, the number of recordings currently processing and any that have failed provide immediate insight into your content status.
+
+### User Details
+
+Your username and email address appear here as read-only fields. The email serves as your login credential and cannot be changed without administrator assistance.
+
+### Account Actions
+
+The account actions section provides quick access to essential functions. The prominent "Go to Recordings" button takes you directly to your recording library. The "Change Password" button opens a secure dialog for updating your credentials. The "Manage Speakers" link provides a shortcut to speaker profile management, though this functionality is also accessible via its dedicated tab.
+
+## Custom Prompts Tab
+
+![Custom Prompts](../assets/images/screenshots/settings custom prompts.png)
+
+The Custom Prompts tab unlocks one of Speakr's most powerful features - the ability to shape how AI interprets and summarizes your recordings.
+
+### Your Custom Summary Prompt
+
+The large text area accepts detailed instructions in natural language that become the AI's instruction set. Think of it as teaching an assistant exactly how you want meeting notes prepared. You might request specific sections like "Key Technical Decisions" for engineering meetings or "Patient Observations" for medical consultations.
+
+### Current Default Prompt
+
+Below your custom prompt area, you'll see the default prompt that applies when you leave yours blank. This transparency shows exactly what baseline instructions the AI follows - typically requesting key issues, decisions, and action items. Use this as a foundation to build upon or completely replace with your own approach.
+
+### Prompt Hierarchy
+
+Understanding prompt precedence helps you use this feature effectively. Tag prompts have the highest priority - when you tag a recording with "Legal" or "Sales," any prompts associated with those tags override everything else. Your personal custom prompt comes next, applying to all recordings without tag-specific prompts. Below that sits the admin default set by your Speakr administrator, with a system fallback ensuring summaries always generate.
+
+### Prompt Stacking
+
+Multiple tag prompts combine intelligently when applied together. A recording tagged with both "Client" and "Technical" receives both sets of instructions, creating comprehensive summaries without needing complex single prompts trying to cover every scenario.
+
+### Writing Effective Prompts
+
+Craft prompts based on how you actually use summaries. Do you extract action items for project management? Look for decisions that affect strategy? Track technical details for documentation? Your prompt should request exactly what you need for these next steps.
+
+### Tips for Better Prompts
+
+The expandable tips section provides guidance on crafting better instructions. Focus on clarity, structure your requests with sections or bullet points, and be specific about the level of detail you need. Remember that your prompt applies to all recordings without tag-specific prompts, so design for versatility.
+
+## Shared Transcripts Tab
+
+![Shared Transcripts](../assets/images/screenshots/settings shared transcripts.png)
+
+The Shared Transcripts tab provides complete visibility and control over every recording you've shared.
+
+### Initial State
+
+When first accessing this tab, you'll see "You have not shared any transcripts yet" - this changes once you create your first share link from any recording.
+
+### Share Information Display
+
+Once you've shared recordings, each entry displays the recording title, when you created the share link, what information you included (summary and/or notes), and the complete URL for access. The interface matches what you see in the sharing modal, maintaining consistency across the application.
+
+### Managing Share Settings
+
+The Share Summary checkbox determines whether recipients see your AI-generated summary - useful for giving quick overviews without requiring full transcript reading. The Share Notes checkbox controls access to your personal notes, those additional thoughts and context you've added after the recording.
+
+You can modify these settings anytime without generating new links. Toggle summary or notes on or off, and the change applies immediately to anyone accessing that link. This flexibility lets you adjust sharing based on evolving needs or feedback from recipients.
+
+### Revoking Access
+
+The delete button (trash icon) immediately revokes access. Once deleted, anyone trying to access that link sees an error message. This instant revocation provides security when you've accidentally shared with wrong parties or when access is no longer appropriate. Remember that deletion can't retrieve information already viewed or downloaded by recipients.
+
+## Speakers Management Tab
+
+![Speakers Management](../assets/images/screenshots/settings speakr management.png)
+
+The Speakers Management tab provides a comprehensive interface for managing all speakers identified across your recordings.
+
+### Automatic Speaker Creation
+
+Speakers are automatically saved when you identify them during transcription editing. The system builds your library over time as you consistently name participants across recordings.
+
+### Speaker Card Information
+
+Each speaker card displays essential information in a clean, scannable format. The speaker's name appears prominently, followed by usage statistics showing how many times they've been identified across your recordings. The last used date helps you understand which speakers are current versus historical. When a speaker was added to your library is tracked for reference.
+
+### Interface Layout
+
+The grid layout accommodates multiple speakers per row, making efficient use of screen space while maintaining readability. Each card includes action buttons - an edit icon for updating speaker details and a delete icon for removal. The red trash icon on each card provides individual deletion, while the "Delete All" button at the bottom enables bulk cleanup when needed.
+
+### Library Statistics
+
+At the bottom of the interface, a count shows your total saved speakers - "77 speakers saved" in the example. This helps you track the size of your speaker library and understand when maintenance might be needed.
+
+### Maintenance Best Practices
+
+Regular maintenance keeps your speaker library relevant. Remove speakers who no longer appear in recordings, consolidate duplicates created with slight name variations, and ensure names are consistent for better transcript coherence. Periodic reviews help keep your library manageable and useful.
+
+## Tag Management Tab
+
+![Tag Management](../assets/images/screenshots/settings Tags that allow custom prompts stackable and custom asr settings.png)
+
+Tag Management transforms simple labels into powerful processing instructions. Each tag you create carries multiple capabilities - a color for visual identification, an optional custom prompt that shapes AI summaries, and even default ASR (Automatic Speech Recognition) settings that optimize transcription for specific scenarios.
+
+### Tag Display and Features
+
+The interface displays your tags as cards, each showing the tag name with its color indicator, custom prompt if configured, and ASR defaults when set. In the example shown, "BSB Meetings" has a blue indicator with instructions to summarize transcripts in extreme detail. "Court Action" uses red and includes both a custom prompt and ASR defaults set to "Max 10" speakers - perfect for legal proceedings with multiple participants. The green "Fun" tag keeps summaries light and backwards, showing how creative prompts can serve different purposes.
+
+### Creating New Tags
+
+Creating a new tag happens through the prominent "Create Tag" button. The system guides you through choosing a name, selecting a color from a palette, and optionally adding a custom prompt. The ASR defaults section appears when you're using advanced transcription services, letting you preset the expected number of speakers for recordings with this tag.
+
+### Prompt Stacking
+
+Tag prompts stack intelligently when multiple tags are applied. If you tag a recording with both "BSB Meetings" and "Student Meetings," both prompts combine, creating a comprehensive summary that addresses all specified requirements. This powerful stacking eliminates the need for complex single prompts trying to anticipate every combination.
+
+### ASR Defaults
+
+The ASR defaults feature is particularly valuable for consistent meeting types. Setting "Max 10" for a "Court Action" tag ensures the transcription service looks for up to 10 distinct speakers, improving accuracy for multi-party proceedings. A "One-on-One" tag might default to exactly 2 speakers, while a "Webinar" tag could specify 1-3 speakers.
+
+### Managing Tags
+
+Edit and delete buttons on each card provide full control. Edit to refine prompts based on results, adjust colors for better organization, or update ASR defaults as meeting patterns change. Delete removes tags no longer needed, though this doesn't affect recordings already tagged - they retain their labels for historical accuracy.
+
+## About Tab
+
+![About](../assets/images/screenshots/settings about page.png)
+
+The About tab presents a comprehensive overview of your Speakr installation, combining version information, system configuration, feature highlights, and quick access to resources.
+
+### Version Information
+
+At the top, the Speakr logo and tagline "AI-Powered Audio Transcription & Note-Taking" remind you of the system's core purpose. The version badge (v0.5.5 in the example) immediately tells you which release you're running, essential information for troubleshooting and determining available features.
+
+### System Configuration
+
+This section provides complete transparency about your instance's capabilities. The Large Language Model field shows which AI model powers summaries and chat - here using the OpenRouter endpoint with a specific model. The Speech Recognition section details your transcription setup, showing whether you're using the standard Whisper API or advanced ASR endpoints. When ASR is enabled, you'll see additional configuration like the endpoint URL, indicating enhanced transcription features including speaker diarization.
+
+### Project Links
+
+Quick access buttons connect you to essential resources. The GitHub Repository button links to source code, issues, and releases - your primary channel for reporting bugs or requesting features. The Docker Hub button provides access to official container images for deployment and updates. The Documentation button opens setup guides and user manuals, ensuring help is always one click away.
+
+### Key Features
+
+Colorful cards remind you of Speakr's core capabilities. Audio Transcription highlights support for both Whisper API and custom ASR with high accuracy. AI Summarization emphasizes the OpenRouter and Ollama integrations for flexible, powerful summary generation. Speaker Diarization showcases the ability to identify and label different speakers automatically. Interactive Chat demonstrates the conversational AI capabilities for exploring transcripts. Inquire Mode highlights semantic search across all recordings. Sharing & Export emphasizes the ability to share recordings and export to various formats.
+
+### Using This Information
+
+This information-rich tab serves multiple purposes. For troubleshooting, it provides all the version and configuration details support teams need. For planning, it shows which features are available and properly configured. For learning, it links to all the resources needed to master Speakr's capabilities.
+
+## Privacy and Security Considerations
+
+Your account settings contain sensitive information that shapes your entire Speakr experience. The custom prompts you create might reveal organizational priorities or confidential project details. Speaker profiles could indicate who you meet with regularly. Share histories show what information you've distributed.
+
+Always log out when using shared computers. Speakr maintains sessions for convenience, but this means anyone with access to your browser can access your account. The logout button in the user menu immediately terminates your session and requires re-authentication.
+
+Review your shared recordings regularly. Links you created months ago might still be active, providing access to outdated or sensitive information. The Shared Transcripts tab makes this review easy - scan through periodically and revoke anything no longer needed.
+
+Consider the implications of language settings in international contexts. If you set Chinese as your interface language on a shared computer, the next user might struggle to navigate. Similarly, output language settings affect all AI interactions, so ensure they match your actual needs.
+
+## Optimizing Your Settings
+
+The most effective Speakr setup evolves with your needs. Start with basic configuration - your name, language preferences, and a simple custom prompt. As you become comfortable, add tags for organization, refine your prompts for better summaries, and build your speaker library for improved transcripts.
+
+Monitor which settings you actually use. If you never change certain preferences, they're probably fine at defaults. If you constantly adjust others, consider whether different base settings would reduce this friction. Your settings should work for you, not require constant attention.
+
+Share successful configurations with your team. If you've crafted an excellent prompt for technical summaries, share it with colleagues who might benefit. If your tag taxonomy works well, document it for others to adopt. Collective improvement benefits everyone.
+
+Remember that settings are tools for productivity, not endpoints themselves. The goal isn't perfect configuration but effective recording management. When your settings fade into the background and Speakr just works how you expect, you've achieved the right balance.
+
+---
+
+Next: Return to [User Guide](index.md) →
\ No newline at end of file
diff --git a/docs/user-guide/sharing.md b/docs/user-guide/sharing.md
new file mode 100644
index 00000000..fca5023a
--- /dev/null
+++ b/docs/user-guide/sharing.md
@@ -0,0 +1,100 @@
+---
+layout: default
+title: Sharing Recordings
+parent: User Guide
+nav_order: 5
+---
+
+# Sharing Recordings
+
+Sometimes you need to share a recording with someone who doesn't have a Speakr account - perhaps a client needs to review a meeting, a colleague missed an important discussion, or you want to provide documentation to stakeholders. Speakr's sharing feature lets you create secure, read-only links to your recordings while maintaining complete control over what information is shared.
+
+## Understanding Recording Shares
+
+When you share a recording, Speakr generates a unique, secure link that provides access to that specific recording without requiring the recipient to log in or have an account. Each share link is cryptographically secure and impossible to guess, ensuring that only people you explicitly share with can access your content.
+
+The sharing system gives you granular control over what recipients can see. You decide whether to include your AI-generated summary, your personal notes, or both. The transcription itself is always included, as it forms the core content of the recording. Recipients get a clean, professional view of your recording without any of the administrative interface or your other recordings.
+
+## Requirements for Sharing
+
+Before you can share recordings, your Speakr instance must meet two critical requirements. First, it must be accessible via HTTPS with a valid SSL certificate. Second, it must be reachable from the internet with a proper domain name or public IP address.
+
+These requirements exist because share links need to be accessible to recipients who don't have accounts and may be accessing from anywhere. A local network installation or non-HTTPS setup cannot generate shareable links - the share button will either be disabled or display an error message explaining that sharing requires a secure, internet-accessible connection. If you're running Speakr internally without SSL or public access, you'll need to work with your IT team to set up proper HTTPS and internet routing before the sharing feature becomes available.
+
+## Creating a Share Link
+
+![Share Recording Modal](../assets/images/screenshots/share recording.png)
+
+Once your instance meets the requirements, sharing a recording takes just a few clicks. While viewing any recording, click the share button in the toolbar to open the sharing modal. This presents you with two simple checkboxes that control what information will be visible to recipients.
+
+The "Share Summary" option determines whether recipients can see the AI-generated summary of your recording. This is particularly useful when sharing with executives or stakeholders who need a quick overview without reading the entire transcription. The summary provides them with key points, decisions, and action items in a digestible format.
+
+The "Share Notes" option controls whether your personal notes are visible. These are the markdown notes you've added to provide context, follow-ups, or additional thoughts about the recording. Consider carefully whether these notes are appropriate for your audience - they might contain internal observations or personal reminders that aren't meant for external viewing.
+
+Once you've selected your options, click "Create Share Link" to generate the secure URL. The link appears immediately in the modal, ready to copy to your clipboard. This link is permanent until you explicitly revoke it, so recipients can bookmark it for future reference.
+
+## What Recipients Experience
+
+![Shared Recording View](../assets/images/screenshots/shared recording.png)
+
+When someone clicks your share link, they're taken to a streamlined view of your recording designed for easy consumption without distractions. The interface is clean and professional, branded with Speakr but showing only the content you've chosen to share.
+
+At the top of the page, recipients see the recording title prominently displayed along with a note indicating it's a shared recording. The audio player sits just below, providing full playback controls so they can listen to the original recording at their own pace. The player shows the total duration and current position, allowing recipients to navigate to specific moments or replay important sections.
+
+The main content area is divided between the transcription and summary (if you've chosen to share it). The transcription appears with clear formatting, including speaker labels if your recording includes speaker diarization. Each identified speaker appears as a colored tag, making it easy to follow multi-person conversations. The interface includes view options like Simple and Bubble modes if speaker identification is present, and a copy button to easily extract the text.
+
+If you've enabled summary sharing, it appears in a dedicated panel with its own copy functionality. The summary is rendered with full markdown formatting, presenting a professional overview of the key points from your recording. Your notes, if shared, would appear in a similar panel, providing additional context and insights.
+
+At the bottom of the page, recipients see a subtle footer indicating the content is "Powered by advanced AI transcription" with a link to Speakr. This gives your shares a professional appearance while maintaining the focus on your content. The entire experience is read-only - recipients cannot edit anything, cannot access your other recordings, and cannot see any of your account information or settings.
+
+## Managing Your Shared Recordings
+
+![My Shared Transcripts](../assets/images/screenshots/shared transcript modal.png)
+
+All your shared recordings are centrally managed through the Shared Transcripts section in your account settings. This gives you a complete overview of everything you've shared and with whom.
+
+The shared transcripts list shows each recording you've shared, when you created the share link, and what options you selected (summary and/or notes). Each entry includes the full share URL that you can copy again if needed - perhaps you've lost the original link or need to reshare with additional people.
+
+You can modify what's included in a share by toggling the summary and notes checkboxes directly in this interface. These changes take effect immediately for anyone accessing the link. This is useful when you initially share just the transcription but later decide to include the summary, or when you want to remove notes that are no longer relevant.
+
+The delete button next to each share instantly revokes access. Once deleted, the share link becomes invalid and anyone trying to access it will see an error message. This gives you complete control over the lifecycle of your shared content.
+
+## Security and Privacy Considerations
+
+Speakr requires HTTPS for all sharing operations, ensuring that share links can only be created and accessed over secure connections. This protects the content during transmission and prevents interception of sensitive recordings.
+
+Each share link contains a cryptographically secure random token that's unique to that specific share. These tokens are generated using security best practices and are long enough to make guessing or brute-force attacks infeasible. Even if someone knows you've shared other recordings, they cannot derive or guess the links to those shares.
+
+It's important to understand that share links don't require authentication - anyone with the link can access the recording. This makes sharing convenient but means you should treat these links with the same care you'd treat sensitive documents. Share them only through secure channels like encrypted email or private messages, never post them publicly, and revoke access when it's no longer needed.
+
+The system doesn't track who accesses shared links or how often they're viewed. This respects recipient privacy but means you won't know if a link has been forwarded to others. If you need tighter access control, consider asking recipients to create Speakr accounts instead of using public sharing.
+
+## Best Practices for Sharing
+
+When sharing internally within your organization, you can generally include both summaries and notes since colleagues have context about the discussions and need complete information. The notes often contain valuable action items, follow-ups, and clarifications that help team members understand not just what was said, but what needs to happen next.
+
+For external sharing with clients or partners, consider sharing only the summary without your internal notes. The summary provides them with professional, polished takeaways while your notes remain private for internal use. Review the content before sharing to ensure nothing confidential or inappropriate is included.
+
+When sharing for documentation or compliance purposes, focus on the transcription itself as the authoritative record. The word-for-word transcription with timestamps provides an accurate account of what was discussed, while summaries and notes represent interpretations that might not be appropriate for official records.
+
+Always review what you're sharing before sending the link. Once someone has accessed the content, they could save or screenshot it, so revoking the link later won't remove their access to information they've already viewed. If you realize you've shared something inappropriate, revoke the link immediately to prevent further access, but assume that previous viewers may have retained the information.
+
+## Common Sharing Scenarios
+
+Meeting participants often appreciate receiving a share link after important discussions. Include both the summary and notes to give them a complete picture of decisions made and actions required. This is especially valuable for participants who may have missed parts of the meeting or need to review specific details.
+
+When updating clients on project progress, share recordings of internal discussions with summaries but without internal notes. This gives them transparency into your process and decisions while maintaining appropriate boundaries about internal deliberations.
+
+For training and onboarding, shared recordings become valuable learning resources. New team members can listen to past discussions to understand project history, decision rationale, and team dynamics. Include comprehensive notes to provide context that might not be obvious from the transcription alone.
+
+Legal and compliance teams may require unedited transcriptions of important conversations. In these cases, share only the transcription without summaries or notes that could be seen as interpretation or editorial commentary. The raw transcription provides an objective record of what was said.
+
+## Limitations and Considerations
+
+Share links are designed for occasional sharing with individuals or small groups, not for mass distribution or public posting. The system isn't optimized for hundreds of concurrent viewers, and publicly posted links could expose sensitive information to unintended audiences.
+
+Currently, shares don't expire automatically, though this feature may be added in future updates. Once created, a share link remains valid until you manually revoke it. This means you should periodically review your shared recordings and remove access to those no longer needed.
+
+The sharing feature is only available over HTTPS connections for security reasons. If you're running Speakr on a local network without SSL certificates, you won't be able to create share links. This is a deliberate security measure to prevent sensitive recordings from being shared over unencrypted connections.
+
+Recipients need a modern web browser to view shared recordings. The audio player and transcription display require JavaScript and HTML5 support. While this covers the vast majority of users, recipients using very old browsers or restrictive corporate environments might experience issues.
\ No newline at end of file
diff --git a/docs/user-guide/transcripts.md b/docs/user-guide/transcripts.md
new file mode 100644
index 00000000..8b67bade
--- /dev/null
+++ b/docs/user-guide/transcripts.md
@@ -0,0 +1,179 @@
+# Working with Transcriptions
+
+Once your audio has been processed, Speakr provides a rich set of tools for viewing, editing, and interacting with your transcriptions. This section covers everything you need to know about working with transcribed content. For information on the transcription process itself, see [transcription features](../features.md#core-transcription-features).
+
+## Understanding the Transcription View
+
+When you select a recording from the sidebar, the center panel displays the full transcription. The layout is designed for easy reading and navigation, with clear visual indicators for different speakers and timestamps.
+
+![Transcription View](../assets/images/screenshots/recording view with simple transcription view and chat visible.png)
+
+## Speaker Identification
+
+If your recording was processed with [speaker diarization](../features.md#speaker-diarization) enabled, each speaker's contributions are labeled with colored tags like SPEAKER_01, SPEAKER_02, and so on. This requires the [ASR endpoint](../getting-started.md#option-b-custom-asr-endpoint-configuration). These labels are automatically generated during transcription and help you follow multi-person conversations.
+
+### Identifying Speakers
+
+When you need to assign real names to speaker labels, click the speaker identification button in the toolbar. This opens a modal where you can:
+
+![Speaker ID Modal](../assets/images/screenshots/speaker id modal.png)
+
+The speaker identification modal shows each detected speaker with a sample of their dialogue to help you identify them. You can enter real names for each speaker, and these names will replace the generic labels throughout the transcription. The system remembers these assignments for future reference, making it easier to identify the same speakers in subsequent recordings.
+
+### Managing Saved Speakers
+
+All speakers you identify are automatically saved to your speaker database. You can manage these saved speakers through the dedicated [Speakers Management tab](settings.md#speakers-management-tab) in your [account settings](settings.md). Navigate to Account > Speakers Management to view all your saved speakers.
+
+![Speakers Management](../assets/images/screenshots/settings speakr management.png)
+
+The Speakers Management interface displays all your saved speakers in a responsive grid layout. Each speaker card shows the speaker's name, usage statistics including how many times they've been identified, when they were last used in a recording, and when they were first added to your database. The interface includes internal scrolling to handle large numbers of speakers while keeping the header and action buttons always visible.
+
+You can delete individual speakers by clicking the trash icon on their card, or use the "Delete All" button to clear your entire speaker database. This is useful for maintaining privacy or when you need to start fresh with a new set of speakers. The speaker count at the bottom keeps track of how many speakers you have saved.
+
+The system uses these saved speakers to provide suggestions when you're identifying speakers in new recordings, making the identification process faster over time as you build up your speaker database.
+
+## Editing Transcriptions
+
+Speakr provides two different editing modes depending on the type of transcription you're working with.
+
+### Simple Text Editing
+
+For standard transcriptions without speaker diarization, click the Edit button in the toolbar to enter a simple text editor. Your edits are preserved even when you [regenerate summaries](../features.md#automatic-summarization) or use the chat feature. This allows you to make corrections to the entire transcription as a single text block. You can fix transcription errors, add punctuation, insert clarifications, and improve formatting. Your changes are saved when you click the Save button.
+
+### Advanced ASR Segment Editing
+
+For transcriptions processed with [ASR](../features.md#speaker-diarization) and speaker diarization, Speakr offers a powerful segment-based editor that preserves the structure and timing of your transcription. If you encounter issues with speaker identification, see [troubleshooting](../troubleshooting.md#speaker-identification-not-working).
+
+![ASR Transcription Editor](../assets/images/screenshots/edit transcript with ASR.png)
+
+The ASR editor presents your transcription as a table of segments, where each row represents a single utterance with its associated metadata. For each segment, you can:
+
+**Edit Speaker Names**: Each segment shows who is speaking. You can click on any speaker field to change it, with an intelligent dropdown that suggests speakers from your saved speaker database. As you type, the system filters suggestions to help you quickly find the right speaker. This is particularly useful for correcting misidentified speakers or standardizing speaker names across the transcription.
+
+**Adjust Timestamps**: The start and end times for each segment can be fine-tuned using the adjustment arrows. This is helpful when the automatic segmentation isn't quite right, allowing you to precisely mark when each person starts and stops speaking.
+
+**Edit Text Content**: The main content of each utterance can be edited directly in its text field. You can correct transcription errors, fix grammar, add punctuation, or clarify unclear speech while maintaining the segment structure.
+
+**Manage Segments**: Use the trash icon to remove segments that shouldn't be in the transcription (such as false detections or noise). You can also add new segments if the ASR system missed something, positioning them with appropriate timestamps.
+
+The ASR editor maintains the JSON structure of your transcription, which is essential for features like speaker-based search, audio synchronization (clicking on text to jump to that point in the audio), and proper display in bubble view. When you save changes in the ASR editor, the system preserves all timing and speaker information while applying your corrections.
+
+Your edits are saved to the database when you click "Save Changes". The system maintains a record that the transcription has been manually edited, which is useful for quality control and audit purposes. Note that if you reprocess the transcription later with full transcription reprocessing, your manual edits will be overwritten. To preserve your edits while updating the summary, use summary-only reprocessing instead.
+
+## View Options
+
+The transcription panel offers two display modes to suit different preferences:
+
+### Simple View
+
+The default simple view presents the transcription as flowing text with inline speaker labels. This format is ideal for reading through content quickly and copying text for use in other applications. The clean, document-like appearance makes it easy to focus on the content without visual distractions.
+
+### Bubble View
+
+The bubble view formats the transcription like a chat conversation, with each speaker's contributions in separate message bubbles. This format works particularly well for interviews, debates, or any recording with back-and-forth dialogue. The visual separation makes it easier to follow who said what in rapid exchanges.
+
+## Using the Summary Feature
+
+The Summary tab in the right panel contains an AI-generated overview of your recording. This summary is automatically created after transcription and captures key points, decisions, and action items.
+
+![Summary View](../assets/images/screenshots/Summary View.png)
+
+The summary is designed to save you time by highlighting the most important information from your recording. It typically includes main topics discussed, key decisions or conclusions reached, action items and assignments, important dates or deadlines mentioned, and any significant problems or concerns raised.
+
+### Customizing Summary Prompts
+
+Speakr provides multiple levels of customization for summary generation, allowing you to tailor the AI's output to your specific needs. The summary prompt can be customized at three different levels:
+
+**Admin Level**: System administrators can set a default summary prompt that applies to all users who haven't configured their own. This is configured in the Admin Dashboard under Default Prompts and serves as the baseline for the entire system.
+
+**User Level**: Individual users can set their personal summary prompt in [Account Settings under Custom Prompts](settings.md#custom-prompts-tab). This overrides the admin default and applies to all of their recordings unless a tag-specific prompt is used.
+
+**Tag Level**: Each tag can have its own custom prompt configured. When creating or editing a tag, you can specify a summary prompt that will be used for any recording with that tag. This is particularly powerful for different types of content - for example, a "Legal Meeting" tag might focus on compliance issues and risk factors, while a "Product Planning" tag might emphasize features and timelines.
+
+### Prompt Precedence and Stacking
+
+When generating a summary, Speakr follows a clear precedence order to determine which prompt to use:
+
+1. **Tag Custom Prompts** (highest priority): If a recording has tags with custom prompts, these take precedence. When multiple tags with custom prompts are applied to a recording, Speakr intelligently combines them in the order the tags were added. This creates a sophisticated stacking effect where you can have a base tag like "Meeting" with general instructions, then add modifier tags like "Client-Facing" or "Technical Discussion" that add specific requirements. The prompts are seamlessly merged to create comprehensive instructions for the AI.
+
+2. **User Summary Prompt**: If no tag prompts are present, the system uses your personal summary prompt configured in your account settings.
+
+3. **Admin Default Prompt**: When neither tag nor user prompts are configured, the system falls back to the administrator-configured default prompt.
+
+4. **System Fallback**: If no custom prompts exist at any level, Speakr uses a built-in default that generates sections for key issues, decisions, and action items.
+
+### Summary Quality Factors
+
+The quality of your generated summaries depends on two key factors:
+
+**Prompt Design**: Well-crafted prompts that clearly specify what information you want extracted will produce more useful summaries. Consider including specific sections you want, the level of detail needed, and any particular focus areas relevant to your use case.
+
+**LLM Selection**: The AI model you use significantly impacts summary quality. More advanced models like GPT-4 or Claude will generally produce more nuanced and accurate summaries compared to smaller models. The model can be configured by your administrator in the system settings, balancing between quality and cost.
+
+### Editing and Exporting Summaries
+
+The summary is fully editable using a markdown editor similar to the one in the Notes section. Click the edit button (pencil icon) in the summary toolbar to enter edit mode. The markdown editor provides a rich editing experience with formatting tools for bold, italic, headings, lists, links, and more. You can restructure the summary, add additional insights, or refine the AI-generated content to better suit your needs. Changes are auto-saved as you type, ensuring you don't lose your edits.
+
+You can export the summary in multiple ways. The copy button copies the entire summary to your clipboard in markdown format, ready to paste into emails, documents, or other applications. The download button exports the summary as a Microsoft Word (.docx) file, preserving formatting and making it easy to share with colleagues who prefer traditional documents. The downloaded file is named using the recording title and date for easy identification.
+
+You can regenerate the summary with different settings if needed, which is useful if you want to focus on different aspects of the content or if you've made significant edits to the transcription. When regenerating, you can temporarily adjust tags to apply different prompts without permanently changing the recording's categorization.
+
+## Interactive Chat
+
+The Chat tab provides an AI assistant that can answer questions about your recording. This feature is particularly powerful for long recordings where finding specific information might be time-consuming.
+
+![Chat Interface](../assets/images/screenshots/chat view with question.png)
+
+### Effective Chat Queries
+
+The AI chat understands context and can answer various types of questions about your recording. You can ask for specific information like "What did Sarah say about the budget?" or "When is the deadline for the project?" The AI can also provide analysis, such as "What were the main concerns raised?" or "Summarize the action items for the marketing team."
+
+The chat maintains context throughout your conversation, so you can ask follow-up questions. For example, after asking about budget discussions, you might follow up with "What solutions were proposed?" The AI will understand you're still talking about the budget topic.
+
+### Chat Best Practices
+
+For best results with the chat feature, be specific in your questions rather than asking overly broad queries. Reference specific topics, people, or timeframes when possible. If the AI's response isn't quite what you're looking for, try rephrasing your question with more context.
+
+The chat feature works best for factual questions about what was said in the recording. It's less effective for subjective interpretations or reading between the lines, though it can identify tone and sentiment to some degree.
+
+### Exporting Chat Conversations
+
+Your entire chat conversation can be exported for future reference or sharing. The chat interface provides two export options:
+
+**Copy to Clipboard**: Click the copy button to copy the entire chat conversation to your clipboard. This preserves the question-and-answer format, making it easy to paste into emails, reports, or documentation. Each message includes a label indicating whether it's from you or the AI assistant.
+
+**Download as Word Document**: The download button exports your complete chat history as a formatted Microsoft Word (.docx) file. This includes all questions and responses in a clean, professional format that's easy to share with team members or include in reports. The file is automatically named with the recording title and export date, making it easy to organize multiple chat exports.
+
+These export features are particularly useful when you've used the chat to extract specific insights or conduct a detailed analysis of the recording, allowing you to preserve and share your findings without having to recreate the conversation.
+
+## Adding and Managing Notes
+
+The Notes tab is your personal workspace for adding context and thoughts about the recording. These notes are private to you and complement the transcription with your own insights.
+
+![Notes Tab](../assets/images/screenshots/notes tab.png)
+
+Notes support full markdown formatting, allowing you to create structured documents with headers, lists, links, and emphasis. The markdown editor provides a toolbar with formatting options and supports keyboard shortcuts for efficient note-taking. You can switch between edit and preview modes to see how your formatted notes will appear.
+
+Common uses for notes include:
+
+- Personal reflections on the meeting or conversation that wouldn't be appropriate in the shared transcription
+- Follow-up tasks that you need to complete based on the discussion
+- Additional context about decisions made or why certain topics were discussed
+- Links to related documents or resources mentioned in the recording
+- Questions you want to research or clarify later
+
+Your notes are fully searchable alongside transcriptions, making them valuable for future reference. You can search for a specific term and find it whether it appears in a transcription or in your personal notes. Notes are auto-saved as you type, ensuring you never lose your thoughts.
+
+## Copying and Exporting
+
+The Copy button in the transcription toolbar copies the entire transcription to your clipboard in plain text format. This maintains paragraph structure, making it easy to paste into documents or emails.
+
+If your recording was processed with ASR and speaker diarization, the copied text will include speaker identifiers (either the generic labels like SPEAKER_01 or the actual names if you've identified them). For recordings without speaker diarization, the transcription is copied as continuous text. The format remains consistent regardless of whether you're viewing the transcription in simple or bubble view - the copied text always uses the same structured format from the underlying data.
+
+## Next Steps
+
+Now that you understand how to work with transcriptions, let's explore Speakr's powerful search capabilities with Inquire Mode, which allows you to search across all your recordings using natural language.
+
+---
+
+Next: [Inquire Mode - Semantic Search](inquire-mode.md) →
\ No newline at end of file
diff --git a/config/env.asr.example b/env.asr.example
similarity index 91%
rename from config/env.asr.example
rename to env.asr.example
index 3d495a2e..0b2255ae 100644
--- a/config/env.asr.example
+++ b/env.asr.example
@@ -35,6 +35,10 @@ ALLOW_REGISTRATION=false
SUMMARY_MAX_TOKENS=8000
CHAT_MAX_TOKENS=5000
+# Timezone for displaying dates and times in the UI
+# Use a valid TZ database name (e.g., "America/New_York", "Europe/London", "UTC")
+TIMEZONE="UTC"
+
# Set the logging level for the application.
# Options: DEBUG, INFO, WARNING, ERROR
LOG_LEVEL="INFO"
@@ -46,8 +50,8 @@ ADMIN_PASSWORD=changeme
# --- Inquire Mode (AI search across all recordings) ---
# Set to "true" to enable semantic search and chat across all recordings
-# Requires additional dependencies (sentence-transformers, faiss-cpu, numpy)
-# ENABLE_INQUIRE_MODE=false
+# Requires additional dependencies (already included in Docker image)
+ENABLE_INQUIRE_MODE=false
# --- Automated File Processing (Black Hole Directory) ---
# Set to "true" to enable automated file processing
diff --git a/config/env.whisper.example b/env.whisper.example
similarity index 90%
rename from config/env.whisper.example
rename to env.whisper.example
index f0a46f77..3a2bc055 100644
--- a/config/env.whisper.example
+++ b/env.whisper.example
@@ -23,6 +23,10 @@ ALLOW_REGISTRATION=false
SUMMARY_MAX_TOKENS=8000
CHAT_MAX_TOKENS=5000
+# Timezone for displaying dates and times in the UI
+# Use a valid TZ database name (e.g., "America/New_York", "Europe/London", "UTC")
+TIMEZONE="UTC"
+
# Set the logging level for the application.
# Options: DEBUG, INFO, WARNING, ERROR
LOG_LEVEL="INFO"
@@ -49,8 +53,8 @@ ADMIN_PASSWORD=changeme
# --- Inquire Mode (AI search across all recordings) ---
# Set to "true" to enable semantic search and chat across all recordings
-# Requires additional dependencies (sentence-transformers, faiss-cpu, numpy)
-# ENABLE_INQUIRE_MODE=false
+# Requires additional dependencies (already included in Docker image)
+ENABLE_INQUIRE_MODE=false
# --- Automated File Processing (Black Hole Directory) ---
# Set to "true" to enable automated file processing
diff --git a/file_monitor.py b/file_monitor.py
index fd4930c2..c57a44ba 100644
--- a/file_monitor.py
+++ b/file_monitor.py
@@ -317,13 +317,14 @@ class FileMonitor:
mime_type, _ = mimetypes.guess_type(str(final_path))
# Create database record
+ now = datetime.utcnow()
recording = Recording(
audio_path=str(final_path),
original_filename=original_filename,
title=f"Auto-processed - {original_filename}",
file_size=file_size,
status='PENDING',
- meeting_date=datetime.utcnow().date(),
+ meeting_date=now.date(),
user_id=user_id,
mime_type=mime_type,
is_inbox=True, # Auto-processed files go to inbox
@@ -376,22 +377,22 @@ class FileMonitor:
if not filename_lower.endswith(convertible_formats):
self.logger.warning(f"Unknown file format {filename_lower}, attempting conversion anyway")
- # Need to convert to 32kbps MP3 for optimal size
- self.logger.info(f"Converting {filename_lower} format to 32kbps MP3")
+ # Need to convert to high-quality MP3 for better transcription accuracy
+ self.logger.info(f"Converting {filename_lower} format to high-quality MP3")
base_path = file_path.with_suffix('')
temp_mp3_path = base_path.with_suffix('.temp.mp3')
final_mp3_path = base_path.with_suffix('.mp3')
try:
- # Convert to 32kbps MP3 for optimal size/quality balance
+ # Convert to high-quality MP3 (128kbps, 44.1kHz) for better transcription accuracy
subprocess.run([
'ffmpeg', '-i', str(file_path), '-y',
- '-acodec', 'mp3', '-ab', '32k', '-ar', '16000', '-ac', '1',
+ '-acodec', 'libmp3lame', '-b:a', '128k', '-ar', '44100', '-ac', '1',
str(temp_mp3_path)
], check=True, capture_output=True, text=True)
- self.logger.info(f"Successfully converted {file_path} to {temp_mp3_path} (32kbps MP3)")
+ self.logger.info(f"Successfully converted {file_path} to {temp_mp3_path} (128kbps MP3)")
# Remove original and rename temp file
file_path.unlink()
diff --git a/scripts/download_offline_deps.py b/scripts/download_offline_deps.py
new file mode 100644
index 00000000..3a5cb376
--- /dev/null
+++ b/scripts/download_offline_deps.py
@@ -0,0 +1,107 @@
+#!/usr/bin/env python3
+"""
+Download all CDN dependencies for offline deployment
+"""
+
+import os
+import requests
+from pathlib import Path
+
+# Base directory for vendor files
+VENDOR_DIR = Path(__file__).parent.parent / "static" / "vendor"
+
+# Dependencies to download
+DEPENDENCIES = {
+ "css": {
+ "fontawesome.min.css": "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css",
+ "easymde.min.css": "https://cdn.jsdelivr.net/npm/easymde/dist/easymde.min.css",
+ },
+ "js": {
+ "tailwind.min.js": "https://cdn.tailwindcss.com/3.4.0",
+ "vue.global.js": "https://unpkg.com/vue@3/dist/vue.global.js",
+ "vue.global.prod.js": "https://cdn.jsdelivr.net/npm/vue@3/dist/vue.global.prod.js",
+ "marked.min.js": "https://cdn.jsdelivr.net/npm/marked/marked.min.js",
+ "easymde.min.js": "https://cdn.jsdelivr.net/npm/easymde/dist/easymde.min.js",
+ "axios.min.js": "https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js",
+ }
+}
+
+# Font Awesome webfonts
+FONTAWESOME_FONTS = [
+ "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-brands-400.ttf",
+ "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-brands-400.woff2",
+ "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-regular-400.ttf",
+ "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-regular-400.woff2",
+ "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-solid-900.ttf",
+ "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-solid-900.woff2",
+ "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-v4compatibility.ttf",
+ "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-v4compatibility.woff2",
+]
+
+def download_file(url, filepath):
+ """Download a file from URL to filepath"""
+ print(f"Downloading {url} to {filepath}")
+ try:
+ response = requests.get(url, timeout=30)
+ response.raise_for_status()
+
+ # Create directory if it doesn't exist
+ filepath.parent.mkdir(parents=True, exist_ok=True)
+
+ # Write file
+ with open(filepath, 'wb') as f:
+ f.write(response.content)
+ print(f" ✓ Downloaded {filepath.name}")
+ return True
+ except Exception as e:
+ print(f" ✗ Failed to download {url}: {e}")
+ return False
+
+def main():
+ print("Downloading offline dependencies...")
+ print(f"Vendor directory: {VENDOR_DIR}")
+
+ # Download CSS and JS files
+ for file_type, files in DEPENDENCIES.items():
+ print(f"\n{file_type.upper()} Files:")
+ for filename, url in files.items():
+ filepath = VENDOR_DIR / file_type / filename
+ download_file(url, filepath)
+
+ # Download Font Awesome fonts
+ print("\nFont Awesome Webfonts:")
+ for url in FONTAWESOME_FONTS:
+ filename = url.split("/")[-1]
+ filepath = VENDOR_DIR / "fonts" / "webfonts" / filename
+ download_file(url, filepath)
+
+ # Update Font Awesome CSS to use local fonts
+ fa_css_path = VENDOR_DIR / "css" / "fontawesome.min.css"
+ if fa_css_path.exists():
+ print("\nUpdating Font Awesome CSS to use local fonts...")
+ with open(fa_css_path, 'r') as f:
+ content = f.read()
+
+ # Replace CDN URLs with local paths - handle both relative and absolute URLs
+ content = content.replace(
+ "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/",
+ "../fonts/webfonts/"
+ )
+ # Also replace any relative URLs that might be in the minified CSS
+ content = content.replace(
+ "../webfonts/",
+ "../fonts/webfonts/"
+ )
+ content = content.replace(
+ "./webfonts/",
+ "../fonts/webfonts/"
+ )
+
+ with open(fa_css_path, 'w') as f:
+ f.write(content)
+ print(" ✓ Updated Font Awesome CSS paths")
+
+ print("\n✅ All dependencies downloaded successfully!")
+
+if __name__ == "__main__":
+ main()
\ No newline at end of file
diff --git a/static/css/styles.css b/static/css/styles.css
index 4715a448..1dfb3c83 100644
--- a/static/css/styles.css
+++ b/static/css/styles.css
@@ -9,22 +9,22 @@ body.unloaded {
/* Color Scheme CSS Variables */
:root {
- /* Default Light Theme (Blue) */
- --bg-primary: #f3f4f6; /* gray-100 */
- --bg-secondary: #ffffff; /* white */
- --bg-tertiary: #f9fafb; /* gray-50 */
- --bg-accent: #dbeafe; /* blue-100 */
- --bg-accent-hover: #bfdbfe; /* blue-200 */
+ /* Default Light Theme (Blue) - More muted with better contrast */
+ --bg-primary: #e8eaed; /* muted gray */
+ --bg-secondary: #f8f9fa; /* off-white */
+ --bg-tertiary: #f0f2f4; /* light gray */
+ --bg-accent: #c3d9f7; /* muted blue */
+ --bg-accent-hover: #aec9f2; /* deeper muted blue */
--bg-button: #2563eb; /* blue-600 */
--bg-button-hover: #1d4ed8; /* blue-700 */
--bg-danger: #dc2626; /* red-600 */
--bg-danger-hover: #b91c1c; /* red-700 */
- --bg-danger-light: #fee2e2; /* red-100 */
- --bg-info-light: #dbeafe; /* blue-100 */
- --bg-warn-light: #e0f2fe; /* cyan-50 - soft, friendly light blue */
- --bg-success-light: #d1fae5; /* green-100 */
- --bg-pending-light: #f5f5f4; /* stone-100 */
- --bg-input: #ffffff; /* white */
+ --bg-danger-light: #fce4e4; /* muted red */
+ --bg-info-light: #c3d9f7; /* muted blue */
+ --bg-warn-light: #d4e8f5; /* soft blue */
+ --bg-success-light: #c6f0dc; /* muted green */
+ --bg-pending-light: #eeeeec; /* stone */
+ --bg-input: #fafbfc; /* slightly gray white */
--bg-audio-player: var(--bg-tertiary);
--text-primary: #1f2937; /* gray-800 */
@@ -58,92 +58,92 @@ body.unloaded {
/* Light Theme Variants */
.theme-light-emerald {
- --bg-primary: #f6fdf8; /* soft green-tinted background */
- --bg-secondary: #f9fefb; /* very light green */
- --bg-tertiary: #f1fcf3; /* noticeable but soft green tint */
- --bg-accent: #ecfaf0; /* light green accent */
- --bg-accent-hover: #e6f7ea; /* slightly deeper green */
+ --bg-primary: #e6f0e9; /* muted green-gray */
+ --bg-secondary: #f4f9f5; /* soft off-white green */
+ --bg-tertiary: #ebf4ed; /* light muted green */
+ --bg-accent: #d0e8d7; /* muted pastel green */
+ --bg-accent-hover: #c1e0ca; /* deeper muted green */
--bg-button: #059669; /* keep button visible */
--bg-button-hover: #047857; /* keep button visible */
- --bg-input: #ffffff; /* white input background */
+ --bg-input: #f9fcfa; /* slightly green white */
--text-accent: #047857; /* keep accent text visible */
- --border-primary: #e8f5eb; /* light green border */
- --border-secondary: #d1f2d8; /* soft green border */
- --border-accent: #b8e6c1; /* medium green border */
+ --border-primary: #d4e5d8; /* muted green border */
+ --border-secondary: #c2dcc9; /* soft green border */
+ --border-accent: #a8d0b3; /* medium green border */
--border-focus: #10b981; /* keep focus visible */
- --ring-focus: #e6f7ea; /* soft green ring */
+ --ring-focus: #d0e8d7; /* muted green ring */
--bg-audio-player: var(--bg-tertiary);
}
.theme-light-purple {
- --bg-primary: #faf8ff; /* soft purple-tinted background */
- --bg-secondary: #fcfaff; /* very light purple */
- --bg-tertiary: #f5f2ff; /* noticeable but soft purple tint */
- --bg-accent: #f0ebff; /* light purple accent */
- --bg-accent-hover: #ebe4ff; /* slightly deeper purple */
+ --bg-primary: #ebe9f0; /* muted purple-gray */
+ --bg-secondary: #f7f6f9; /* soft off-white purple */
+ --bg-tertiary: #f0eef4; /* light muted purple */
+ --bg-accent: #dcd7e8; /* muted pastel purple */
+ --bg-accent-hover: #d0c9df; /* deeper muted purple */
--bg-button: #7c3aed; /* keep button visible */
--bg-button-hover: #6d28d9; /* keep button visible */
- --bg-input: #ffffff; /* white input background */
+ --bg-input: #faf9fc; /* slightly purple white */
--text-accent: #6d28d9; /* keep accent text visible */
- --border-primary: #ede9fe; /* light purple border */
- --border-secondary: #ddd6fe; /* soft purple border */
- --border-accent: #c4b5fd; /* medium purple border */
+ --border-primary: #dbd6e6; /* muted purple border */
+ --border-secondary: #cfc8dd; /* soft purple border */
+ --border-accent: #bab0d2; /* medium purple border */
--border-focus: #8b5cf6; /* keep focus visible */
- --ring-focus: #ebe4ff; /* soft purple ring */
+ --ring-focus: #dcd7e8; /* muted purple ring */
--bg-audio-player: var(--bg-tertiary);
}
.theme-light-rose {
- --bg-primary: #fdf8fb; /* soft rose-tinted background */
- --bg-secondary: #fefafc; /* very light rose */
- --bg-tertiary: #fcf2f6; /* noticeable but soft rose tint */
- --bg-accent: #faebf1; /* light rose accent */
- --bg-accent-hover: #f7e4ec; /* slightly deeper rose */
+ --bg-primary: #f0e9ed; /* muted rose-gray */
+ --bg-secondary: #f9f6f7; /* soft off-white rose */
+ --bg-tertiary: #f4eef1; /* light muted rose */
+ --bg-accent: #e6d7df; /* muted pastel rose */
+ --bg-accent-hover: #dfc9d4; /* deeper muted rose */
--bg-button: #e11d48; /* keep button visible */
--bg-button-hover: #be185d; /* keep button visible */
- --bg-input: #ffffff; /* white input background */
+ --bg-input: #fcf9fa; /* slightly rose white */
--text-accent: #be185d; /* keep accent text visible */
- --border-primary: #fce7f3; /* light rose border */
- --border-secondary: #f9d2e4; /* soft rose border */
- --border-accent: #f3a8c7; /* medium rose border */
+ --border-primary: #e5d6de; /* muted rose border */
+ --border-secondary: #dbc8d2; /* soft rose border */
+ --border-accent: #d0b0bf; /* medium rose border */
--border-focus: #ec4899; /* keep focus visible */
- --ring-focus: #f7e4ec; /* soft rose ring */
+ --ring-focus: #e6d7df; /* muted rose ring */
--bg-audio-player: var(--bg-tertiary);
}
.theme-light-amber {
- --bg-primary: #fdfaf6; /* soft amber-tinted background */
- --bg-secondary: #fefcf9; /* very light amber */
- --bg-tertiary: #fcf6f1; /* noticeable but soft amber tint */
- --bg-accent: #faf0e6; /* light amber accent */
- --bg-accent-hover: #f7e9db; /* slightly deeper amber */
+ --bg-primary: #efebe6; /* muted amber-gray */
+ --bg-secondary: #f9f7f4; /* soft off-white amber */
+ --bg-tertiary: #f3efe9; /* light muted amber */
+ --bg-accent: #e5ddd1; /* muted pastel amber */
+ --bg-accent-hover: #ddd2c2; /* deeper muted amber */
--bg-button: #d97706; /* keep button visible */
--bg-button-hover: #b45309; /* keep button visible */
- --bg-input: #ffffff; /* white input background */
+ --bg-input: #fbfaf8; /* slightly amber white */
--text-accent: #b45309; /* keep accent text visible */
- --border-primary: #fef3c7; /* light amber border */
- --border-secondary: #fde68a; /* soft amber border */
- --border-accent: #fcd34d; /* medium amber border */
+ --border-primary: #e2dace; /* muted amber border */
+ --border-secondary: #d9cdb9; /* soft amber border */
+ --border-accent: #cdbca1; /* medium amber border */
--border-focus: #f59e0b; /* keep focus visible */
- --ring-focus: #f7e9db; /* soft amber ring */
+ --ring-focus: #e5ddd1; /* muted amber ring */
--bg-audio-player: var(--bg-tertiary);
}
.theme-light-teal {
- --bg-primary: #f6fdfc; /* soft teal-tinted background */
- --bg-secondary: #f9fefe; /* very light teal */
- --bg-tertiary: #f1fcfa; /* noticeable but soft teal tint */
- --bg-accent: #ecfbf8; /* light teal accent */
- --bg-accent-hover: #e6f9f5; /* slightly deeper teal */
+ --bg-primary: #e7f0ef; /* muted teal-gray */
+ --bg-secondary: #f5f9f8; /* soft off-white teal */
+ --bg-tertiary: #ecf4f3; /* light muted teal */
+ --bg-accent: #d2e5e2; /* muted pastel teal */
+ --bg-accent-hover: #c3ddd9; /* deeper muted teal */
--bg-button: #0d9488; /* keep button visible */
--bg-button-hover: #0f766e; /* keep button visible */
- --bg-input: #ffffff; /* white input background */
+ --bg-input: #f9fcfb; /* slightly teal white */
--text-accent: #0f766e; /* keep accent text visible */
- --border-primary: #ccfbf1; /* light teal border */
- --border-secondary: #99f6e4; /* soft teal border */
- --border-accent: #5eead4; /* medium teal border */
+ --border-primary: #c8dfdc; /* muted teal border */
+ --border-secondary: #b5d3ce; /* soft teal border */
+ --border-accent: #9cc5be; /* medium teal border */
--border-focus: #14b8a6; /* keep focus visible */
- --ring-focus: #e6f9f5; /* soft teal ring */
+ --ring-focus: #d2e5e2; /* muted teal ring */
--bg-audio-player: var(--bg-tertiary);
}
@@ -168,8 +168,8 @@ body.unloaded {
--text-primary: #f3f4f6; /* gray-100 */
--text-secondary: #d1d5db; /* gray-300 */
- --text-muted: #9ca3af; /* gray-400 */
- --text-light: #6b7280; /* gray-500 */
+ --text-muted: #cbd5e1; /* slate-300 - improved contrast */
+ --text-light: #94a3b8; /* slate-400 - better visibility */
--text-accent: #60a5fa; /* blue-400 */
--text-button: #ffffff; /* white */
--text-danger: #f87171; /* red-400 */
@@ -179,8 +179,8 @@ body.unloaded {
--text-success-strong: #6ee7b7; /* green-300 */
--text-pending-strong: #d6d3d1; /* stone-300 */
- --border-primary: #374151; /* gray-700 */
- --border-secondary: #4b5563; /* gray-600 */
+ --border-primary: #475569; /* slate-600 - more visible */
+ --border-secondary: #64748b; /* slate-500 - better contrast */
--border-accent: #1d4ed8; /* blue-700 */
--border-danger: #ef4444; /* red-500 */
--border-focus: #3b82f6; /* blue-500 */
@@ -2922,6 +2922,24 @@ body.fullscreen-mode {
color: var(--text-primary);
}
+/* Fix cursor/caret color in dark mode for ALL CodeMirror instances */
+.dark .CodeMirror-cursor {
+ border-left: 2px solid var(--text-primary) !important;
+}
+
+/* Also fix the caret in the actual textarea (when CodeMirror is not active) */
+.dark textarea,
+.dark input[type="text"],
+.dark input[type="search"] {
+ caret-color: var(--text-primary);
+}
+
+/* Ensure cursor is visible in all markdown editors */
+.markdown-editor-container .CodeMirror-cursor,
+.recording-notes-editor .CodeMirror-cursor {
+ border-left: 2px solid var(--text-primary) !important;
+}
+
.dark .markdown-editor-container .EasyMDEContainer .editor-toolbar {
background: var(--bg-tertiary);
border-bottom-color: var(--border-secondary);
@@ -3286,3 +3304,152 @@ textarea[ref="recordingNotesEditor"]:focus {
margin-left: 0 !important;
}
}
+
+/* Custom Checkbox Styling for Speaker Modal */
+input[type="checkbox"].speaker-checkbox {
+ -webkit-appearance: none;
+ -moz-appearance: none;
+ appearance: none;
+ width: 1.125rem;
+ height: 1.125rem;
+ border: 2px solid var(--border-secondary);
+ border-radius: 0.25rem;
+ background-color: var(--bg-input);
+ cursor: pointer;
+ position: relative;
+ transition: all 0.15s ease;
+ flex-shrink: 0;
+}
+
+input[type="checkbox"].speaker-checkbox:hover {
+ border-color: var(--text-accent);
+ background-color: var(--bg-secondary);
+}
+
+input[type="checkbox"].speaker-checkbox:focus {
+ outline: none;
+ border-color: var(--text-accent);
+ box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
+}
+
+input[type="checkbox"].speaker-checkbox:checked {
+ background-color: var(--text-accent);
+ border-color: var(--text-accent);
+}
+
+input[type="checkbox"].speaker-checkbox:checked::after {
+ content: '';
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ width: 0.25rem;
+ height: 0.5rem;
+ border: solid white;
+ border-width: 0 2px 2px 0;
+ transform: translate(-50%, -60%) rotate(45deg);
+}
+
+input[type="checkbox"].speaker-checkbox:disabled {
+ opacity: 0.5;
+ cursor: not-allowed;
+}
+
+/* Dark mode adjustments */
+:root[data-theme="dark"] input[type="checkbox"].speaker-checkbox {
+ border-color: rgba(255, 255, 255, 0.2);
+ background-color: rgba(255, 255, 255, 0.05);
+}
+
+:root[data-theme="dark"] input[type="checkbox"].speaker-checkbox:hover {
+ background-color: rgba(255, 255, 255, 0.1);
+}
+
+:root[data-theme="dark"] input[type="checkbox"].speaker-checkbox:checked {
+ background-color: var(--text-accent);
+ border-color: var(--text-accent);
+}
+
+/* Custom Select Dropdown Styling */
+select {
+ appearance: none;
+ -webkit-appearance: none;
+ -moz-appearance: none;
+ background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%236b7280' d='M4.5 5.5L8 9l3.5-3.5L10.75 4.75 8 7.5 5.25 4.75z'/%3E%3C/svg%3E");
+ background-repeat: no-repeat;
+ background-position: right 0.5rem center;
+ background-size: 1.5em 1.5em;
+ padding-right: 2.5rem;
+ cursor: pointer;
+ transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background-color 0.15s ease-in-out;
+}
+
+/* Dark mode select styling */
+.dark select {
+ background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23cbd5e1' d='M4.5 5.5L8 9l3.5-3.5L10.75 4.75 8 7.5 5.25 4.75z'/%3E%3C/svg%3E");
+ background-color: var(--bg-input);
+ border-color: var(--border-secondary);
+}
+
+/* Hover and focus states for select */
+select:hover {
+ border-color: var(--border-accent);
+}
+
+select:focus {
+ outline: none;
+ border-color: var(--border-focus);
+ box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
+}
+
+.dark select:focus {
+ box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
+}
+
+/* Disabled select styling */
+select:disabled {
+ opacity: 0.5;
+ cursor: not-allowed;
+ background-color: var(--bg-tertiary);
+}
+
+/* Input and textarea improvements for dark mode */
+.dark input[type="text"],
+.dark input[type="email"],
+.dark input[type="password"],
+.dark input[type="date"],
+.dark input[type="number"],
+.dark textarea {
+ background-color: var(--bg-input);
+ border-color: var(--border-secondary);
+ color: var(--text-primary);
+}
+
+.dark input[type="text"]:focus,
+.dark input[type="email"]:focus,
+.dark input[type="password"]:focus,
+.dark input[type="date"]:focus,
+.dark input[type="number"]:focus,
+.dark textarea:focus {
+ border-color: var(--border-focus);
+ box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
+}
+
+/* Placeholder text improvements */
+.dark input::placeholder,
+.dark textarea::placeholder {
+ color: var(--text-light);
+ opacity: 0.7;
+}
+
+/* Description text improvements */
+.dark .text-xs.text-gray-500,
+.dark .text-xs.text-gray-400,
+.dark .text-sm.text-gray-500,
+.dark .text-sm.text-gray-400 {
+ color: var(--text-muted) !important;
+}
+
+/* Label text improvements */
+.dark label {
+ color: var(--text-secondary);
+}
diff --git a/static/js/app.js b/static/js/app.js
index 2a026a3e..4f7bfec8 100644
--- a/static/js/app.js
+++ b/static/js/app.js
@@ -1,7 +1,15 @@
const { createApp, ref, reactive, computed, onMounted, watch, nextTick } = Vue
// Wait for the DOM to be fully loaded before mounting the Vue app
-document.addEventListener('DOMContentLoaded', () => {
+document.addEventListener('DOMContentLoaded', async () => {
+ // Initialize i18n before creating Vue app
+ if (window.i18n) {
+ const appElement = document.getElementById('app');
+ const userLang = appElement?.dataset.userLanguage || localStorage.getItem('preferredLanguage') || 'en';
+ await window.i18n.init(userLang);
+ console.log('i18n initialized with language:', userLang);
+ }
+
// CSRF Token Integration with Vue.js
const csrfToken = ref(document.querySelector('meta[name="csrf-token"]')?.getAttribute('content'));
@@ -30,6 +38,13 @@ document.addEventListener('DOMContentLoaded', () => {
const isLoadingRecordings = ref(true);
const globalError = ref(null);
+ // Advanced filter state
+ const showAdvancedFilters = ref(false);
+ const filterTags = ref([]); // Selected tag IDs for filtering
+ const filterDateRange = ref({ start: '', end: '' });
+ const filterDatePreset = ref(''); // 'today', 'yesterday', 'week', 'month', etc.
+ const filterTextQuery = ref('');
+
// --- Pagination State ---
const currentPage = ref(1);
const perPage = ref(25);
@@ -55,6 +70,12 @@ document.addEventListener('DOMContentLoaded', () => {
const windowWidth = ref(window.innerWidth);
const mobileTab = ref('transcript');
const isMetadataExpanded = ref(false);
+
+ // --- i18n State ---
+ const currentLanguage = ref('en');
+ const currentLanguageName = ref('English');
+ const availableLanguages = ref([]);
+ const showLanguageMenu = ref(false);
// --- Upload State ---
const uploadQueue = ref([]);
@@ -70,6 +91,9 @@ document.addEventListener('DOMContentLoaded', () => {
const chunkingMode = ref('size'); // 'size' or 'duration', will be updated from API
const chunkingLimit = ref(20); // Value in MB or seconds, will be updated from API
const chunkingLimitDisplay = ref('20MB'); // Human readable display, will be updated from API
+ const recordingDisclaimer = ref(''); // Recording disclaimer text from admin settings
+ const showRecordingDisclaimerModal = ref(false); // Controls disclaimer modal visibility
+ const pendingRecordingMode = ref(null); // Stores the recording mode while showing disclaimer
// --- Audio Recording State ---
const isRecording = ref(false);
@@ -116,17 +140,30 @@ document.addEventListener('DOMContentLoaded', () => {
// Tag Selection
const availableTags = ref([]);
const selectedTagIds = ref([]); // Changed to array for multiple selection
+ const uploadTagSearchFilter = ref(''); // For filtering tags in upload view
const selectedTags = computed(() => {
return selectedTagIds.value.map(tagId =>
availableTags.value.find(tag => tag.id == tagId)
).filter(Boolean); // Filter out undefined tags
});
+
+ // Computed property for filtered available tags in upload view
+ const filteredAvailableTagsForUpload = computed(() => {
+ const availableForSelection = availableTags.value.filter(tag => !selectedTagIds.value.includes(tag.id));
+ if (!uploadTagSearchFilter.value) return availableForSelection;
+
+ const filter = uploadTagSearchFilter.value.toLowerCase();
+ return availableForSelection.filter(tag =>
+ tag.name.toLowerCase().includes(filter)
+ );
+ });
// --- Modal State ---
const showEditModal = ref(false);
const showDeleteModal = ref(false);
const showEditTagsModal = ref(false);
const selectedNewTagId = ref('');
+ const tagSearchFilter = ref(''); // For filtering tags in the modal
const showReprocessModal = ref(false);
const showResetModal = ref(false);
const showSpeakerModal = ref(false);
@@ -144,8 +181,11 @@ document.addEventListener('DOMContentLoaded', () => {
share_notes: true,
});
const generatedShareLink = ref('');
+ const existingShareDetected = ref(false);
const userShares = ref([]);
const isLoadingShares = ref(false);
+ const shareToDelete = ref(null);
+ const showShareDeleteModal = ref(false);
const recordingToDelete = ref(null);
const recordingToReset = ref(null);
const reprocessType = ref(null); // 'transcription' or 'summary'
@@ -160,12 +200,17 @@ document.addEventListener('DOMContentLoaded', () => {
const regenerateSummaryAfterSpeakerUpdate = ref(true);
const speakerSuggestions = ref({});
const loadingSuggestions = ref({});
+ const activeSpeakerInput = ref(null);
// --- Inline Editing State ---
const editingParticipants = ref(false);
const editingMeetingDate = ref(false);
const editingSummary = ref(false);
const editingNotes = ref(false);
+ const tempNotesContent = ref('');
+ const tempSummaryContent = ref('');
+ const autoSaveTimer = ref(null);
+ const autoSaveDelay = 2000; // 2 seconds debounce
// --- Markdown Editor State ---
const notesMarkdownEditor = ref(null);
@@ -204,6 +249,34 @@ document.addEventListener('DOMContentLoaded', () => {
return windowWidth.value < 1024;
});
+ const datePresetOptions = computed(() => {
+ return [
+ { value: 'today', label: t('sidebar.today') },
+ { value: 'yesterday', label: t('sidebar.yesterday') },
+ { value: 'thisweek', label: t('sidebar.thisWeek') },
+ { value: 'lastweek', label: t('sidebar.lastWeek') },
+ { value: 'thismonth', label: t('sidebar.thisMonth') },
+ { value: 'lastmonth', label: t('sidebar.lastMonth') }
+ ];
+ });
+
+ const languageOptions = computed(() => {
+ return [
+ { value: '', label: t('form.autoDetect') },
+ { value: 'en', label: t('languages.en') },
+ { value: 'es', label: t('languages.es') },
+ { value: 'fr', label: t('languages.fr') },
+ { value: 'de', label: t('languages.de') },
+ { value: 'it', label: t('languages.it') },
+ { value: 'pt', label: t('languages.pt') },
+ { value: 'nl', label: t('languages.nl') },
+ { value: 'ru', label: t('languages.ru') },
+ { value: 'zh', label: t('languages.zh') },
+ { value: 'ja', label: t('languages.ja') },
+ { value: 'ko', label: t('languages.ko') }
+ ];
+ });
+
const filteredRecordings = computed(() => {
return recordings.value;
});
@@ -229,8 +302,11 @@ document.addEventListener('DOMContentLoaded', () => {
html = html.replace(/\[([^\]]+)\]/g, (match, speakerId) => {
const isHighlighted = speakerId === highlightedSpeaker.value;
const colorClass = speakerColors[speakerId] || '';
+ // Replace speaker ID with name if available
+ const displayName = speakerMap.value[speakerId]?.name || speakerId;
+ const displayText = `[${displayName}]`;
// Use a more specific and stylish class structure with color
- return `<span class="speaker-tag ${colorClass} ${isHighlighted ? 'speaker-highlight' : ''}" data-speaker-id="${speakerId}">${match}</span>`;
+ return `<span class="speaker-tag ${colorClass} ${isHighlighted ? 'speaker-highlight' : ''}" data-speaker-id="${speakerId}">${displayText}</span>`;
});
return html;
@@ -275,6 +351,16 @@ document.addEventListener('DOMContentLoaded', () => {
});
}
+ // Add tags to metadata
+ if (recording.tags && recording.tags.length > 0) {
+ metadata.push({
+ icon: 'fas fa-tags',
+ text: '', // Empty text since we'll render tags specially
+ tags: recording.tags, // Pass the tags array
+ isTagItem: true // Flag to identify this as a tag item
+ });
+ }
+
return metadata;
});
@@ -327,13 +413,13 @@ document.addEventListener('DOMContentLoaded', () => {
});
return [
- { title: 'Today', items: groups.today },
- { title: 'Yesterday', items: groups.yesterday },
- { title: 'This Week', items: groups.thisWeek },
- { title: 'Last Week', items: groups.lastWeek },
- { title: 'This Month', items: groups.thisMonth },
- { title: 'Last Month', items: groups.lastMonth },
- { title: 'Older', items: groups.older }
+ { title: t('sidebar.today'), items: groups.today },
+ { title: t('sidebar.yesterday'), items: groups.yesterday },
+ { title: t('sidebar.thisWeek'), items: groups.thisWeek },
+ { title: t('sidebar.lastWeek'), items: groups.lastWeek },
+ { title: t('sidebar.thisMonth'), items: groups.thisMonth },
+ { title: t('sidebar.lastMonth'), items: groups.lastMonth },
+ { title: t('sidebar.older'), items: groups.older }
].filter(g => g.items.length > 0);
});
@@ -362,29 +448,38 @@ document.addEventListener('DOMContentLoaded', () => {
// Updated to handle new simplified JSON format (array of segments)
if (transcriptionData && Array.isArray(transcriptionData)) {
- // JSON format - extract speakers from segments
- const speakers = new Set();
+ // JSON format - extract speakers in order of appearance
+ const speakersInOrder = [];
+ const seenSpeakers = new Set();
transcriptionData.forEach(segment => {
- if (segment.speaker && String(segment.speaker).trim()) {
- speakers.add(segment.speaker);
+ if (segment.speaker && String(segment.speaker).trim() && !seenSpeakers.has(segment.speaker)) {
+ seenSpeakers.add(segment.speaker);
+ speakersInOrder.push(segment.speaker);
}
});
- return Array.from(speakers).sort(); // Sort for consistent color mapping
+ return speakersInOrder; // Keep order of appearance, don't sort
} else if (typeof transcription === 'string') {
- // Plain text format - use regex to find speaker patterns
+ // Plain text format - find speakers in order of appearance
const speakerRegex = /\[([^\]]+)\]:/g;
- const speakers = new Set();
+ const speakersInOrder = [];
+ const seenSpeakers = new Set();
let match;
while ((match = speakerRegex.exec(transcription)) !== null) {
const speaker = match[1].trim();
- if (speaker) {
- speakers.add(speaker);
+ if (speaker && !seenSpeakers.has(speaker)) {
+ seenSpeakers.add(speaker);
+ speakersInOrder.push(speaker);
}
}
- return Array.from(speakers).sort();
+ return speakersInOrder; // Keep order of appearance, don't sort
}
return [];
});
+
+ // identifiedSpeakersInOrder is now just an alias since identifiedSpeakers already preserves order
+ const identifiedSpeakersInOrder = computed(() => {
+ return identifiedSpeakers.value;
+ });
const hasSpeakerNames = computed(() => {
// Check if any speaker has a non-empty name
@@ -435,7 +530,7 @@ document.addEventListener('DOMContentLoaded', () => {
const simpleSegments = transcriptionData.map(segment => ({
speakerId: segment.speaker,
- speaker: segment.speaker,
+ speaker: speakerMap.value[segment.speaker]?.name || segment.speaker,
sentence: segment.sentence,
startTime: segment.start_time || segment.startTime,
endTime: segment.end_time || segment.endTime,
@@ -443,26 +538,26 @@ document.addEventListener('DOMContentLoaded', () => {
}));
const processedSimpleSegments = [];
- let lastSpeaker = null;
+ let lastSpeakerId = null;
simpleSegments.forEach(segment => {
processedSimpleSegments.push({
...segment,
- showSpeaker: segment.speaker !== lastSpeaker
+ showSpeaker: segment.speakerId !== lastSpeakerId
});
- lastSpeaker = segment.speaker;
+ lastSpeakerId = segment.speakerId;
});
const bubbleRows = [];
- let lastBubbleSpeaker = null;
+ let lastBubbleSpeakerId = null;
simpleSegments.forEach(segment => {
- if (bubbleRows.length === 0 || segment.speaker !== lastBubbleSpeaker) {
+ if (bubbleRows.length === 0 || segment.speakerId !== lastBubbleSpeakerId) {
bubbleRows.push({
speaker: segment.speaker,
color: segment.color,
isMe: segment.speaker && (typeof segment.speaker === 'string') && segment.speaker.toLowerCase().includes('me'),
bubbles: []
});
- lastBubbleSpeaker = segment.speaker;
+ lastBubbleSpeakerId = segment.speakerId;
}
bubbleRows[bubbleRows.length - 1].bubbles.push({
sentence: segment.sentence,
@@ -478,7 +573,7 @@ document.addEventListener('DOMContentLoaded', () => {
simpleSegments: processedSimpleSegments,
bubbleRows: bubbleRows,
speakers: speakers.map(speaker => ({
- name: speaker,
+ name: speakerMap.value[speaker]?.name || speaker,
color: speakerColors[speaker]
}))
};
@@ -514,25 +609,27 @@ document.addEventListener('DOMContentLoaded', () => {
const segments = [];
const lines = transcription.split('\n');
- let currentSpeaker = null;
+ let currentSpeakerId = null;
let currentText = '';
for (const line of lines) {
const speakerMatch = line.match(/^\[([^\]]+)\]:\s*(.*)$/);
if (speakerMatch) {
- if (currentSpeaker && currentText.trim()) {
+ if (currentSpeakerId && currentText.trim()) {
segments.push({
- speaker: currentSpeaker,
+ speakerId: currentSpeakerId,
+ speaker: speakerMap.value[currentSpeakerId]?.name || currentSpeakerId,
sentence: currentText.trim(),
- color: speakerColors[currentSpeaker] || 'speaker-color-1'
+ color: speakerColors[currentSpeakerId] || 'speaker-color-1'
});
}
- currentSpeaker = speakerMatch[1];
+ currentSpeakerId = speakerMatch[1];
currentText = speakerMatch[2];
- } else if (currentSpeaker && line.trim()) {
+ } else if (currentSpeakerId && line.trim()) {
currentText += ' ' + line.trim();
- } else if (!currentSpeaker && line.trim()) {
+ } else if (!currentSpeakerId && line.trim()) {
segments.push({
+ speakerId: null,
speaker: null,
sentence: line.trim(),
color: 'speaker-color-1'
@@ -540,31 +637,33 @@ document.addEventListener('DOMContentLoaded', () => {
}
}
- if (currentSpeaker && currentText.trim()) {
+ if (currentSpeakerId && currentText.trim()) {
segments.push({
- speaker: currentSpeaker,
+ speakerId: currentSpeakerId,
+ speaker: speakerMap.value[currentSpeakerId]?.name || currentSpeakerId,
sentence: currentText.trim(),
- color: speakerColors[currentSpeaker] || 'speaker-color-1'
+ color: speakerColors[currentSpeakerId] || 'speaker-color-1'
});
}
const simpleSegments = [];
- let lastSpeaker = null;
+ let lastSpeakerId = null;
segments.forEach(segment => {
simpleSegments.push({
...segment,
- showSpeaker: segment.speaker !== lastSpeaker,
+ showSpeaker: segment.speakerId !== lastSpeakerId,
sentence: segment.sentence || segment.text
});
- lastSpeaker = segment.speaker;
+ lastSpeakerId = segment.speakerId;
});
const bubbleRows = [];
let currentRow = null;
segments.forEach(segment => {
- if (!currentRow || currentRow.speaker !== segment.speaker) {
+ if (!currentRow || currentRow.speakerId !== segment.speakerId) {
if (currentRow) bubbleRows.push(currentRow);
currentRow = {
+ speakerId: segment.speakerId,
speaker: segment.speaker,
color: segment.color,
bubbles: [],
@@ -585,7 +684,7 @@ document.addEventListener('DOMContentLoaded', () => {
simpleSegments: simpleSegments,
bubbleRows: bubbleRows,
speakers: speakerList.map(speaker => ({
- name: speaker,
+ name: speakerMap.value[speaker]?.name || speaker,
color: speakerColors[speaker] || 'speaker-color-1'
}))
};
@@ -661,7 +760,15 @@ document.addEventListener('DOMContentLoaded', () => {
const formatStatus = (status) => {
if (!status || status === 'COMPLETED') return '';
- return status.charAt(0).toUpperCase() + status.slice(1).toLowerCase();
+ const statusMap = {
+ 'PENDING': t('status.queued'),
+ 'PROCESSING': t('status.processing'),
+ 'TRANSCRIBING': t('status.transcribing'),
+ 'SUMMARIZING': t('status.summarizing'),
+ 'FAILED': t('status.failed'),
+ 'UPLOADING': t('status.uploading')
+ };
+ return statusMap[status] || status.charAt(0).toUpperCase() + status.slice(1).toLowerCase();
};
const getStatusClass = (status) => {
@@ -1381,17 +1488,57 @@ document.addEventListener('DOMContentLoaded', () => {
}
};
+ const closeSpeakerSuggestionsOnClick = (event) => {
+ // Check if the click was on an input field or dropdown
+ const clickedInput = event.target.closest('input[type="text"]');
+ const clickedDropdown = event.target.closest('.absolute.z-10');
+
+ // If not clicking on input or dropdown, close all suggestions
+ if (!clickedInput && !clickedDropdown) {
+ Object.keys(speakerSuggestions.value).forEach(speakerId => {
+ speakerSuggestions.value[speakerId] = [];
+ });
+ }
+ };
+
+ // Create a mapping for display-friendly speaker IDs
+ const speakerDisplayMap = ref({});
+ const modalSpeakers = ref([]);
+
const openSpeakerModal = () => {
// Clear any existing speaker map data first
speakerMap.value = {};
+ speakerDisplayMap.value = {};
- // Initialize speaker map only for speakers in the current recording
- speakerMap.value = identifiedSpeakers.value.reduce((acc, speaker, index) => {
+ // Get the same speaker order used in processedTranscription
+ const transcription = selectedRecording.value?.transcription;
+ let speakers = [];
+
+ if (transcription) {
+ try {
+ const transcriptionData = JSON.parse(transcription);
+ if (transcriptionData && Array.isArray(transcriptionData)) {
+ // Use the exact same logic as processedTranscription to get speakers
+ speakers = [...new Set(transcriptionData.map(segment => segment.speaker).filter(Boolean))];
+ }
+ } catch (e) {
+ // Fall back to identifiedSpeakers if JSON parsing fails
+ speakers = identifiedSpeakers.value;
+ }
+ }
+
+ // Set modalSpeakers for the template to use
+ modalSpeakers.value = speakers;
+
+ // Initialize speaker map with the same order and colors as the transcript
+ speakerMap.value = speakers.reduce((acc, speaker, index) => {
acc[speaker] = {
name: '',
isMe: false,
- color: `speaker-color-${(index % 8) + 1}` // Assign same colors as transcription view
+ color: `speaker-color-${(index % 8) + 1}` // Same color assignment as processedTranscription
};
+ // Keep the original speaker ID for display
+ speakerDisplayMap.value[speaker] = speaker;
return acc;
}, {});
@@ -1409,6 +1556,15 @@ document.addEventListener('DOMContentLoaded', () => {
speakerMap.value = {};
speakerSuggestions.value = {};
loadingSuggestions.value = {};
+
+ // Clean up click handler if it exists
+ if (window.speakerModalClickHandler) {
+ const modalContent = document.querySelector('.modal-content');
+ if (modalContent) {
+ modalContent.removeEventListener('click', window.speakerModalClickHandler);
+ }
+ delete window.speakerModalClickHandler;
+ }
};
const saveSpeakerNames = async () => {
@@ -1461,31 +1617,140 @@ document.addEventListener('DOMContentLoaded', () => {
}
};
+ // Speaker group navigation state
+ const currentSpeakerGroupIndex = ref(-1);
+ const speakerGroups = ref([]);
+
+ const findSpeakerGroups = (speakerId) => {
+ if (!speakerId) return [];
+
+ const groups = [];
+ const modalTranscript = document.querySelector('div.speaker-modal-transcript');
+ const mainTranscript = document.querySelector('.transcription-simple-view, .transcription-with-speakers, .transcription-content');
+ const transcriptContainer = modalTranscript || mainTranscript;
+
+ if (!transcriptContainer) return [];
+
+ // For JSON-based transcripts with segments
+ const allSegments = transcriptContainer.querySelectorAll('.speaker-segment');
+ if (allSegments.length > 0) {
+ let currentGroup = null;
+ let lastSpeakerId = null;
+
+ allSegments.forEach(segment => {
+ const speakerTag = segment.querySelector('[data-speaker-id]');
+ const segmentSpeakerId = speakerTag?.dataset.speakerId;
+
+ if (segmentSpeakerId === speakerId) {
+ // If this is a new group (not consecutive with previous)
+ if (lastSpeakerId !== speakerId) {
+ currentGroup = {
+ startElement: segment,
+ elements: [segment]
+ };
+ groups.push(currentGroup);
+ } else if (currentGroup) {
+ // Add to existing group
+ currentGroup.elements.push(segment);
+ }
+ }
+ lastSpeakerId = segmentSpeakerId;
+ });
+ } else {
+ // For plain text transcripts with speaker tags
+ const allTags = transcriptContainer.querySelectorAll('[data-speaker-id]');
+ let currentGroup = null;
+
+ allTags.forEach(tag => {
+ if (tag.dataset.speakerId === speakerId) {
+ // Find the parent element that contains this speaker's content
+ const parentSegment = tag.closest('.speaker-segment') || tag.parentElement;
+
+ if (!currentGroup || !currentGroup.lastElement ||
+ !parentSegment.previousElementSibling ||
+ parentSegment.previousElementSibling !== currentGroup.lastElement) {
+ // Start a new group
+ currentGroup = {
+ startElement: parentSegment,
+ elements: [parentSegment],
+ lastElement: parentSegment
+ };
+ groups.push(currentGroup);
+ } else {
+ // Continue the group
+ currentGroup.elements.push(parentSegment);
+ currentGroup.lastElement = parentSegment;
+ }
+ }
+ });
+ }
+
+ return groups;
+ };
+
const highlightSpeakerInTranscript = (speakerId) => {
highlightedSpeaker.value = speakerId;
- // Scroll to the first instance in the transcript when a speaker is focused
+
if (speakerId) {
- nextTick(() => {
- // Try both the modal transcript and the main transcript
- const modalTranscript = document.querySelector('div.speaker-modal-transcript');
- const mainTranscript = document.querySelector('.transcription-simple-view, .transcription-with-speakers, .transcription-content');
- const transcriptContainer = modalTranscript || mainTranscript;
- if (transcriptContainer) {
- const firstInstance = transcriptContainer.querySelector(`[data-speaker-id="${speakerId}"]`);
- if (firstInstance) {
- firstInstance.scrollIntoView({ behavior: 'smooth', block: 'center' });
+ // Find all speaker groups for navigation
+ speakerGroups.value = findSpeakerGroups(speakerId);
+ currentSpeakerGroupIndex.value = 0;
+
+ // Scroll to the first group
+ if (speakerGroups.value.length > 0) {
+ nextTick(() => {
+ const firstGroup = speakerGroups.value[0];
+ if (firstGroup && firstGroup.startElement) {
+ firstGroup.startElement.scrollIntoView({ behavior: 'smooth', block: 'center' });
}
- }
- });
+ });
+ }
+ } else {
+ speakerGroups.value = [];
+ currentSpeakerGroupIndex.value = -1;
+ }
+ };
+
+ const navigateToNextSpeakerGroup = () => {
+ if (speakerGroups.value.length === 0) return;
+
+ // Don't reset the speaker groups, just update the index
+ currentSpeakerGroupIndex.value = (currentSpeakerGroupIndex.value + 1) % speakerGroups.value.length;
+ const group = speakerGroups.value[currentSpeakerGroupIndex.value];
+ if (group && group.startElement) {
+ group.startElement.scrollIntoView({ behavior: 'smooth', block: 'center' });
+ }
+ };
+
+ const navigateToPrevSpeakerGroup = () => {
+ if (speakerGroups.value.length === 0) return;
+
+ // Don't reset the speaker groups, just update the index
+ currentSpeakerGroupIndex.value = currentSpeakerGroupIndex.value <= 0
+ ? speakerGroups.value.length - 1
+ : currentSpeakerGroupIndex.value - 1;
+ const group = speakerGroups.value[currentSpeakerGroupIndex.value];
+ if (group && group.startElement) {
+ group.startElement.scrollIntoView({ behavior: 'smooth', block: 'center' });
}
};
// Enhanced speaker highlighting with focus/blur events for text inputs
const focusSpeaker = (speakerId) => {
- highlightSpeakerInTranscript(speakerId);
+ // Set this as the active speaker input
+ activeSpeakerInput.value = speakerId;
+ // Only highlight if not already highlighted (to preserve navigation state)
+ if (highlightedSpeaker.value !== speakerId) {
+ highlightSpeakerInTranscript(speakerId);
+ }
};
const blurSpeaker = () => {
+ // Clear the active speaker input after a delay to allow clicking on suggestions
+ setTimeout(() => {
+ activeSpeakerInput.value = null;
+ speakerSuggestions.value = {};
+ }, 200);
clearSpeakerHighlight();
};
@@ -2326,11 +2591,73 @@ document.addEventListener('DOMContentLoaded', () => {
const recordingTagIds = getRecordingTags(recording).map(tag => tag.id);
return availableTags.value.filter(tag => !recordingTagIds.includes(tag.id));
};
+
+ // Computed property for filtered available tags in the modal
+ const filteredAvailableTagsForModal = computed(() => {
+ if (!editingRecording.value) return [];
+ const availableTags = getAvailableTagsForRecording(editingRecording.value);
+ if (!tagSearchFilter.value) return availableTags;
+
+ const filter = tagSearchFilter.value.toLowerCase();
+ return availableTags.filter(tag =>
+ tag.name.toLowerCase().includes(filter)
+ );
+ });
const filterByTag = (tag) => {
- searchQuery.value = `tag:${tag.name}`;
+ // Use advanced filter instead of text-based
+ filterTags.value = [tag.id];
+ applyAdvancedFilters();
};
const clearTagFilter = () => {
searchQuery.value = '';
+ clearAllFilters();
+ };
+
+ // Build search query from advanced filters
+ const buildSearchQuery = () => {
+ let query = [];
+
+ // Add text search
+ if (filterTextQuery.value.trim()) {
+ query.push(filterTextQuery.value.trim());
+ }
+
+ // Add tag filters
+ if (filterTags.value.length > 0) {
+ const tagNames = filterTags.value.map(tagId => {
+ const tag = availableTags.value.find(t => t.id === tagId);
+ return tag ? `tag:${tag.name.replace(/\s+/g, '_')}` : '';
+ }).filter(Boolean);
+ query.push(...tagNames);
+ }
+
+ // Add date filter
+ if (filterDatePreset.value) {
+ query.push(`date:${filterDatePreset.value}`);
+ } else if (filterDateRange.value.start || filterDateRange.value.end) {
+ // Custom date range - send as separate parameters
+ // Will be handled differently in the backend
+ if (filterDateRange.value.start) {
+ query.push(`date_from:${filterDateRange.value.start}`);
+ }
+ if (filterDateRange.value.end) {
+ query.push(`date_to:${filterDateRange.value.end}`);
+ }
+ }
+
+ return query.join(' ');
+ };
+
+ const applyAdvancedFilters = () => {
+ searchQuery.value = buildSearchQuery();
+ };
+
+ const clearAllFilters = () => {
+ filterTags.value = [];
+ filterDateRange.value = { start: '', end: '' };
+ filterDatePreset.value = '';
+ filterTextQuery.value = '';
+ searchQuery.value = '';
};
const editRecordingTags = (recording) => {
@@ -2343,10 +2670,13 @@ document.addEventListener('DOMContentLoaded', () => {
showEditTagsModal.value = false;
editingRecording.value = null;
selectedNewTagId.value = '';
+ tagSearchFilter.value = ''; // Clear the filter when closing
};
- const addTagToRecording = async () => {
- if (!selectedNewTagId.value || !editingRecording.value) return;
+ const addTagToRecording = async (tagId = null) => {
+ // Use provided tagId or fall back to selectedNewTagId
+ const tagToAddId = tagId || selectedNewTagId.value;
+ if (!tagToAddId || !editingRecording.value) return;
try {
const csrfToken = document.querySelector('meta[name="csrf-token"]')?.getAttribute('content');
@@ -2357,7 +2687,7 @@ document.addEventListener('DOMContentLoaded', () => {
'Content-Type': 'application/json',
'X-CSRFToken': csrfToken
},
- body: JSON.stringify({ tag_id: selectedNewTagId.value })
+ body: JSON.stringify({ tag_id: tagToAddId })
});
if (!response.ok) {
@@ -2366,7 +2696,7 @@ document.addEventListener('DOMContentLoaded', () => {
}
// Update local recording data
- const tagToAdd = availableTags.value.find(tag => tag.id == selectedNewTagId.value);
+ const tagToAdd = availableTags.value.find(tag => tag.id == tagToAddId);
if (tagToAdd) {
if (!editingRecording.value.tags) {
editingRecording.value.tags = [];
@@ -2425,7 +2755,33 @@ document.addEventListener('DOMContentLoaded', () => {
};
// --- Audio Recording ---
- const startRecording = async (mode = 'microphone') => {
+ const startRecordingWithDisclaimer = async (mode = 'microphone') => {
+ // Check if disclaimer needs to be shown
+ if (recordingDisclaimer.value && recordingDisclaimer.value.trim()) {
+ pendingRecordingMode.value = mode;
+ showRecordingDisclaimerModal.value = true;
+ } else {
+ // No disclaimer configured, proceed directly
+ await startRecordingActual(mode);
+ }
+ };
+
+ const acceptRecordingDisclaimer = async () => {
+ showRecordingDisclaimerModal.value = false;
+ if (pendingRecordingMode.value) {
+ await startRecordingActual(pendingRecordingMode.value);
+ pendingRecordingMode.value = null;
+ }
+ };
+
+ const cancelRecordingDisclaimer = () => {
+ showRecordingDisclaimerModal.value = false;
+ pendingRecordingMode.value = null;
+ };
+
+ const startRecording = startRecordingWithDisclaimer; // Maintain backward compatibility
+
+ const startRecordingActual = async (mode = 'microphone') => {
recordingMode.value = mode;
try {
@@ -2795,10 +3151,23 @@ document.addEventListener('DOMContentLoaded', () => {
let barHeight;
let x = 0;
- const themeColor = getComputedStyle(document.documentElement).getPropertyValue('--bg-accent').trim();
+ // Use theme-specific colors that work with all color schemes
+ const buttonColor = getComputedStyle(document.documentElement).getPropertyValue('--bg-button').trim();
+ const buttonHoverColor = getComputedStyle(document.documentElement).getPropertyValue('--bg-button-hover').trim();
+
+ // Create gradient that works in both light and dark modes
const gradient = canvasCtx.createLinearGradient(0, 0, 0, HEIGHT);
- gradient.addColorStop(0, themeColor);
- gradient.addColorStop(1, 'rgba(255, 255, 255, 0.1)');
+ if (isDarkMode.value) {
+ // Dark mode: use button colors with transparency
+ gradient.addColorStop(0, buttonColor);
+ gradient.addColorStop(0.6, buttonHoverColor);
+ gradient.addColorStop(1, 'rgba(0, 0, 0, 0.2)');
+ } else {
+ // Light mode: use more saturated colors for visibility
+ gradient.addColorStop(0, buttonColor);
+ gradient.addColorStop(0.5, buttonHoverColor);
+ gradient.addColorStop(1, 'rgba(0, 0, 0, 0.1)');
+ }
for (let i = 0; i < bufferLength; i++) {
barHeight = dataArray[i] / 2.5;
@@ -2961,6 +3330,8 @@ document.addEventListener('DOMContentLoaded', () => {
const toggleEditSummary = () => {
editingSummary.value = !editingSummary.value;
if (editingSummary.value) {
+ // Store current content in temp variable
+ tempSummaryContent.value = selectedRecording.value.summary || '';
nextTick(() => {
initializeSummaryMarkdownEditor();
});
@@ -2973,6 +3344,10 @@ document.addEventListener('DOMContentLoaded', () => {
summaryMarkdownEditorInstance.value = null;
}
editingSummary.value = false;
+ // Restore original content
+ if (selectedRecording.value) {
+ selectedRecording.value.summary = tempSummaryContent.value;
+ }
};
const saveEditSummary = async () => {
@@ -2988,6 +3363,8 @@ document.addEventListener('DOMContentLoaded', () => {
const toggleEditNotes = () => {
editingNotes.value = !editingNotes.value;
if (editingNotes.value) {
+ // Store current content in temp variable
+ tempNotesContent.value = selectedRecording.value.notes || '';
// Initialize markdown editor when entering edit mode
nextTick(() => {
initializeMarkdownEditor();
@@ -3001,9 +3378,9 @@ document.addEventListener('DOMContentLoaded', () => {
markdownEditorInstance.value = null;
}
editingNotes.value = false;
- // Reset notes to original value if needed
+ // Restore original content
if (selectedRecording.value) {
- // You might want to store the original value before editing
+ selectedRecording.value.notes = tempNotesContent.value;
}
};
@@ -3018,6 +3395,92 @@ document.addEventListener('DOMContentLoaded', () => {
await saveInlineEdit('notes');
};
+ const clickToEditNotes = () => {
+ // Allow clicking on empty notes area to start editing
+ if (!editingNotes.value && (!selectedRecording.value?.notes || selectedRecording.value.notes.trim() === '')) {
+ toggleEditNotes();
+ }
+ };
+
+ const clickToEditSummary = () => {
+ // Allow clicking on empty summary area to start editing
+ if (!editingSummary.value && (!selectedRecording.value?.summary || selectedRecording.value.summary.trim() === '')) {
+ toggleEditSummary();
+ }
+ };
+
+ const autoSaveNotes = async () => {
+ if (markdownEditorInstance.value && editingNotes.value) {
+ // Just save the content to the model, don't exit edit mode
+ selectedRecording.value.notes = markdownEditorInstance.value.value();
+ // Silently save to backend without changing UI state
+ try {
+ const payload = {
+ id: selectedRecording.value.id,
+ title: selectedRecording.value.title,
+ participants: selectedRecording.value.participants,
+ notes: selectedRecording.value.notes,
+ summary: selectedRecording.value.summary,
+ meeting_date: selectedRecording.value.meeting_date
+ };
+ const response = await fetch('/save', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json'
+ },
+ body: JSON.stringify(payload)
+ });
+ const data = await response.json();
+ if (response.ok && data.recording) {
+ // Update the HTML rendered versions if they exist
+ if (data.recording.notes_html) {
+ selectedRecording.value.notes_html = data.recording.notes_html;
+ }
+ } else {
+ console.error('Failed to auto-save notes');
+ }
+ } catch (error) {
+ console.error('Error auto-saving notes:', error);
+ }
+ }
+ };
+
+ const autoSaveSummary = async () => {
+ if (summaryMarkdownEditorInstance.value && editingSummary.value) {
+ // Just save the content to the model, don't exit edit mode
+ selectedRecording.value.summary = summaryMarkdownEditorInstance.value.value();
+ // Silently save to backend without changing UI state
+ try {
+ const payload = {
+ id: selectedRecording.value.id,
+ title: selectedRecording.value.title,
+ participants: selectedRecording.value.participants,
+ notes: selectedRecording.value.notes,
+ summary: selectedRecording.value.summary,
+ meeting_date: selectedRecording.value.meeting_date
+ };
+ const response = await fetch('/save', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json'
+ },
+ body: JSON.stringify(payload)
+ });
+ const data = await response.json();
+ if (response.ok && data.recording) {
+ // Update the HTML rendered versions if they exist
+ if (data.recording.summary_html) {
+ selectedRecording.value.summary_html = data.recording.summary_html;
+ }
+ } else {
+ console.error('Failed to auto-save summary');
+ }
+ } catch (error) {
+ console.error('Error auto-saving summary:', error);
+ }
+ }
+ };
+
const initializeMarkdownEditor = () => {
if (!notesMarkdownEditor.value) return;
@@ -3027,6 +3490,7 @@ document.addEventListener('DOMContentLoaded', () => {
spellChecker: false,
autofocus: true,
placeholder: "Enter notes in Markdown format...",
+ initialValue: selectedRecording.value?.notes || '',
status: false,
toolbar: [
"bold", "italic", "heading", "|",
@@ -3038,6 +3502,16 @@ document.addEventListener('DOMContentLoaded', () => {
previewClass: ["editor-preview", "notes-preview"],
theme: isDarkMode.value ? "dark" : "light"
});
+
+ // Add auto-save functionality
+ markdownEditorInstance.value.codemirror.on('change', () => {
+ if (autoSaveTimer.value) {
+ clearTimeout(autoSaveTimer.value);
+ }
+ autoSaveTimer.value = setTimeout(() => {
+ autoSaveNotes();
+ }, autoSaveDelay);
+ });
} catch (error) {
console.error('Failed to initialize markdown editor:', error);
// Fallback to regular textarea editing
@@ -3421,6 +3895,40 @@ document.addEventListener('DOMContentLoaded', () => {
localStorage.setItem('playerVolume', newVolume);
};
+ // --- i18n Helper Functions ---
+ const t = (key, params = {}) => {
+ return window.i18n ? window.i18n.t(key, params) : key;
+ };
+
+ const tc = (key, count, params = {}) => {
+ return window.i18n ? window.i18n.tc(key, count, params) : key;
+ };
+
+ const changeLanguage = async (langCode) => {
+ if (window.i18n) {
+ await window.i18n.setLocale(langCode);
+ currentLanguage.value = langCode;
+ const lang = availableLanguages.value.find(l => l.code === langCode);
+ currentLanguageName.value = lang ? lang.nativeName : 'English';
+ showLanguageMenu.value = false;
+ isUserMenuOpen.value = false;
+
+ // Save preference to backend
+ try {
+ await fetch('/api/user/preferences', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ 'X-CSRF-Token': csrfToken.value
+ },
+ body: JSON.stringify({ language: langCode })
+ });
+ } catch (error) {
+ console.error('Failed to save language preference:', error);
+ }
+ }
+ };
+
// --- Toast Notifications ---
const showToast = (message, icon = 'fa-check-circle', duration = 2000) => {
const toastContainer = document.getElementById('toastContainer');
@@ -3736,31 +4244,60 @@ document.addEventListener('DOMContentLoaded', () => {
};
- const openShareModal = (recording) => {
+ const openShareModal = async (recording) => {
recordingToShare.value = recording;
shareOptions.share_summary = true;
shareOptions.share_notes = true;
generatedShareLink.value = '';
+ existingShareDetected.value = false;
showShareModal.value = true;
+
+ // Check for existing share
+ try {
+ const response = await fetch(`/api/recording/${recording.id}/share`, {
+ method: 'GET'
+ });
+ const data = await response.json();
+ if (response.ok && data.exists) {
+ generatedShareLink.value = data.share_url;
+ existingShareDetected.value = true;
+ shareOptions.share_summary = data.share.share_summary;
+ shareOptions.share_notes = data.share.share_notes;
+ }
+ } catch (error) {
+ console.error('Error checking for existing share:', error);
+ }
};
const closeShareModal = () => {
showShareModal.value = false;
recordingToShare.value = null;
+ existingShareDetected.value = false;
};
- const createShare = async () => {
+ const createShare = async (forceNew = false) => {
if (!recordingToShare.value) return;
try {
const response = await fetch(`/api/recording/${recordingToShare.value.id}/share`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
- body: JSON.stringify(shareOptions)
+ body: JSON.stringify({
+ ...shareOptions,
+ force_new: forceNew
+ })
});
const data = await response.json();
if (!response.ok) throw new Error(data.error || 'Failed to create share link');
+
generatedShareLink.value = data.share_url;
- showToast('Share link created successfully!', 'fa-check-circle');
+ existingShareDetected.value = data.existing && !forceNew;
+
+ if (data.existing && !forceNew) {
+ // Show that we're using an existing share
+ showToast('Using existing share link', 'fa-link');
+ } else {
+ showToast('Share link created successfully!', 'fa-check-circle');
+ }
} catch (error) {
setGlobalError(`Failed to create share link: ${error.message}`);
}
@@ -3811,14 +4348,27 @@ document.addEventListener('DOMContentLoaded', () => {
}
};
- const deleteShare = async (shareId) => {
- if (!confirm('Are you sure you want to delete this share? This will revoke access to the public link.')) return;
+ const confirmDeleteShare = (share) => {
+ shareToDelete.value = share;
+ showShareDeleteModal.value = true;
+ };
+
+ const cancelDeleteShare = () => {
+ shareToDelete.value = null;
+ showShareDeleteModal.value = false;
+ };
+
+ const deleteShare = async () => {
+ if (!shareToDelete.value) return;
+ const shareId = shareToDelete.value.id;
try {
const response = await fetch(`/api/share/${shareId}`, { method: 'DELETE' });
const data = await response.json();
if (!response.ok) throw new Error(data.error || 'Failed to delete share');
userShares.value = userShares.value.filter(s => s.id !== shareId);
- showToast('Share deleted successfully.', 'fa-check-circle');
+ showToast('Share link deleted successfully.', 'fa-check-circle');
+ showShareDeleteModal.value = false;
+ shareToDelete.value = null;
} catch (error) {
setGlobalError(`Failed to delete share: ${error.message}`);
}
@@ -3853,8 +4403,106 @@ document.addEventListener('DOMContentLoaded', () => {
});
}, { deep: true });
+ // Watch for tab changes to save content properly
+ watch(selectedTab, (newTab, oldTab) => {
+ // Save content when switching away from notes tab but keep editor open
+ if (oldTab === 'notes' && editingNotes.value && markdownEditorInstance.value) {
+ // Save the current content from the editor
+ const currentContent = markdownEditorInstance.value.value();
+ selectedRecording.value.notes = currentContent;
+ // Call auto-save instead of saveInlineEdit to keep editor open
+ autoSaveNotes();
+ // Store that we need to recreate the editor when coming back
+ tempNotesContent.value = currentContent;
+ }
+ // Save content when switching away from summary tab but keep editor open
+ if (oldTab === 'summary' && editingSummary.value && summaryMarkdownEditorInstance.value) {
+ // Save the current content from the editor
+ const currentContent = summaryMarkdownEditorInstance.value.value();
+ selectedRecording.value.summary = currentContent;
+ // Call auto-save instead of saveInlineEdit to keep editor open
+ autoSaveSummary();
+ // Store that we need to recreate the editor when coming back
+ tempSummaryContent.value = currentContent;
+ }
+
+ // Re-initialize editors when switching back to tabs
+ if (newTab === 'notes' && editingNotes.value) {
+ // Destroy old instance if exists
+ if (markdownEditorInstance.value) {
+ markdownEditorInstance.value.toTextArea();
+ markdownEditorInstance.value = null;
+ }
+ // Re-initialize the editor in next tick
+ nextTick(() => {
+ initializeMarkdownEditor();
+ });
+ }
+ if (newTab === 'summary' && editingSummary.value) {
+ // Destroy old instance if exists
+ if (summaryMarkdownEditorInstance.value) {
+ summaryMarkdownEditorInstance.value.toTextArea();
+ summaryMarkdownEditorInstance.value = null;
+ }
+ // Re-initialize the editor in next tick
+ nextTick(() => {
+ initializeSummaryMarkdownEditor();
+ });
+ }
+ });
+
+ // Watch for mobile tab changes similarly
+ watch(mobileTab, (newTab, oldTab) => {
+ // Save content when switching away from notes tab but keep editor open
+ if (oldTab === 'notes' && editingNotes.value && markdownEditorInstance.value) {
+ const currentContent = markdownEditorInstance.value.value();
+ selectedRecording.value.notes = currentContent;
+ autoSaveNotes(); // Use auto-save instead
+ tempNotesContent.value = currentContent;
+ }
+ // Save content when switching away from summary tab but keep editor open
+ if (oldTab === 'summary' && editingSummary.value && summaryMarkdownEditorInstance.value) {
+ const currentContent = summaryMarkdownEditorInstance.value.value();
+ selectedRecording.value.summary = currentContent;
+ autoSaveSummary(); // Use auto-save instead
+ tempSummaryContent.value = currentContent;
+ }
+
+ // Re-initialize editors when switching back to tabs on mobile
+ if (newTab === 'notes' && editingNotes.value) {
+ if (markdownEditorInstance.value) {
+ markdownEditorInstance.value.toTextArea();
+ markdownEditorInstance.value = null;
+ }
+ nextTick(() => {
+ initializeMarkdownEditor();
+ });
+ }
+ if (newTab === 'summary' && editingSummary.value) {
+ if (summaryMarkdownEditorInstance.value) {
+ summaryMarkdownEditorInstance.value.toTextArea();
+ summaryMarkdownEditorInstance.value = null;
+ }
+ nextTick(() => {
+ initializeSummaryMarkdownEditor();
+ });
+ }
+ });
+
watch(selectedRecording, (newVal, oldVal) => {
if (newVal?.id !== oldVal?.id) {
+ // Save any pending edits before switching recordings
+ if (editingNotes.value && markdownEditorInstance.value && oldVal?.id) {
+ selectedRecording.value = oldVal; // Temporarily restore old recording
+ saveEditNotes(); // This will save and cleanup
+ selectedRecording.value = newVal; // Switch back to new recording
+ }
+ if (editingSummary.value && summaryMarkdownEditorInstance.value && oldVal?.id) {
+ selectedRecording.value = oldVal; // Temporarily restore old recording
+ saveEditSummary(); // This will save and cleanup
+ selectedRecording.value = newVal; // Switch back to new recording
+ }
+
chatMessages.value = [];
showChat.value = false;
selectedTab.value = 'summary';
@@ -3900,6 +4548,27 @@ document.addEventListener('DOMContentLoaded', () => {
// Initialize recording markdown editor when switching to recording view
nextTick(() => {
initializeRecordingMarkdownEditor();
+ // Fix audio duration for recorded files
+ if (audioBlobURL.value) {
+ const recordingAudio = document.querySelector('audio[src*="blob:"]');
+ if (recordingAudio) {
+ const fixDuration = () => {
+ if (!isFinite(recordingAudio.duration) || recordingAudio.duration === 0) {
+ const originalTime = recordingAudio.currentTime;
+ recordingAudio.currentTime = 1e101;
+ recordingAudio.addEventListener('timeupdate', function resetTime() {
+ recordingAudio.currentTime = originalTime;
+ recordingAudio.removeEventListener('timeupdate', resetTime);
+ }, { once: true });
+ }
+ };
+ recordingAudio.addEventListener('loadedmetadata', fixDuration, { once: true });
+ recordingAudio.addEventListener('canplay', fixDuration, { once: true });
+ if (recordingAudio.readyState >= 1) {
+ setTimeout(fixDuration, 100);
+ }
+ }
+ }
});
} else {
// Clean up recording markdown editor when leaving recording view
@@ -3910,6 +4579,36 @@ document.addEventListener('DOMContentLoaded', () => {
}
});
+ watch(audioBlobURL, (newURL) => {
+ if (newURL) {
+ nextTick(() => {
+ const recordingAudio = document.querySelector('audio[src*="blob:"]');
+ if (recordingAudio) {
+ const fixDuration = () => {
+ if (!isFinite(recordingAudio.duration) || recordingAudio.duration === 0) {
+ const originalTime = recordingAudio.currentTime;
+ recordingAudio.currentTime = 1e101;
+ recordingAudio.addEventListener('timeupdate', function resetTime() {
+ recordingAudio.currentTime = originalTime;
+ recordingAudio.removeEventListener('timeupdate', resetTime);
+ }, { once: true });
+ }
+ };
+
+ // Multiple events to ensure we catch the duration
+ recordingAudio.addEventListener('loadedmetadata', fixDuration, { once: true });
+ recordingAudio.addEventListener('loadeddata', fixDuration, { once: true });
+ recordingAudio.addEventListener('canplay', fixDuration, { once: true });
+
+ // Also try after a delay
+ if (recordingAudio.readyState >= 1) {
+ setTimeout(fixDuration, 100);
+ }
+ }
+ });
+ }
+ });
+
watch(playerVolume, (newVolume) => {
const audioElements = document.querySelectorAll('audio');
audioElements.forEach(audio => {
@@ -3923,6 +4622,27 @@ document.addEventListener('DOMContentLoaded', () => {
watch(searchQuery, (newQuery) => {
debouncedSearch(newQuery);
});
+
+ // Auto-apply filters when they change (except text query which is debounced)
+ watch(filterTags, () => {
+ applyAdvancedFilters();
+ }, { deep: true });
+
+ watch(filterDatePreset, () => {
+ applyAdvancedFilters();
+ });
+
+ watch(filterDateRange, () => {
+ applyAdvancedFilters();
+ }, { deep: true });
+
+ // Debounce text query changes
+ watch(filterTextQuery, (newValue) => {
+ clearTimeout(searchDebounceTimer.value);
+ searchDebounceTimer.value = setTimeout(() => {
+ applyAdvancedFilters();
+ }, 300);
+ });
// --- Configuration Loading ---
const loadConfiguration = async () => {
@@ -3935,6 +4655,7 @@ document.addEventListener('DOMContentLoaded', () => {
chunkingMode.value = config.chunking_mode || 'size';
chunkingLimit.value = config.chunking_limit || 20;
chunkingLimitDisplay.value = config.chunking_limit_display || '20MB';
+ recordingDisclaimer.value = config.recording_disclaimer || '';
console.log(`Loaded configuration: max size ${maxFileSizeMB.value}MB, chunking ${chunkingEnabled.value ? 'enabled' : 'disabled'} (${chunkingLimitDisplay.value})`);
} else {
console.warn('Failed to load configuration, using default values');
@@ -3954,6 +4675,7 @@ document.addEventListener('DOMContentLoaded', () => {
spellChecker: false,
autofocus: true,
placeholder: "Enter summary in Markdown format...",
+ initialValue: selectedRecording.value?.summary || '',
status: false,
toolbar: [
"bold", "italic", "heading", "|",
@@ -3965,6 +4687,16 @@ document.addEventListener('DOMContentLoaded', () => {
previewClass: ["editor-preview", "notes-preview"],
theme: isDarkMode.value ? "dark" : "light"
});
+
+ // Add auto-save functionality
+ summaryMarkdownEditorInstance.value.codemirror.on('change', () => {
+ if (autoSaveTimer.value) {
+ clearTimeout(autoSaveTimer.value);
+ }
+ autoSaveTimer.value = setTimeout(() => {
+ autoSaveSummary();
+ }, autoSaveDelay);
+ });
} catch (error) {
console.error('Failed to initialize summary markdown editor:', error);
editingSummary.value = true;
@@ -4138,6 +4870,29 @@ document.addEventListener('DOMContentLoaded', () => {
detectBrowser();
+ // Check if language was changed in account settings
+ if (localStorage.getItem('ui_language_changed') === 'true') {
+ localStorage.removeItem('ui_language_changed');
+ // Force reload to apply new language
+ window.location.reload();
+ return;
+ }
+
+ // i18n is already initialized before Vue app creation
+ if (window.i18n) {
+ currentLanguage.value = window.i18n.getLocale();
+ availableLanguages.value = window.i18n.getAvailableLocales();
+ const lang = availableLanguages.value.find(l => l.code === currentLanguage.value);
+ currentLanguageName.value = lang ? lang.nativeName : 'English';
+
+ // Listen for locale changes
+ window.addEventListener('localeChanged', (event) => {
+ currentLanguage.value = event.detail.locale;
+ const lang = availableLanguages.value.find(l => l.code === currentLanguage.value);
+ currentLanguageName.value = lang ? lang.nativeName : 'English';
+ });
+ }
+
loadRecordings();
loadTags();
initializeDarkMode();
@@ -4194,18 +4949,31 @@ document.addEventListener('DOMContentLoaded', () => {
// Close user menu if clicking outside
if (isUserMenuOpen.value) {
// Check if we clicked within the user menu area (button or dropdown)
- const userMenuButton = e.target.closest('button[class*="flex items-center gap-2"]');
+ const userMenuButton = e.target.closest('button[class*="flex items-center gap"]');
const userMenuDropdown = e.target.closest('div[class*="absolute right-0"]');
- const userMenuContainer = e.target.closest('.relative');
- // Check if the click was on the user menu button specifically
+ // Check if the click was on the user menu button specifically
const isUserMenuButtonClick = userMenuButton && userMenuButton.querySelector('i.fa-user-circle');
// If we didn't click on the user menu button or dropdown, close it
- if (!isUserMenuButtonClick && !userMenuDropdown && !userMenuContainer) {
+ if (!isUserMenuButtonClick && !userMenuDropdown) {
isUserMenuOpen.value = false;
}
}
+
+ // Close speaker suggestions if clicking outside in the modal
+ if (showSpeakerModal.value) {
+ // If not clicking on an input field or suggestion dropdown
+ const clickedOnInput = e.target.closest('input[type="text"]');
+ const clickedOnSuggestion = e.target.closest('[class*="absolute z-10"]');
+
+ if (!clickedOnInput && !clickedOnSuggestion) {
+ // Close all suggestion dropdowns
+ Object.keys(speakerSuggestions.value).forEach(speakerId => {
+ speakerSuggestions.value[speakerId] = [];
+ });
+ }
+ }
};
document.addEventListener('click', handleClickAway);
});
@@ -4214,6 +4982,7 @@ document.addEventListener('DOMContentLoaded', () => {
// Core State
currentView, dragover, recordings, selectedRecording, selectedTab, searchQuery,
isLoadingRecordings, globalError, maxFileSizeMB, chunkingEnabled, chunkingMode, chunkingLimit, chunkingLimitDisplay, sortBy,
+ showAdvancedFilters, filterTags, filterDateRange, filterDatePreset, filterTextQuery,
// Pagination State
currentPage, perPage, totalRecordings, totalPages, hasNextPage, hasPrevPage, isLoadingMore,
@@ -4224,6 +4993,9 @@ document.addEventListener('DOMContentLoaded', () => {
showColorSchemeModal, windowWidth, isMobileScreen,
mobileTab, isMetadataExpanded,
+ // i18n State
+ currentLanguage, currentLanguageName, availableLanguages, showLanguageMenu,
+
// Upload State
uploadQueue, currentlyProcessingFile, processingProgress, processingMessage,
isProcessingActive, progressPopupMinimized, progressPopupClosed,
@@ -4231,15 +5003,17 @@ document.addEventListener('DOMContentLoaded', () => {
// Audio Recording
isRecording, canRecordAudio, canRecordSystemAudio, systemAudioSupported, systemAudioError, audioBlobURL, recordingTime, recordingNotes, visualizer, micVisualizer, systemVisualizer, recordingMode,
+ recordingDisclaimer, showRecordingDisclaimerModal, acceptRecordingDisclaimer, cancelRecordingDisclaimer,
showAdvancedOptions, uploadLanguage, uploadMinSpeakers, uploadMaxSpeakers,
asrLanguage, asrMinSpeakers, asrMaxSpeakers,
- availableTags, selectedTagIds, selectedTags, onTagSelected, addTagToSelection, removeTagFromSelection,
+ availableTags, selectedTagIds, selectedTags, uploadTagSearchFilter, filteredAvailableTagsForUpload, onTagSelected, addTagToSelection, removeTagFromSelection,
showSystemAudioHelp,
// Modal State
showEditModal, showDeleteModal, showResetModal, editingRecording, recordingToDelete,
- showEditTagsModal, selectedNewTagId, editRecordingTags, closeEditTagsModal, addTagToRecording, removeTagFromRecording,
+ showEditTagsModal, selectedNewTagId, tagSearchFilter, filteredAvailableTagsForModal, editRecordingTags, closeEditTagsModal, addTagToRecording, removeTagFromRecording,
getRecordingTags, getAvailableTagsForRecording, filterByTag, clearTagFilter,
+ applyAdvancedFilters, clearAllFilters,
showTextEditorModal, showAsrEditorModal, editingTranscriptionContent, editingSegments, availableSpeakers,
// Inline Editing
@@ -4264,13 +5038,14 @@ document.addEventListener('DOMContentLoaded', () => {
useAsrEndpoint, currentUserName,
// Computed
- filteredRecordings, groupedRecordings, activeRecordingMetadata,
+ filteredRecordings, groupedRecordings, activeRecordingMetadata, datePresetOptions, languageOptions,
// Color Schemes
colorSchemes,
// Methods
setGlobalError, formatFileSize, formatDisplayDate, formatStatus, getStatusClass, formatTime,
+ t, tc, changeLanguage,
toggleDarkMode, applyColorScheme, initializeColorScheme, openColorSchemeModal,
closeColorSchemeModal, selectColorScheme, resetColorScheme,
toggleSidebar, switchToUploadView, selectRecording,
@@ -4279,7 +5054,8 @@ document.addEventListener('DOMContentLoaded', () => {
loadRecordings, loadMoreRecordings, performSearch, debouncedSearch, saveMetadata, editRecording, cancelEdit, saveEdit,
confirmDelete, cancelDelete, deleteRecording,
toggleEditParticipants, toggleEditMeetingDate, toggleEditSummary, cancelEditSummary, saveEditSummary, toggleEditNotes,
- cancelEditNotes, saveEditNotes, initializeMarkdownEditor, saveInlineEdit,
+ cancelEditNotes, saveEditNotes, initializeMarkdownEditor, saveInlineEdit, clickToEditNotes, clickToEditSummary,
+ autoSaveNotes, autoSaveSummary,
sendChatMessage, isChatScrolledToBottom, scrollChatToBottom, startColumnResize, handleChatKeydown, seekAudio, seekAudioFromEvent, onPlayerVolumeChange,
showToast, copyMessage, copyTranscription, copySummary, copyNotes,
downloadSummary, downloadNotes, downloadChat,
@@ -4317,12 +5093,20 @@ document.addEventListener('DOMContentLoaded', () => {
recordingToShare,
shareOptions,
generatedShareLink,
+ existingShareDetected,
userShares,
isLoadingShares,
showSharesListModal,
+ shareToDelete,
+ showShareDeleteModal,
+ confirmDeleteShare,
+ cancelDeleteShare,
speakerMap,
+ speakerDisplayMap,
+ modalSpeakers,
regenerateSummaryAfterSpeakerUpdate,
identifiedSpeakers,
+ identifiedSpeakersInOrder,
hasSpeakerNames,
openSpeakerModal,
closeSpeakerModal,
@@ -4333,10 +5117,16 @@ document.addEventListener('DOMContentLoaded', () => {
focusSpeaker,
blurSpeaker,
clearSpeakerHighlight,
+ currentSpeakerGroupIndex,
+ speakerGroups,
+ navigateToNextSpeakerGroup,
+ navigateToPrevSpeakerGroup,
speakerSuggestions,
loadingSuggestions,
+ activeSpeakerInput,
searchSpeakers,
selectSpeakerSuggestion,
+ closeSpeakerSuggestionsOnClick,
autoIdentifySpeakers,
isAutoIdentifying,
formatDuration,
diff --git a/static/js/i18n.js b/static/js/i18n.js
new file mode 100644
index 00000000..50c4c1b2
--- /dev/null
+++ b/static/js/i18n.js
@@ -0,0 +1,287 @@
+/**
+ * Lightweight i18n (internationalization) system for Speakr
+ * Handles loading and managing translations with template variable support
+ */
+
+class I18n {
+ constructor() {
+ this.translations = {};
+ this.currentLocale = 'en';
+ this.fallbackLocale = 'en';
+ this.loadedLocales = new Set();
+ }
+
+ /**
+ * Initialize i18n with default locale
+ * @param {string} locale - Initial locale code (e.g., 'en', 'es', 'fr', 'zh')
+ */
+ async init(locale = 'en') {
+ // Get saved locale from localStorage or use browser language
+ const savedLocale = localStorage.getItem('preferredLanguage');
+ const browserLocale = navigator.language.split('-')[0];
+
+ this.currentLocale = savedLocale || locale || browserLocale || 'en';
+
+ // Load the initial locale
+ await this.loadLocale(this.currentLocale);
+
+ // Load fallback locale if different
+ if (this.currentLocale !== this.fallbackLocale) {
+ await this.loadLocale(this.fallbackLocale);
+ }
+ }
+
+ /**
+ * Load translations for a specific locale
+ * @param {string} locale - Locale code to load
+ */
+ async loadLocale(locale) {
+ if (this.loadedLocales.has(locale)) {
+ return; // Already loaded
+ }
+
+ try {
+ const response = await fetch(`/static/locales/${locale}.json`);
+ if (!response.ok) {
+ throw new Error(`Failed to load locale: ${locale}`);
+ }
+
+ const translations = await response.json();
+ this.translations[locale] = translations;
+ this.loadedLocales.add(locale);
+
+ console.log(`Loaded locale: ${locale}`);
+ } catch (error) {
+ console.error(`Error loading locale ${locale}:`, error);
+
+ // If failed to load requested locale and it's not the fallback, try fallback
+ if (locale !== this.fallbackLocale) {
+ console.log(`Failed to load ${locale}, will use ${this.fallbackLocale} as fallback`);
+ // Don't change currentLocale - keep user's preference
+ // Just ensure fallback translations are available
+ await this.loadLocale(this.fallbackLocale);
+ }
+ }
+ }
+
+ /**
+ * Change the current locale
+ * @param {string} locale - New locale code
+ */
+ async setLocale(locale) {
+ await this.loadLocale(locale);
+ this.currentLocale = locale;
+ localStorage.setItem('preferredLanguage', locale);
+
+ // Dispatch custom event for locale change
+ window.dispatchEvent(new CustomEvent('localeChanged', { detail: { locale } }));
+ }
+
+ /**
+ * Get the current locale
+ * @returns {string} Current locale code
+ */
+ getLocale() {
+ return this.currentLocale;
+ }
+
+ /**
+ * Get available locales
+ * @returns {Array} List of available locale codes
+ */
+ getAvailableLocales() {
+ return [
+ { code: 'en', name: 'English', nativeName: 'English' },
+ { code: 'es', name: 'Spanish', nativeName: 'Español' },
+ { code: 'fr', name: 'French', nativeName: 'Français' },
+ { code: 'zh', name: 'Chinese', nativeName: '中文' }
+ ];
+ }
+
+ /**
+ * Translate a key with optional parameters
+ * @param {string} key - Translation key (e.g., 'common.save' or 'nav.upload')
+ * @param {Object} params - Optional parameters for template replacement
+ * @param {string} locale - Optional specific locale (defaults to current)
+ * @returns {string} Translated text
+ */
+ t(key, params = {}, locale = null) {
+ const targetLocale = locale || this.currentLocale;
+
+ // Get translation from current locale or fallback
+ let translation = this.getNestedTranslation(targetLocale, key);
+
+ if (!translation && targetLocale !== this.fallbackLocale) {
+ translation = this.getNestedTranslation(this.fallbackLocale, key);
+ }
+
+ if (!translation) {
+ console.warn(`Translation not found for key: ${key}`);
+ return key; // Return the key itself as fallback
+ }
+
+ // Replace template variables
+ return this.interpolate(translation, params);
+ }
+
+ /**
+ * Get nested translation value from object
+ * @param {string} locale - Locale to search in
+ * @param {string} key - Dot-separated key path
+ * @returns {string|null} Translation value or null
+ */
+ getNestedTranslation(locale, key) {
+ if (!this.translations[locale]) {
+ return null;
+ }
+
+ const keys = key.split('.');
+ let value = this.translations[locale];
+
+ for (const k of keys) {
+ if (value && typeof value === 'object' && k in value) {
+ value = value[k];
+ } else {
+ return null;
+ }
+ }
+
+ return typeof value === 'string' ? value : null;
+ }
+
+ /**
+ * Replace template variables in translation string
+ * @param {string} text - Text with placeholders like {{variable}}
+ * @param {Object} params - Parameters to replace
+ * @returns {string} Interpolated text
+ */
+ interpolate(text, params) {
+ return text.replace(/\{\{(\w+)\}\}/g, (match, key) => {
+ return params.hasOwnProperty(key) ? params[key] : match;
+ });
+ }
+
+ /**
+ * Handle pluralization
+ * @param {string} key - Base translation key
+ * @param {number} count - Count for pluralization
+ * @param {Object} params - Additional parameters
+ * @returns {string} Translated text with proper pluralization
+ */
+ tc(key, count, params = {}) {
+ const pluralKey = count === 1 ? key : `${key}Plural`;
+ return this.t(pluralKey, { ...params, count });
+ }
+
+ /**
+ * Format date according to locale
+ * @param {Date|string} date - Date to format
+ * @param {Object} options - Intl.DateTimeFormat options
+ * @returns {string} Formatted date string
+ */
+ formatDate(date, options = {}) {
+ const d = date instanceof Date ? date : new Date(date);
+ return new Intl.DateTimeFormat(this.currentLocale, options).format(d);
+ }
+
+ /**
+ * Format number according to locale
+ * @param {number} number - Number to format
+ * @param {Object} options - Intl.NumberFormat options
+ * @returns {string} Formatted number string
+ */
+ formatNumber(number, options = {}) {
+ return new Intl.NumberFormat(this.currentLocale, options).format(number);
+ }
+
+ /**
+ * Format file size with appropriate unit
+ * @param {number} bytes - Size in bytes
+ * @returns {string} Formatted file size
+ */
+ formatFileSize(bytes) {
+ const units = ['bytes', 'kilobytes', 'megabytes', 'gigabytes'];
+ const unitValues = [1, 1024, 1048576, 1073741824];
+
+ let unitIndex = 0;
+ for (let i = unitValues.length - 1; i >= 0; i--) {
+ if (bytes >= unitValues[i]) {
+ unitIndex = i;
+ break;
+ }
+ }
+
+ const value = Math.round(bytes / unitValues[unitIndex] * 10) / 10;
+ return this.t(`fileSize.${units[unitIndex]}`, { count: value });
+ }
+
+ /**
+ * Format duration with appropriate unit
+ * @param {number} seconds - Duration in seconds
+ * @returns {string} Formatted duration
+ */
+ formatDuration(seconds) {
+ if (seconds < 60) {
+ return this.tc('duration.seconds', Math.round(seconds), { count: Math.round(seconds) });
+ } else if (seconds < 3600) {
+ const minutes = Math.round(seconds / 60);
+ return this.tc('duration.minutes', minutes, { count: minutes });
+ } else {
+ const hours = Math.round(seconds / 3600 * 10) / 10;
+ return this.tc('duration.hours', hours, { count: hours });
+ }
+ }
+
+ /**
+ * Format relative time (e.g., "2 hours ago")
+ * @param {Date|string} date - Date to format
+ * @returns {string} Formatted relative time
+ */
+ formatRelativeTime(date) {
+ const d = date instanceof Date ? date : new Date(date);
+ const now = new Date();
+ const diffSeconds = Math.floor((now - d) / 1000);
+
+ if (diffSeconds < 60) {
+ return this.t('time.justNow');
+ } else if (diffSeconds < 3600) {
+ const minutes = Math.floor(diffSeconds / 60);
+ return minutes === 1
+ ? this.t('time.minuteAgo')
+ : this.t('time.minutesAgo', { count: minutes });
+ } else if (diffSeconds < 86400) {
+ const hours = Math.floor(diffSeconds / 3600);
+ return hours === 1
+ ? this.t('time.hourAgo')
+ : this.t('time.hoursAgo', { count: hours });
+ } else if (diffSeconds < 604800) {
+ const days = Math.floor(diffSeconds / 86400);
+ return days === 1
+ ? this.t('time.dayAgo')
+ : this.t('time.daysAgo', { count: days });
+ } else if (diffSeconds < 2592000) {
+ const weeks = Math.floor(diffSeconds / 604800);
+ return weeks === 1
+ ? this.t('time.weekAgo')
+ : this.t('time.weeksAgo', { count: weeks });
+ } else if (diffSeconds < 31536000) {
+ const months = Math.floor(diffSeconds / 2592000);
+ return months === 1
+ ? this.t('time.monthAgo')
+ : this.t('time.monthsAgo', { count: months });
+ } else {
+ const years = Math.floor(diffSeconds / 31536000);
+ return years === 1
+ ? this.t('time.yearAgo')
+ : this.t('time.yearsAgo', { count: years });
+ }
+ }
+}
+
+// Create global i18n instance
+const i18n = new I18n();
+
+// Export for use in Vue components
+if (typeof window !== 'undefined') {
+ window.i18n = i18n;
+}
\ No newline at end of file
diff --git a/static/js/shared-components.js b/static/js/shared-components.js
new file mode 100644
index 00000000..6ad28da7
--- /dev/null
+++ b/static/js/shared-components.js
@@ -0,0 +1,262 @@
+// Shared UI Components and Functionality
+// This file contains reusable Vue composition functions and utilities
+// that can be used across multiple pages (index, inquire, admin, etc.)
+
+// Dark Mode Composition
+function useDarkMode() {
+ const isDarkMode = Vue.ref(false);
+
+ const toggleDarkMode = () => {
+ isDarkMode.value = !isDarkMode.value;
+ if (isDarkMode.value) {
+ document.documentElement.classList.add('dark');
+ localStorage.setItem('darkMode', 'true');
+ } else {
+ document.documentElement.classList.remove('dark');
+ localStorage.setItem('darkMode', 'false');
+ }
+ };
+
+ const initializeDarkMode = () => {
+ const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
+ const savedMode = localStorage.getItem('darkMode');
+ if (savedMode === 'true' || (savedMode === null && prefersDark)) {
+ isDarkMode.value = true;
+ document.documentElement.classList.add('dark');
+ } else {
+ isDarkMode.value = false;
+ document.documentElement.classList.remove('dark');
+ }
+ };
+
+ return {
+ isDarkMode,
+ toggleDarkMode,
+ initializeDarkMode
+ };
+}
+
+// Color Scheme Composition
+function useColorScheme() {
+ const showColorSchemeModal = Vue.ref(false);
+ const currentColorScheme = Vue.ref('blue');
+ const isDarkMode = Vue.ref(false);
+
+ const colorSchemes = {
+ light: [
+ { id: 'blue', name: 'Ocean Blue', description: 'Classic blue theme with professional appeal', accent: '#3b82f6', hover: '#2563eb' },
+ { id: 'emerald', name: 'Forest Emerald', description: 'Fresh green theme for a natural feel', accent: '#10b981', hover: '#059669' },
+ { id: 'purple', name: 'Royal Purple', description: 'Elegant purple theme with sophistication', accent: '#8b5cf6', hover: '#7c3aed' },
+ { id: 'rose', name: 'Sunset Rose', description: 'Warm pink theme with gentle energy', accent: '#f43f5e', hover: '#e11d48' },
+ { id: 'amber', name: 'Golden Amber', description: 'Warm yellow theme for brightness', accent: '#f59e0b', hover: '#d97706' },
+ { id: 'teal', name: 'Ocean Teal', description: 'Cool teal theme for tranquility', accent: '#06b6d4', hover: '#0891b2' }
+ ],
+ dark: [
+ { id: 'blue', name: 'Midnight Blue', description: 'Deep blue for focused night work', accent: '#60a5fa', hover: '#3b82f6' },
+ { id: 'emerald', name: 'Emerald Night', description: 'Rich green for comfortable viewing', accent: '#34d399', hover: '#10b981' },
+ { id: 'purple', name: 'Deep Purple', description: 'Luxurious purple for creative sessions', accent: '#a78bfa', hover: '#8b5cf6' },
+ { id: 'rose', name: 'Crimson', description: 'Bold red-pink for energetic work', accent: '#fb7185', hover: '#f43f5e' },
+ { id: 'amber', name: 'Golden Hour', description: 'Warm amber for reduced eye strain', accent: '#fbbf24', hover: '#f59e0b' },
+ { id: 'teal', name: 'Electric Cyan', description: 'Vibrant cyan for modern aesthetics', accent: '#22d3ee', hover: '#06b6d4' }
+ ]
+ };
+
+ const applyColorScheme = (schemeId) => {
+ const schemes = isDarkMode.value ? colorSchemes.dark : colorSchemes.light;
+ const scheme = schemes.find(s => s.id === schemeId);
+ if (scheme) {
+ // Remove all theme classes
+ const allThemeClasses = [
+ ...colorSchemes.light.map(s => `theme-light-${s.id}`),
+ ...colorSchemes.dark.map(s => `theme-dark-${s.id}`)
+ ].filter(c => !c.includes('blue')); // blue is the default, no class needed
+
+ document.documentElement.classList.remove(...allThemeClasses);
+
+ // Apply new theme class if not blue (default)
+ if (schemeId !== 'blue') {
+ const themeClass = `theme-${isDarkMode.value ? 'dark' : 'light'}-${schemeId}`;
+ document.documentElement.classList.add(themeClass);
+ }
+
+ // Don't set CSS variables - let the theme classes handle all colors
+ localStorage.setItem('colorScheme', schemeId);
+ currentColorScheme.value = schemeId;
+ }
+ };
+
+ const initializeColorScheme = (darkMode) => {
+ isDarkMode.value = darkMode;
+ const savedScheme = localStorage.getItem('colorScheme') || 'blue';
+ currentColorScheme.value = savedScheme;
+ applyColorScheme(savedScheme);
+ };
+
+ // Watch for dark mode changes and reapply color scheme
+ Vue.watch(() => isDarkMode.value, (newValue) => {
+ applyColorScheme(currentColorScheme.value);
+ });
+
+ const openColorSchemeModal = () => {
+ showColorSchemeModal.value = true;
+ };
+
+ const closeColorSchemeModal = () => {
+ showColorSchemeModal.value = false;
+ };
+
+ const selectColorScheme = (schemeId) => {
+ applyColorScheme(schemeId);
+ const scheme = colorSchemes[isDarkMode.value ? 'dark' : 'light'].find(s => s.id === schemeId);
+ if (window.showToast && scheme) {
+ window.showToast(`Applied ${scheme.name} theme`, 'fa-palette');
+ }
+ };
+
+ const resetColorScheme = () => {
+ applyColorScheme('blue');
+ if (window.showToast) {
+ const defaultScheme = colorSchemes[isDarkMode.value ? 'dark' : 'light'].find(s => s.id === 'blue');
+ window.showToast(`Reset to default ${defaultScheme?.name || 'Ocean Blue'} theme`, 'fa-undo');
+ }
+ };
+
+ return {
+ showColorSchemeModal,
+ currentColorScheme,
+ colorSchemes,
+ openColorSchemeModal,
+ closeColorSchemeModal,
+ selectColorScheme,
+ resetColorScheme,
+ applyColorScheme,
+ initializeColorScheme
+ };
+}
+
+// Shared Transcripts Modal Composition
+function useSharesModal() {
+ const showSharesListModal = Vue.ref(false);
+ const userShares = Vue.ref([]);
+ const isLoadingShares = Vue.ref(false);
+
+ const openSharesList = async () => {
+ isLoadingShares.value = true;
+ showSharesListModal.value = true;
+ try {
+ const response = await fetch('/api/shares');
+ const data = await response.json();
+ if (!response.ok) throw new Error(data.error || 'Failed to load shared items');
+ userShares.value = data;
+ } catch (error) {
+ if (window.setGlobalError) {
+ window.setGlobalError(`Failed to load shared items: ${error.message}`);
+ } else {
+ console.error('Failed to load shared items:', error);
+ }
+ } finally {
+ isLoadingShares.value = false;
+ }
+ };
+
+ const closeSharesList = () => {
+ showSharesListModal.value = false;
+ };
+
+ const copyShareLink = async (shareId) => {
+ const url = `${window.location.origin}/share/${shareId}`;
+ try {
+ await navigator.clipboard.writeText(url);
+ if (window.showToast) {
+ window.showToast('Share link copied to clipboard', 'fa-link');
+ }
+ } catch (err) {
+ if (window.setGlobalError) {
+ window.setGlobalError('Failed to copy link to clipboard');
+ }
+ }
+ };
+
+ const deleteShare = async (shareId) => {
+ if (!confirm('Are you sure you want to delete this share?')) return;
+
+ try {
+ const response = await fetch(`/api/shares/${shareId}`, {
+ method: 'DELETE',
+ headers: {
+ 'X-CSRFToken': document.querySelector('meta[name="csrf-token"]')?.getAttribute('content')
+ }
+ });
+
+ if (!response.ok) {
+ const data = await response.json();
+ throw new Error(data.error || 'Failed to delete share');
+ }
+
+ userShares.value = userShares.value.filter(share => share.id !== shareId);
+ if (window.showToast) {
+ window.showToast('Share deleted successfully', 'fa-trash');
+ }
+ } catch (error) {
+ if (window.setGlobalError) {
+ window.setGlobalError(`Failed to delete share: ${error.message}`);
+ }
+ }
+ };
+
+ return {
+ showSharesListModal,
+ userShares,
+ isLoadingShares,
+ openSharesList,
+ closeSharesList,
+ copyShareLink,
+ deleteShare
+ };
+}
+
+// User Menu Composition
+function useUserMenu() {
+ const isUserMenuOpen = Vue.ref(false);
+
+ const toggleUserMenu = () => {
+ isUserMenuOpen.value = !isUserMenuOpen.value;
+ };
+
+ const closeUserMenu = () => {
+ isUserMenuOpen.value = false;
+ };
+
+ // Close menu when clicking outside
+ Vue.onMounted(() => {
+ const handleClickOutside = (e) => {
+ const userMenuButton = e.target.closest('button[class*="flex items-center gap"]');
+ const userMenuDropdown = e.target.closest('div[class*="absolute right-0"]');
+ const isUserMenuButtonClick = userMenuButton && userMenuButton.querySelector('i.fa-user-circle');
+
+ if (!isUserMenuButtonClick && !userMenuDropdown) {
+ isUserMenuOpen.value = false;
+ }
+ };
+
+ document.addEventListener('click', handleClickOutside);
+
+ Vue.onUnmounted(() => {
+ document.removeEventListener('click', handleClickOutside);
+ });
+ });
+
+ return {
+ isUserMenuOpen,
+ toggleUserMenu,
+ closeUserMenu
+ };
+}
+
+// Export for use in Vue components
+window.SharedComponents = {
+ useDarkMode,
+ useColorScheme,
+ useSharesModal,
+ useUserMenu
+};
\ No newline at end of file
diff --git a/static/locales/de.json b/static/locales/de.json
new file mode 100644
index 00000000..b05b672b
--- /dev/null
+++ b/static/locales/de.json
@@ -0,0 +1,826 @@
+{
+ "aboutPage": {
+ "aiSummarization": "KI-Zusammenfassung",
+ "aiSummarizationDesc": "OpenRouter- und Ollama-Integration mit benutzerdefinierten Prompts",
+ "asrEnabled": "ASR Aktiviert",
+ "asrEndpoint": "ASR-Endpunkt",
+ "audioTranscription": "Audio-Transkription",
+ "audioTranscriptionDesc": "Whisper API und benutzerdefinierte ASR-Unterstützung mit hoher Genauigkeit",
+ "backend": "Backend",
+ "database": "Datenbank",
+ "deployment": "Bereitstellung",
+ "dockerDescription": "Offizielle Docker Images",
+ "dockerHub": "Docker Hub",
+ "documentation": "Dokumentation",
+ "documentationDescription": "Setup-Anleitungen und Benutzerhandbuch",
+ "endpoint": "Endpunkt",
+ "frontend": "Frontend",
+ "githubDescription": "Quellcode, Issues und Releases",
+ "githubRepository": "GitHub Repository",
+ "inquireMode": "Anfrage-Modus",
+ "inquireModeDesc": "Semantische Suche in all Ihren Aufnahmen",
+ "interactiveChat": "Interaktiver Chat",
+ "interactiveChatDesc": "Chatten Sie mit Ihren Transkriptionen mittels KI",
+ "keyFeatures": "Hauptfunktionen",
+ "largeLanguageModel": "Großes Sprachmodell",
+ "model": "Modell",
+ "projectDescription": "Verwandeln Sie Ihre Audioaufnahmen in organisierte, durchsuchbare Notizen mit KI-gestützten Funktionen für Transkription, Zusammenfassung und interaktiven Chat.",
+ "projectLinks": "Projekt-Links",
+ "sharingExport": "Teilen & Exportieren",
+ "sharingExportDesc": "Teilen Sie Aufnahmen und exportieren Sie in verschiedene Formate",
+ "speakerDiarization": "Sprecher-Diarisierung",
+ "speakerDiarizationDesc": "Automatische Identifikation und Kennzeichnung verschiedener Sprecher",
+ "speechRecognition": "Spracherkennung",
+ "systemConfiguration": "Systemkonfiguration",
+ "tagline": "KI-gestützte Audio-Transkription und Notizen-App",
+ "technologyStack": "Technologie-Stack",
+ "title": "Über",
+ "version": "Version",
+ "whisperApi": "Whisper API"
+ },
+ "aboutPageDetails": {
+ "aiSummarizationDesc": "OpenRouter- und Ollama-Integration mit benutzerdefinierten Prompts",
+ "asrEnabled": "ASR Aktiviert",
+ "asrEndpoint": "ASR-Endpunkt",
+ "audioTranscriptionDesc": "Whisper-API und benutzerdefinierte ASR-Unterstützung mit hoher Genauigkeit",
+ "backend": "Backend",
+ "database": "Datenbank",
+ "deployment": "Bereitstellung",
+ "dockerDescription": "Offizielle Docker-Images",
+ "documentationDescription": "Setup-Anleitungen und Benutzerhandbuch",
+ "endpoint": "Endpunkt",
+ "frontend": "Frontend",
+ "githubDescription": "Quellcode, Issues und Releases",
+ "inquireModeDesc": "Semantische Suche in all Ihren Aufnahmen",
+ "interactiveChatDesc": "Chatten Sie mit Ihren Transkriptionen mithilfe von KI",
+ "model": "Modell",
+ "no": "Nein",
+ "sharingExportDesc": "Aufnahmen teilen und in verschiedene Formate exportieren",
+ "speakerDiarizationDesc": "Verschiedene Sprecher automatisch identifizieren und beschriften",
+ "whisperApi": "Whisper-API",
+ "yes": "Ja"
+ },
+ "account": {
+ "accountActions": "Kontoaktionen",
+ "changePassword": "Passwort ändern",
+ "chooseLanguageForInterface": "Wählen Sie die Sprache für die Anwendungsoberfläche",
+ "companyOrganization": "Unternehmen / Organisation",
+ "completedRecordings": "Abgeschlossen",
+ "email": "E-Mail",
+ "failedRecordings": "Fehlgeschlagen",
+ "fullName": "Vollständiger Name",
+ "goToRecordings": "Zu den Aufnahmen gehen",
+ "interfaceLanguage": "Interface-Sprache",
+ "jobTitle": "Berufsbezeichnung",
+ "languageForSummaries": "Sprache für Titel, Zusammenfassungen und Chat. Leer lassen für Standard (Standardverhalten Ihrer gewählten Modelle).",
+ "languagePreferences": "Spracheinstellungen",
+ "leaveBlankForAutoDetect": "Leer lassen für automatische Erkennung durch den Transkriptionsdienst",
+ "manageSpeakers": "Sprecher verwalten",
+ "personalInfo": "Persönliche Informationen",
+ "preferredOutputLanguage": "Bevorzugte Sprache für Chatbot und Zusammenfassungen",
+ "processingRecordings": "In Bearbeitung",
+ "saveAllPreferences": "Alle Einstellungen speichern",
+ "statistics": "Kontostatistiken",
+ "title": "Kontoinformationen",
+ "totalRecordings": "Gesamte Aufnahmen",
+ "transcriptionLanguage": "Transkriptionssprache",
+ "userDetails": "Benutzerdetails",
+ "username": "Benutzername"
+ },
+ "accountTabs": {
+ "about": "Über",
+ "customPrompts": "Benutzerdefinierte Prompts",
+ "sharedTranscripts": "Geteilte Transkripte",
+ "tagManagement": "Tag-Verwaltung"
+ },
+ "admin": {
+ "title": "Administration",
+ "userMenu": "Benutzermenü"
+ },
+ "adminDashboard": {
+ "aboutInquireMode": "Über den Nachfrage-Modus",
+ "actions": "AKTIONEN",
+ "addNewUser": "Neuen Benutzer Hinzufügen",
+ "addUser": "Benutzer hinzufügen",
+ "additionalContext": "Zusätzlicher Kontext",
+ "admin": "ADMIN",
+ "adminDefaultPrompt": "Admin Standard-Prompt",
+ "adminDefaultPromptDesc": "Der oben konfigurierte Prompt (auf dieser Seite angezeigt)",
+ "adminUser": "Administrator-Benutzer",
+ "allRecordingsProcessed": "Alle Aufnahmen sind verarbeitet!",
+ "available": "Verfügbar",
+ "characters": "Zeichen",
+ "chunkSize": "Chunk-Größe",
+ "complete": "abgeschlossen",
+ "completedRecordings": "Abgeschlossen",
+ "confirmPasswordLabel": "Passwort Bestätigen",
+ "contextNotes": {
+ "jsonConversion": "JSON-Transkripte werden vor dem Senden in ein sauberes Textformat konvertiert",
+ "modelConfig": "Das verwendete Modell wird über die Umgebungsvariable TEXT_MODEL_NAME konfiguriert",
+ "tagPrompts": "Wenn mehrere Tag-Prompts existieren, werden sie in der Reihenfolge zusammengeführt, in der die Tags hinzugefügt wurden",
+ "transcriptLimit": "Transkripte sind auf eine konfigurierbare Zeichenanzahl begrenzt (Standard: 30.000)"
+ },
+ "defaultPromptInfo": "Dieser Standard-Prompt wird für alle Benutzer verwendet, die keinen eigenen benutzerdefinierten Prompt in ihren Kontoeinstellungen festgelegt haben.",
+ "defaultPrompts": "Standard-Prompts",
+ "defaultSummarizationPrompt": "Standard-Zusammenfassungsprompt",
+ "editUser": "Benutzer Bearbeiten",
+ "email": "E-MAIL",
+ "emailLabel": "E-Mail",
+ "embeddingModel": "Einbettungsmodell",
+ "embeddingsStatus": "Einbettungsstatus",
+ "errors": {
+ "failedToLoadPrompt": "Fehler beim Laden des Standard-Prompts",
+ "failedToSavePrompt": "Fehler beim Speichern des Standard-Prompts. Bitte versuchen Sie es erneut.",
+ "invalidFileSize": "Bitte geben Sie eine gültige Größe zwischen 1 und 10000 MB ein",
+ "invalidInteger": "Bitte geben Sie eine gültige Ganzzahl ein",
+ "invalidNumber": "Bitte geben Sie eine gültige Zahl ein",
+ "maxTimeout": "Timeout kann 10 Stunden (36000 Sekunden) nicht überschreiten",
+ "minCharacters": "Bitte geben Sie eine gültige Anzahl von mindestens 1000 Zeichen ein",
+ "minTimeout": "Timeout muss mindestens 60 Sekunden betragen"
+ },
+ "failedRecordings": "Fehlgeschlagen",
+ "id": "ID",
+ "inquireModeDescription": "Der Nachfrage-Modus ermöglicht es Benutzern, mit natürlichen Sprachfragen über mehrere Transkriptionen zu suchen. Es funktioniert, indem Transkriptionen in Chunks aufgeteilt und durchsuchbare Einbettungen mit KI-Modellen erstellt werden.",
+ "languagePreferenceNote": "Hinweis: Wenn der Benutzer eine Ausgabesprachpräferenz festgelegt hat, wird \" Stellen Sie sicher, dass Ihre Antwort in {Sprache} ist.\" hinzugefügt.",
+ "lastUpdated": "Zuletzt aktualisiert",
+ "maxFileSizeHelp": "Maximale Dateigröße in Megabyte (1-10000 MB)",
+ "megabytes": "MB",
+ "minutes": "Minuten",
+ "needProcessing": "Benötigt Verarbeitung",
+ "never": "Nie",
+ "newPasswordLabel": "Neues Passwort (leer lassen, um das aktuelle zu behalten)",
+ "no": "Nein",
+ "noData": "Keine Daten",
+ "noDescriptionAvailable": "Keine Beschreibung verfügbar",
+ "noLimit": "Keine Begrenzung",
+ "notSet": "Nicht festgelegt",
+ "overlap": "Überlappung",
+ "passwordLabel": "Passwort",
+ "pendingRecordings": "Ausstehend",
+ "placeholdersNote": "Platzhalter werden beim Verarbeiten einer Aufnahme durch tatsächliche Werte ersetzt.",
+ "processAllRecordings": "Alle Aufnahmen Verarbeiten",
+ "processNext10": "Nächste 10 Verarbeiten",
+ "processedForInquire": "Für Nachfrage Verarbeitet",
+ "processing": "Verarbeitung läuft...",
+ "processingActions": "Verarbeitungsaktionen",
+ "processingProgress": "Verarbeitungsfortschritt",
+ "processingRecordings": "In Bearbeitung",
+ "promptDescription": "Dieser Prompt wird verwendet, um Zusammenfassungen für alle Aufnahmen zu generieren, wenn Benutzer keinen eigenen Prompt festgelegt haben.",
+ "promptHierarchy": "Prompt-Hierarchie",
+ "promptPriorityDescription": "Das System verwendet die folgende Prioritätsreihenfolge bei der Auswahl des zu verwendenden Prompts:",
+ "promptResetMessage": "Prompt auf Systemstandard zurückgesetzt. Klicken Sie auf \"Änderungen speichern\", um anzuwenden.",
+ "promptSavedSuccessfully": "Standard-Prompt erfolgreich gespeichert!",
+ "recordingStatusDistribution": "Verteilung des Aufnahmestatus",
+ "recordings": "AUFNAHMEN",
+ "recordingsNeedProcessing": "Es gibt {{count}} Aufnahmen, die für den Nachfrage-Modus verarbeitet werden müssen.",
+ "refreshStatus": "Status Aktualisieren",
+ "resetToDefault": "Auf Standard zurücksetzen",
+ "saving": "Speichern...",
+ "searchUsers": "Benutzer suchen...",
+ "seconds": "Sekunden",
+ "settings": {
+ "asrTimeoutDesc": "Maximale Zeit in Sekunden, um auf den Abschluss der ASR-Transkription zu warten. Standard ist 1800 Sekunden (30 Minuten).",
+ "defaultSummaryPromptDesc": "Standard-Zusammenfassungsprompt, der verwendet wird, wenn Benutzer keinen eigenen Prompt festgelegt haben. Dies dient als Basis-Prompt für alle Benutzer.",
+ "maxFileSizeDesc": "Maximale Dateigröße für Audio-Uploads in Megabyte (MB).",
+ "recordingDisclaimerDesc": "Rechtlicher Hinweis, der Benutzern vor Beginn der Aufnahme angezeigt wird. Unterstützt Markdown-Formatierung. Leer lassen zum Deaktivieren.",
+ "transcriptLengthLimitDesc": "Maximale Anzahl von Zeichen, die vom Transkript an das LLM für Zusammenfassung und Chat gesendet werden. Verwenden Sie -1 für kein Limit."
+ },
+ "storageUsed": "GENUTZTER SPEICHER",
+ "summarizationInstructions": "Zusammenfassungsanweisungen",
+ "systemFallback": "System-Fallback",
+ "systemFallbackDesc": "Ein hartcodierter Standard, wenn keiner der oben genannten festgelegt ist",
+ "systemPrompt": "System-Prompt",
+ "systemSettings": "Systemeinstellungen",
+ "systemStatistics": "Systemstatistiken",
+ "tagCustomPrompt": "Tag Benutzerdefinierter Prompt",
+ "tagCustomPromptDesc": "Wenn eine Aufnahme Tags mit benutzerdefinierten Prompts hat",
+ "textSearchOnly": "Nur Textsuche",
+ "timeoutRecommendation": "Empfohlen: 30-120 Minuten für lange Audiodateien",
+ "title": "Administrator-Dashboard",
+ "topUsers": "Top-Benutzer",
+ "topUsersByStorage": "Top-Benutzer nach Speicher",
+ "total": "Gesamt",
+ "totalChunks": "Gesamte Chunks",
+ "totalQueries": "Gesamte Abfragen",
+ "totalRecordings": "Gesamte Aufnahmen",
+ "totalStorage": "Gesamter Speicher",
+ "totalUsers": "Gesamte Benutzer",
+ "updateUser": "Benutzer Aktualisieren",
+ "userCustomPrompt": "Benutzerdefinierter Prompt",
+ "userCustomPromptDesc": "Wenn der Benutzer seinen eigenen Prompt in den Kontoeinstellungen festgelegt hat",
+ "userManagement": "Benutzerverwaltung",
+ "userMessageTemplate": "Benutzernachricht-Vorlage",
+ "username": "BENUTZERNAME",
+ "usernameLabel": "Benutzername",
+ "vectorDimensions": "Vektordimensionen",
+ "vectorStore": "Vektorspeicher",
+ "vectorStoreManagement": "Vektorspeicher-Verwaltung",
+ "vectorStoreUpToDate": "Der Vektorspeicher ist auf dem neuesten Stand.",
+ "viewFullPromptStructure": "Vollständige LLM-Prompt-Struktur anzeigen",
+ "yes": "Ja"
+ },
+ "buttons": {
+ "cancel": "Cancel",
+ "clearAllFilters": "Alle Filter löschen",
+ "clearCompleted": "Abgeschlossene Uploads löschen",
+ "clearSearchText": "Suchtext löschen",
+ "close": "Close",
+ "copyMessage": "Nachricht kopieren",
+ "copyNotes": "Notizen kopieren",
+ "copySummary": "Zusammenfassung kopieren",
+ "copyToClipboard": "In Zwischenablage kopieren",
+ "createTag": "Create Tag",
+ "deleteAll": "Delete All",
+ "deleteSpeaker": "Sprecher löschen",
+ "deleteTag": "Tag löschen",
+ "deleteUser": "Benutzer löschen",
+ "downloadAsWord": "Als Word herunterladen",
+ "downloadChat": "Chat als Word-Dokument herunterladen",
+ "downloadNotes": "Notizen als Word-Dokument herunterladen",
+ "downloadSummary": "Zusammenfassung als Word-Dokument herunterladen",
+ "editNotes": "Notizen bearbeiten",
+ "editSetting": "Einstellung bearbeiten",
+ "editSummary": "Zusammenfassung bearbeiten",
+ "editTag": "Tag bearbeiten",
+ "editTags": "Tags bearbeiten",
+ "editTranscription": "Transkription bearbeiten",
+ "editUser": "Benutzer bearbeiten",
+ "help": "Hilfe",
+ "identifySpeakers": "Sprecher identifizieren",
+ "refresh": "Refresh",
+ "reprocessSummary": "Zusammenfassung neu verarbeiten",
+ "reprocessTranscription": "Transkription neu verarbeiten",
+ "reprocessWithAsr": "Mit ASR neu verarbeiten",
+ "resetStuckProcessing": "Blockierte Verarbeitung zurücksetzen",
+ "saveChanges": "Änderungen speichern",
+ "saveCustomPrompt": "Save Custom Prompt",
+ "shareRecording": "Aufnahme teilen",
+ "toggleTheme": "Design umschalten",
+ "updateTag": "Update Tag"
+ },
+ "changePasswordModal": {
+ "confirmPassword": "Neues Passwort Bestätigen",
+ "currentPassword": "Aktuelles Passwort",
+ "newPassword": "Neues Passwort",
+ "passwordRequirement": "Das Passwort muss mindestens 8 Zeichen lang sein",
+ "title": "Passwort Ändern"
+ },
+ "chat": {
+ "availableAfterTranscription": "Chat wird verfügbar sein, sobald die Transkription abgeschlossen ist",
+ "chatWithTranscription": "Mit Transkription chatten",
+ "clearChat": "Chat löschen",
+ "error": "Nachricht konnte nicht gesendet werden",
+ "noMessages": "Noch keine Nachrichten",
+ "placeholder": "Eine Frage zu dieser Aufnahme stellen...",
+ "placeholderWithHint": "Eine Frage zu dieser Aufnahme stellen... (Enter zum Senden, Strg+Enter für neue Zeile)",
+ "send": "Senden",
+ "suggestedQuestions": "Vorgeschlagene Fragen",
+ "thinking": "Denke nach...",
+ "title": "Chat",
+ "whatAreActionItems": "Was sind die Aktionspunkte?",
+ "whatAreKeyPoints": "Was sind die wichtigsten Punkte?",
+ "whatWasDiscussed": "Was wurde besprochen?",
+ "whoSaidWhat": "Wer hat was gesagt?"
+ },
+ "colorScheme": {
+ "chooseRecording": "Wählen Sie eine Aufnahme aus der Seitenleiste, um ihre Transkription und Zusammenfassung zu sehen",
+ "selectRecording": "Eine Aufnahme auswählen",
+ "subtitle": "Passen Sie Ihre Benutzeroberfläche mit schönen Farbthemen an",
+ "title": "Farbschema"
+ },
+ "common": {
+ "back": "Zurück",
+ "cancel": "Abbrechen",
+ "close": "Schließen",
+ "confirm": "Bestätigen",
+ "delete": "Löschen",
+ "deselectAll": "Alle abwählen",
+ "download": "Herunterladen",
+ "edit": "Bearbeiten",
+ "error": "Fehler",
+ "failed": "Fehlgeschlagen",
+ "filter": "Filter",
+ "info": "Info",
+ "loading": "Lädt...",
+ "new": "Neu",
+ "next": "Weiter",
+ "no": "Nein",
+ "noResults": "Keine Ergebnisse gefunden",
+ "ok": "OK",
+ "or": "Oder",
+ "previous": "Vorherige",
+ "processing": "Verarbeite...",
+ "refresh": "Aktualisieren",
+ "retry": "Wiederholen",
+ "save": "Speichern",
+ "search": "Suchen",
+ "selectAll": "Alle auswählen",
+ "sort": "Sortieren",
+ "success": "Erfolgreich",
+ "untitled": "Unbenannt",
+ "upload": "Hochladen",
+ "warning": "Warnung",
+ "yes": "Ja"
+ },
+ "customPrompts": {
+ "currentDefaultPrompt": "Aktueller Standard-Prompt (Wird verwendet, wenn Sie das obige Feld leer lassen)",
+ "promptDescription": "Dieser Prompt wird verwendet, um Zusammenfassungen Ihrer Transkriptionen zu generieren. Er überschreibt den Standardprompt des Administrators.",
+ "promptPlaceholder": "Beschreiben Sie, wie Ihre Zusammenfassungen strukturiert sein sollen. Leer lassen, um den Standard-Prompt des Administrators zu verwenden.",
+ "summaryGeneration": "Zusammenfassungsgenerierungs-Prompt",
+ "tip1": "Seien Sie spezifisch bezüglich der Abschnitte, die Sie in Ihrer Zusammenfassung wünschen",
+ "tip2": "Verwenden Sie klare Formatierungsanweisungen (z.B. \"Verwenden Sie Aufzählungszeichen\", \"Erstellen Sie nummerierte Listen\")",
+ "tip3": "Geben Sie an, wenn Sie möchten, dass bestimmte Informationen priorisiert werden",
+ "tip4": "Das System wird automatisch den Transkriptionsinhalt an die KI weiterleiten",
+ "tip5": "Ihre Ausgabesprachen-Präferenz (falls gesetzt) wird automatisch angewendet",
+ "tipsTitle": "Tipps für das Schreiben Effektiver Prompts",
+ "yourCustomPrompt": "Ihr Benutzerdefinierter Zusammenfassungs-Prompt"
+ },
+ "deleteAllSpeakersModal": {
+ "confirmMessage": "Sind Sie sicher, dass Sie alle gespeicherten Sprecher löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden.",
+ "title": "Alle Sprecher Löschen"
+ },
+ "dialogs": {
+ "deleteRecording": {
+ "cancel": "Abbrechen",
+ "confirm": "Löschen",
+ "message": "Sind Sie sicher, dass Sie diese Aufnahme löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden.",
+ "title": "Aufnahme löschen"
+ },
+ "deleteShare": {
+ "message": "Sind Sie sicher, dass Sie diese Freigabe löschen möchten? Dadurch wird der Zugriff auf den öffentlichen Link widerrufen.",
+ "title": "Freigabe löschen"
+ },
+ "reprocessTranscription": {
+ "cancel": "Abbrechen",
+ "confirm": "Neu verarbeiten",
+ "message": "Sind Sie sicher, dass Sie diese Transkription neu verarbeiten möchten? Die aktuelle Transkription wird ersetzt.",
+ "title": "Transkription neu verarbeiten"
+ },
+ "unsavedChanges": {
+ "cancel": "Abbrechen",
+ "discard": "Verwerfen",
+ "message": "Sie haben ungespeicherte Änderungen. Möchten Sie diese vor dem Verlassen speichern?",
+ "save": "Speichern",
+ "title": "Ungespeicherte Änderungen"
+ }
+ },
+ "duration": {
+ "hours": "{{count}} Stunde",
+ "hoursPlural": "{{count}} Stunden",
+ "minutes": "{{count}} Minute",
+ "minutesPlural": "{{count}} Minuten",
+ "seconds": "{{count}} Sekunde",
+ "secondsPlural": "{{count}} Sekunden"
+ },
+ "editTagModal": {
+ "asrDefaultSettings": "ASR-Standard-Einstellungen",
+ "asrSettingsDescription": "Diese Einstellungen werden standardmäßig angewendet, wenn dieser Tag mit ASR-Transkription verwendet wird",
+ "color": "Farbe",
+ "colorDescription": "Wählen Sie eine Farbe zur einfachen Identifikation",
+ "createTitle": "Tag Erstellen",
+ "customPrompt": "Benutzerdefinierter Zusammenfassungs-Prompt",
+ "customPromptPlaceholder": "Optional: Benutzerdefinierter Prompt für die Generierung von Zusammenfassungen für Aufnahmen mit diesem Tag",
+ "defaultLanguage": "Standard-Sprache",
+ "defaultPromptPlaceholder": "Leer lassen, um Ihren Standard-Zusammenfassungs-Prompt zu verwenden",
+ "leaveBlankPrompt": "Leer lassen, um Ihren Standard-Zusammenfassungs-Prompt zu verwenden",
+ "maxSpeakers": "Maximale Sprecheranzahl",
+ "minSpeakers": "Minimale Sprecheranzahl",
+ "tagName": "Tag-Name *",
+ "tagNamePlaceholder": "z.B. Meetings, Interviews",
+ "title": "Tag Bearbeiten"
+ },
+ "errors": {
+ "audioRecordingFailed": "音频录制失败。请检查您的麦克风。",
+ "fileTooLarge": "文件太大",
+ "generic": "发生错误",
+ "loadingShares": "Fehler beim Laden der Freigaben",
+ "networkError": "网络错误。请检查您的连接。",
+ "notFound": "未找到",
+ "permissionDenied": "权限被拒绝",
+ "quotaExceeded": "存储配额已超出",
+ "serverError": "服务器错误。请稍后重试。",
+ "summaryFailed": "摘要生成失败。请重试。",
+ "transcriptionFailed": "转录失败。请重试。",
+ "unauthorized": "未授权",
+ "unsupportedFormat": "不支持的文件格式",
+ "uploadFailed": "上传失败。请重试。",
+ "validationError": "验证错误"
+ },
+ "fileSize": {
+ "bytes": "{{count}} B",
+ "gigabytes": "{{count}} GB",
+ "kilobytes": "{{count}} KB",
+ "megabytes": "{{count}} MB"
+ },
+ "form": {
+ "auto": "Auto",
+ "autoDetect": "Automatisch erkennen",
+ "dateFrom": "Von",
+ "dateTo": "Bis",
+ "enterNotesMarkdown": "Notizen im Markdown-Format eingeben...",
+ "enterSummaryMarkdown": "Zusammenfassung im Markdown-Format eingeben...",
+ "language": "Sprache",
+ "maxSpeakers": "Max. Sprecher",
+ "meetingDate": "Meeting-Datum",
+ "minSpeakers": "Min. Sprecher",
+ "minutes": "Minuten",
+ "notes": "Notizen",
+ "notesPlaceholder": "Geben Sie Ihre Notizen im Markdown-Format ein...",
+ "optional": "Optional",
+ "participants": "Teilnehmer",
+ "placeholderAuto": "Auto",
+ "placeholderCharacterLimit": "Zeichenlimit eingeben (z.B. 30000)",
+ "placeholderMinutes": "Minuten",
+ "placeholderOptional": "Optional",
+ "placeholderSeconds": "Sekunden",
+ "placeholderSizeMB": "Größe in MB eingeben",
+ "searchSpeakers": "Sprecher suchen...",
+ "searchTags": "Tags suchen...",
+ "seconds": "Sekunden",
+ "shareNotes": "Notizen teilen",
+ "shareSummary": "Zusammenfassung teilen",
+ "shareableLink": "Teilbarer Link",
+ "summaryPromptPlaceholder": "Standard-Zusammenfassungsprompt eingeben...",
+ "title": "Titel",
+ "yourFullName": "Ihr vollständiger Name"
+ },
+ "help": {
+ "actions": "Aktionen",
+ "activeFilters": "Aktive Filter",
+ "advancedAsrOptions": "Erweiterte ASR-Optionen",
+ "allRecordingsLoaded": "Alle Aufnahmen geladen",
+ "approachingLimit": "Nähert sich {{limit}}MB-Limit",
+ "askAboutTranscription": "Fragen zu dieser Transkription stellen",
+ "audioPlayer": "Audio-Player",
+ "autoIdentify": "Automatisch identifizieren",
+ "bothAudioDesc": "Nimmt Ihre Stimme + Meeting-Teilnehmer auf (empfohlen für Online-Meetings)",
+ "clearFilters": "Filter löschen",
+ "clickToAddNotes": "Klicken um Notizen hinzuzufügen...",
+ "colorRepeats": "Farbe wiederholt sich ab Sprecher {{number}}",
+ "completedFiles": "Abgeschlossene Dateien",
+ "confirmReprocessingTitle": "Neu-Verarbeitung bestätigen",
+ "copyMessage": "Nachricht kopieren",
+ "createPublicLink": "Einen öffentlichen Link erstellen, um diese Aufnahme zu teilen. Teilen ist nur bei sicheren (HTTPS) Verbindungen verfügbar.",
+ "createTags": "Tags erstellen",
+ "discard": "Verwerfen",
+ "endTime": "Ende",
+ "enterNameFor": "Namen eingeben für",
+ "entireScreen": "Gesamter Bildschirm",
+ "estimatedSize": "Geschätzte Größe",
+ "generatingSummary": "Generiere Zusammenfassung...",
+ "howToRecordSystemAudio": "Wie man System-Audio aufnimmt",
+ "importantNote": "Wichtiger Hinweis",
+ "lines": "{{count}} Zeilen",
+ "loadingMore": "Lade weitere Aufnahmen...",
+ "loadingRecordings": "Lade Aufnahmen...",
+ "me": "Ich",
+ "microphoneDesc": "Nimmt nur Ihre Stimme auf",
+ "modelReasoning": "Modell-Begründung",
+ "moreSpeakersThanColors": "Mehr Sprecher als verfügbare Farben",
+ "noDateSet": "Kein Datum gesetzt",
+ "noParticipants": "Keine Teilnehmer",
+ "noTagsCreated": "Noch keine Tags erstellt.",
+ "processingTime": "Verarbeitungszeit",
+ "processingTimeDescription": "Dies kann einige Minuten dauern. Sie können die App während der Verarbeitung weiter verwenden.",
+ "processingTranscription": "Verarbeite Transkription...",
+ "recordSystemSteps1": "Klicken Sie auf \"System-Audio aufnehmen\" oder \"Beides aufnehmen\".",
+ "recordSystemSteps2": "Im Popup wählen Sie",
+ "recordSystemSteps3": "Stellen Sie sicher, dass Sie das Kästchen ankreuzen, das sagt",
+ "recordingFinished": "Aufnahme beendet",
+ "recordingInProgress": "Aufnahme läuft...",
+ "regenerateSummaryAfterNames": "Zusammenfassung nach Namens-Update neu generieren",
+ "sentence": "Satz",
+ "shareSystemAudio": "System-Audio teilen",
+ "shareTabAudio": "Tab-Audio teilen",
+ "sharedOn": "Geteilt am",
+ "sharingWindowNoAudio": "Das Teilen eines \"Fensters\" nimmt kein Audio auf.",
+ "speakerCount": "Sprecher",
+ "specificBrowserTab": "spezifischen Browser-Tab",
+ "startTime": "Start",
+ "systemAudioDesc": "Nimmt Meeting-Teilnehmer und Systemklänge auf",
+ "tagManagement": "Tag-Verwaltung",
+ "thisActionCannotBeUndone": "Diese Aktion kann nicht rückgängig gemacht werden.",
+ "toCaptureAudioFromMeetings": "Um Audio von Besprechungen oder anderen Apps aufzunehmen, müssen Sie Ihren Bildschirm oder einen Browser-Tab freigeben.",
+ "troubleshooting": "Fehlerbehebung",
+ "tryAdjustingSearch": "Versuchen Sie Ihre Suche anzupassen oder",
+ "unsupportedBrowser": "Nicht unterstützter Browser",
+ "untitled": "Unbenannte Aufnahme",
+ "uploadRecordingNotes": "Aufnahme und Notizen hochladen",
+ "whatWillHappen": "Was wird passieren?",
+ "whyNotWorking": "Warum funktioniert es nicht?",
+ "speakers": "Sprecher"
+ },
+ "inquire": {
+ "title": "Nachfragen",
+ "filters": "Filter",
+ "clearAll": "Alle löschen",
+ "tags": "Tags",
+ "speakers": "Sprecher",
+ "dateRange": "Datumsbereich",
+ "from": "Von",
+ "to": "Bis",
+ "noSpeakerData": "Keine Sprecherdaten verfügbar",
+ "speakerRequirement": "Sprecheridentifikation erfordert Aufnahmen mit mehreren Sprechern",
+ "activeFilters": "Aktive Filter:",
+ "tagsCount": "Tags",
+ "speakersCount": "Sprecher",
+ "dateRangeActive": "Datumsbereich aktiv",
+ "filtersActive": "Filter aktiv",
+ "askQuestions": "Fragen Sie zu Ihren Transkriptionen",
+ "selectFilters": "Wählen Sie Filter auf der linken Seite aus, um Ihre Transkriptionen einzugrenzen, und stellen Sie dann Fragen, um Einblicke aus Ihren Aufnahmen zu erhalten.",
+ "exampleQuestions": "Beispielfragen:",
+ "exampleQuestion1": "\"Welche Aktionspunkte wurden besprochen?\"",
+ "exampleQuestion2": "\"Wann haben wir beschlossen, den Zeitplan zu ändern?\"",
+ "exampleQuestion3": "\"Welche Bedenken wurden bezüglich des Budgets geäußert?\"",
+ "exampleQuestion4": "\"Wer war für die Marketing-Aufgaben verantwortlich?\"",
+ "placeholder": "Stellen Sie Fragen zu Ihren gefilterten Transkriptionen...",
+ "sendHint": "Enter zum Senden • Strg+Enter für neue Zeile"
+ },
+ "languages": {
+ "ar": "Arabisch",
+ "de": "Deutsch",
+ "en": "Englisch",
+ "es": "Spanisch",
+ "fr": "Französisch",
+ "hi": "Hindi",
+ "it": "Italienisch",
+ "ja": "Japanisch",
+ "ko": "Koreanisch",
+ "nl": "Niederländisch",
+ "pt": "Portugiesisch",
+ "ru": "Russisch",
+ "zh": "Chinesisch"
+ },
+ "manageSpeakersModal": {
+ "created": "Erstellt",
+ "description": "Verwalten Sie Ihre gespeicherten Sprecher. Diese werden automatisch gespeichert, wenn Sie Sprechernamen in Ihren Aufnahmen verwenden.",
+ "failedToLoad": "Fehler beim Laden der Sprecher",
+ "lastUsed": "Zuletzt verwendet",
+ "loadingSpeakers": "Sprecher werden geladen...",
+ "noSpeakersYet": "Noch keine Sprecher gespeichert",
+ "speakersSaved": "{{count}} Sprecher gespeichert",
+ "speakersWillAppear": "Sprecher erscheinen hier, wenn Sie Sprechernamen in Ihren Aufnahmen verwenden",
+ "times": "mal",
+ "title": "Sprecher Verwalten",
+ "used": "Verwendet"
+ },
+ "messages": {
+ "copiedToClipboard": "In Zwischenablage kopiert",
+ "downloadStarted": "Download gestartet",
+ "notesUpdated": "Notizen erfolgreich aktualisiert",
+ "passwordChanged": "Passwort erfolgreich geändert",
+ "profileUpdated": "Profil erfolgreich aktualisiert",
+ "recordingDeleted": "Aufnahme erfolgreich gelöscht",
+ "recordingSaved": "Aufnahme erfolgreich gespeichert",
+ "settingsSaved": "Einstellungen erfolgreich gespeichert",
+ "summaryGenerated": "Zusammenfassung erfolgreich generiert",
+ "tagAdded": "Tag erfolgreich hinzugefügt",
+ "tagRemoved": "Tag erfolgreich entfernt",
+ "transcriptionUpdated": "Transkription erfolgreich aktualisiert"
+ },
+ "metadata": {
+ "cancelEdit": "Abbrechen",
+ "createdAt": "Erstellt",
+ "duration": "Dauer",
+ "editMetadata": "Metadaten bearbeiten",
+ "fileName": "Dateiname",
+ "fileSize": "Dateigröße",
+ "language": "Sprache",
+ "meetingDate": "Meeting-Datum",
+ "processingTime": "Verarbeitungszeit",
+ "saveMetadata": "Speichern",
+ "status": "Status",
+ "title": "Metadaten",
+ "updatedAt": "Aktualisiert",
+ "wordCount": "Wortanzahl"
+ },
+ "modal": {
+ "colorScheme": "Farbschema",
+ "deleteRecording": "Aufnahme löschen",
+ "editAsrTranscription": "ASR-Transkription bearbeiten",
+ "editRecording": "Aufnahme bearbeiten",
+ "editTags": "Aufnahme-Tags bearbeiten",
+ "editTranscription": "Transkription bearbeiten",
+ "identifySpeakers": "Sprecher identifizieren",
+ "recordingNotice": "Aufnahme-Hinweis",
+ "reprocessSummary": "Zusammenfassung neu verarbeiten",
+ "reprocessTranscription": "Transkription neu verarbeiten",
+ "resetStatus": "Aufnahme-Status zurücksetzen?",
+ "shareRecording": "Aufnahme teilen",
+ "sharedTranscripts": "Meine geteilten Transkripte",
+ "systemAudioHelp": "System-Audio Hilfe"
+ },
+ "nav": {
+ "account": "Konto",
+ "accountSettings": "Kontoeinstellungen",
+ "admin": "Administration",
+ "adminDashboard": "Admin-Dashboard",
+ "darkMode": "Dunkler Modus",
+ "home": "Startseite",
+ "language": "Sprache",
+ "lightMode": "Heller Modus",
+ "newRecording": "Neue Aufnahme",
+ "recording": "Aufnahme",
+ "settings": "Einstellungen",
+ "signOut": "Abmelden",
+ "upload": "Hochladen",
+ "userProfile": "Benutzerprofil"
+ },
+ "notes": {
+ "cancelEdit": "Bearbeitung abbrechen",
+ "characterCount": "{{count}} Zeichen",
+ "characterCountPlural": "{{count}} Zeichen",
+ "editNotes": "Notizen bearbeiten",
+ "lastUpdated": "Zuletzt aktualisiert",
+ "placeholder": "Ihre Notizen hier hinzufügen...",
+ "saveNotes": "Notizen speichern",
+ "title": "Notizen"
+ },
+ "recording": {
+ "acceptDisclaimer": "Ich akzeptiere",
+ "cancelRecording": "Abbrechen",
+ "disclaimer": "Aufnahme-Hinweis",
+ "microphone": "Mikrofon",
+ "microphoneAndSystem": "Mikrofon + System",
+ "microphonePermissionDenied": "Mikrofon-Berechtigung verweigert",
+ "notes": "Notizen",
+ "notesPlaceholder": "Notizen zu dieser Aufnahme hinzufügen...",
+ "pauseRecording": "Pause",
+ "recordingFailed": "Aufnahme fehlgeschlagen",
+ "recordingInProgress": "Aufnahme läuft...",
+ "recordingSize": "Geschätzte Größe",
+ "recordingStopped": "Aufnahme gestoppt",
+ "recordingTime": "Aufnahmezeit",
+ "resumeRecording": "Fortsetzen",
+ "saveRecording": "Aufnahme speichern",
+ "startRecording": "Aufnahme starten",
+ "stopRecording": "Aufnahme stoppen",
+ "systemAudio": "System-Audio",
+ "systemAudioNotSupported": "System-Audio-Aufnahme wird in diesem Browser nicht unterstützt",
+ "title": "Audio-Aufnahme"
+ },
+ "reprocessModal": {
+ "audioReTranscribedFromScratch": "Das Audio wird von Grund auf neu transkribiert. Dies wird auch den Titel und die Zusammenfassung basierend auf der neuen Transkription neu generieren.",
+ "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 des Titels oder der Zusammenfassung werden überschrieben.",
+ "newTitleAndSummary": "Ein neuer Titel und eine neue Zusammenfassung werden basierend auf der vorhandenen Transkription generiert."
+ },
+ "settings": {
+ "apiKeys": "API-Schlüssel",
+ "appearance": "Erscheinungsbild",
+ "changePassword": "Passwort ändern",
+ "dataExport": "Datenexport",
+ "deleteAccount": "Konto löschen",
+ "integrations": "Integrationen",
+ "language": "Sprache",
+ "notifications": "Benachrichtigungen",
+ "preferences": "Einstellungen",
+ "privacy": "Datenschutz",
+ "profile": "Profil",
+ "security": "Sicherheit",
+ "theme": "Design",
+ "title": "Einstellungen",
+ "twoFactorAuth": "Zwei-Faktor-Authentifizierung"
+ },
+ "sharedTranscripts": {
+ "noSharedTranscripts": "Sie haben noch keine Transkripte geteilt."
+ },
+ "sharedTranscriptsPage": {
+ "noSharedTranscripts": "Sie haben noch keine Transkripte geteilt."
+ },
+ "sidebar": {
+ "advancedSearch": "Erweiterte Suche",
+ "dateRange": "Datumsbereich",
+ "filters": "Filter",
+ "highlighted": "Hervorgehoben",
+ "inbox": "Posteingang",
+ "lastMonth": "Letzten Monat",
+ "lastWeek": "Letzte Woche",
+ "loadMore": "Mehr laden",
+ "markAsRead": "Als gelesen markieren",
+ "moveToInbox": "In Posteingang verschieben",
+ "noRecordings": "Keine Aufnahmen gefunden",
+ "older": "Älter",
+ "removeFromHighlighted": "Von Favoriten entfernen",
+ "searchRecordings": "Aufnahmen suchen...",
+ "sortBy": "Sortieren nach",
+ "sortByDate": "Erstellungsdatum",
+ "sortByMeetingDate": "Meeting-Datum",
+ "tags": "Tags",
+ "thisMonth": "Diesen Monat",
+ "thisWeek": "Diese Woche",
+ "today": "Heute",
+ "totalRecordings": "{{count}} Aufnahme",
+ "totalRecordingsPlural": "{{count}} Aufnahmen",
+ "yesterday": "Gestern"
+ },
+ "status": {
+ "completed": "Abgeschlossen",
+ "failed": "Fehlgeschlagen",
+ "processing": "Verarbeitung",
+ "queued": "In Warteschlange",
+ "stuck": "Blockierte Verarbeitung zurücksetzen",
+ "summarizing": "Zusammenfassung",
+ "transcribing": "Transkribierung",
+ "uploading": "Upload"
+ },
+ "summary": {
+ "actionItems": "Aktionspunkte",
+ "cancelEdit": "Bearbeitung abbrechen",
+ "decisions": "Entscheidungen",
+ "editSummary": "Zusammenfassung bearbeiten",
+ "generateSummary": "Zusammenfassung generieren",
+ "keyPoints": "Wichtige Punkte",
+ "noSummary": "Keine Zusammenfassung verfügbar",
+ "participants": "Teilnehmer",
+ "regenerateSummary": "Zusammenfassung neu generieren",
+ "saveSummary": "Zusammenfassung speichern",
+ "summaryFailed": "Generierung der Zusammenfassung fehlgeschlagen",
+ "summaryInProgress": "Zusammenfassung wird generiert...",
+ "title": "Zusammenfassung"
+ },
+ "tagManagement": {
+ "asrDefaults": "ASR-Standards",
+ "createTag": "Tag Erstellen",
+ "customPrompt": "Benutzerdefinierter Prompt",
+ "description": "Organisieren Sie Ihre Aufnahmen mit benutzerdefinierten Tags. Jeder Tag kann seinen eigenen Zusammenfassungs-Prompt und Standard-ASR-Einstellungen haben.",
+ "maxSpeakers": "Max",
+ "minSpeakers": "Min",
+ "noTags": "Sie haben noch keine Tags erstellt."
+ },
+ "tags": {
+ "addTag": "Tag hinzufügen",
+ "clearTagFilter": "Filter löschen",
+ "createTag": "Tag erstellen",
+ "filterByTag": "Nach Tag filtern",
+ "manageAllTags": "Alle Tags verwalten",
+ "noTags": "Keine Tags",
+ "removeTag": "Tag entfernen",
+ "tagColor": "Tag-Farbe",
+ "tagName": "Tag-Name",
+ "title": "Tags"
+ },
+ "tagsModal": {
+ "addTags": "Tags hinzufügen",
+ "currentTags": "Aktuelle Tags",
+ "done": "Fertig",
+ "noTagsAssigned": "Dieser Aufnahme sind keine Tags zugewiesen",
+ "searchTags": "Tags suchen..."
+ },
+ "time": {
+ "dayAgo": "Vor 1 Tag",
+ "daysAgo": "Vor {{count}} Tagen",
+ "hourAgo": "Vor 1 Stunde",
+ "hoursAgo": "Vor {{count}} Stunden",
+ "justNow": "Gerade eben",
+ "minuteAgo": "Vor 1 Minute",
+ "minutesAgo": "Vor {{count}} Minuten",
+ "monthAgo": "Vor 1 Monat",
+ "monthsAgo": "Vor {{count}} Monaten",
+ "weekAgo": "Vor 1 Woche",
+ "weeksAgo": "Vor {{count}} Wochen",
+ "yearAgo": "Vor 1 Jahr",
+ "yearsAgo": "Vor {{count}} Jahren"
+ },
+ "transcription": {
+ "autoIdentifySpeakers": "Sprecher automatisch identifizieren",
+ "simple": "Einfach",
+ "bubble": "Blase",
+ "copy": "Kopieren",
+ "edit": "Bearbeiten",
+ "cancelEdit": "Bearbeitung abbrechen",
+ "copyToClipboard": "In Zwischenablage kopieren",
+ "downloadTranscript": "Transkript herunterladen",
+ "editSpeakers": "Sprecher bearbeiten",
+ "editTranscription": "Transkription bearbeiten",
+ "highlightSearchResults": "Suchergebnisse hervorheben",
+ "noTranscription": "Keine Transkription verfügbar",
+ "regenerateTranscription": "Transkription neu generieren",
+ "saveTranscription": "Transkription speichern",
+ "searchInTranscript": "In Transkript suchen...",
+ "speaker": "Sprecher {{number}}",
+ "speakerLabels": "Sprecher-Labels",
+ "title": "Transkription",
+ "unknownSpeaker": "Unbekannter Sprecher"
+ },
+ "upload": {
+ "chunking": "Große Dateien werden automatisch für die Verarbeitung aufgeteilt",
+ "completed": "Abgeschlossen",
+ "dropzone": "Audio-Dateien hier hineinziehen oder klicken zum Durchsuchen",
+ "failed": "Fehlgeschlagen",
+ "maxFileSize": "Maximale Dateigröße",
+ "queued": "In Warteschlange",
+ "selectFiles": "Dateien auswählen",
+ "summarizing": "Zusammenfasse...",
+ "supportedFormats": "Unterstützt MP3, WAV, M4A, MP4, MOV, AVI, AMR und mehr",
+ "title": "Audio hochladen",
+ "transcribing": "Transkribiere...",
+ "untitled": "Unbenannte Aufnahme",
+ "uploadProgress": "Upload-Fortschritt",
+ "willAutoSummarize": "Wird nach der Transkription automatisch zusammengefasst"
+ },
+ "uploadProgress": {
+ "title": "Upload-Fortschritt"
+ }
+}
\ No newline at end of file
diff --git a/static/locales/en.json b/static/locales/en.json
new file mode 100644
index 00000000..90938294
--- /dev/null
+++ b/static/locales/en.json
@@ -0,0 +1,839 @@
+{
+ "aboutPage": {
+ "aiSummarization": "AI Summarization",
+ "aiSummarizationDesc": "OpenRouter and Ollama integration with custom prompts",
+ "asrEnabled": "ASR Enabled",
+ "asrEndpoint": "ASR Endpoint",
+ "audioTranscription": "Audio Transcription",
+ "audioTranscriptionDesc": "Whisper API and custom ASR support with high accuracy",
+ "backend": "Backend",
+ "database": "Database",
+ "deployment": "Deployment",
+ "dockerDescription": "Official Docker images",
+ "dockerHub": "Docker Hub",
+ "documentation": "Documentation",
+ "documentationDescription": "Setup guides and user manual",
+ "endpoint": "Endpoint",
+ "frontend": "Frontend",
+ "githubDescription": "Source code, issues, and releases",
+ "githubRepository": "GitHub Repository",
+ "inquireMode": "Inquire Mode",
+ "inquireModeDesc": "Semantic search across all your recordings",
+ "interactiveChat": "Interactive Chat",
+ "interactiveChatDesc": "Chat with your transcriptions using AI",
+ "keyFeatures": "Key Features",
+ "largeLanguageModel": "Large Language Model",
+ "model": "Model",
+ "projectDescription": "Transform your audio recordings into organized, searchable notes with AI-powered transcription, summarization, and interactive chat features.",
+ "projectLinks": "Project Links",
+ "sharingExport": "Sharing & Export",
+ "sharingExportDesc": "Share recordings and export to various formats",
+ "speakerDiarization": "Speaker Diarization",
+ "speakerDiarizationDesc": "Identify and label different speakers automatically",
+ "speechRecognition": "Speech Recognition",
+ "systemConfiguration": "System Configuration",
+ "tagline": "AI-Powered Audio Transcription & Note-Taking",
+ "technologyStack": "Technology Stack",
+ "title": "About",
+ "version": "Version",
+ "whisperApi": "Whisper API"
+ },
+ "aboutPageDetails": {
+ "aiSummarizationDesc": "OpenRouter and Ollama integration with custom prompts",
+ "asrEnabled": "ASR Enabled",
+ "asrEndpoint": "ASR Endpoint",
+ "audioTranscriptionDesc": "Whisper API and custom ASR support with high accuracy",
+ "backend": "Backend",
+ "database": "Database",
+ "deployment": "Deployment",
+ "dockerDescription": "Official Docker images",
+ "documentationDescription": "Setup guides and user manual",
+ "endpoint": "Endpoint",
+ "frontend": "Frontend",
+ "githubDescription": "Source code, issues, and releases",
+ "inquireModeDesc": "Semantic search across all your recordings",
+ "interactiveChatDesc": "Chat with your transcriptions using AI",
+ "model": "Model",
+ "no": "No",
+ "sharingExportDesc": "Share recordings and export to various formats",
+ "speakerDiarizationDesc": "Identify and label different speakers automatically",
+ "whisperApi": "Whisper API",
+ "yes": "Yes"
+ },
+ "account": {
+ "accountActions": "Account Actions",
+ "changePassword": "Change Password",
+ "chooseLanguageForInterface": "Choose the language for the application interface",
+ "companyOrganization": "Company / Organization",
+ "completedRecordings": "Completed",
+ "email": "Email",
+ "failedRecordings": "Failed",
+ "fullName": "Full Name",
+ "goToRecordings": "Go to Recordings",
+ "interfaceLanguage": "Interface Language",
+ "jobTitle": "Job Title",
+ "languageForSummaries": "Language for titles, summaries, and chat. Leave blank for default (default behavior of your chosen models).",
+ "languagePreferences": "Language Preferences",
+ "leaveBlankForAutoDetect": "Leave blank for auto-detection by transcription service",
+ "manageSpeakers": "Manage Speakers",
+ "personalInfo": "Personal Information",
+ "preferredOutputLanguage": "Preferred Chatbot and Summarization Language",
+ "processingRecordings": "Processing",
+ "saveAllPreferences": "Save All Preferences",
+ "statistics": "Account Statistics",
+ "title": "Account Information",
+ "totalRecordings": "Total Recordings",
+ "transcriptionLanguage": "Transcription Language",
+ "userDetails": "User Details",
+ "username": "Username"
+ },
+ "accountTabs": {
+ "about": "About",
+ "customPrompts": "Custom Prompts",
+ "sharedTranscripts": "Shared Transcripts",
+ "speakersManagement": "Speakers Management",
+ "tagManagement": "Tag Management"
+ },
+ "admin": {
+ "title": "Admin",
+ "userMenu": "User Menu"
+ },
+ "adminDashboard": {
+ "aboutInquireMode": "About Inquire Mode",
+ "actions": "ACTIONS",
+ "addNewUser": "Add New User",
+ "addUser": "Add User",
+ "additionalContext": "Additional Context",
+ "admin": "ADMIN",
+ "adminDefaultPrompt": "Admin Default Prompt",
+ "adminDefaultPromptDesc": "The prompt configured above (shown on this page)",
+ "adminUser": "Admin User",
+ "allRecordingsProcessed": "All recordings are processed!",
+ "available": "Available",
+ "characters": "characters",
+ "chunkSize": "Chunk Size",
+ "complete": "complete",
+ "completedRecordings": "Completed",
+ "confirmPasswordLabel": "Confirm Password",
+ "contextNotes": {
+ "jsonConversion": "JSON transcripts are converted to clean text format before sending",
+ "modelConfig": "The model used is configured via TEXT_MODEL_NAME environment variable",
+ "tagPrompts": "If multiple tag prompts exist, they are merged in the order tags were added",
+ "transcriptLimit": "Transcripts are limited to a configurable character count (default: 30,000)"
+ },
+ "defaultPromptInfo": "This default prompt will be used for all users who haven't set their own custom prompt in their account settings.",
+ "defaultPrompts": "Default Prompts",
+ "defaultSummarizationPrompt": "Default Summarization Prompt",
+ "editUser": "Edit User",
+ "email": "EMAIL",
+ "emailLabel": "Email",
+ "embeddingModel": "Embedding Model",
+ "embeddingsStatus": "Embeddings Status",
+ "errors": {
+ "failedToLoadPrompt": "Failed to load default prompt",
+ "failedToSavePrompt": "Failed to save default prompt. Please try again.",
+ "invalidFileSize": "Please enter a valid size between 1 and 10000 MB",
+ "invalidInteger": "Please enter a valid integer",
+ "invalidNumber": "Please enter a valid number",
+ "maxTimeout": "Timeout cannot exceed 10 hours (36000 seconds)",
+ "minCharacters": "Please enter a valid number of at least 1000 characters",
+ "minTimeout": "Timeout must be at least 60 seconds"
+ },
+ "failedRecordings": "Failed",
+ "id": "ID",
+ "inquireModeDescription": "Inquire Mode allows users to search across multiple transcriptions using natural language questions. It works by breaking transcriptions into chunks and creating searchable embeddings using AI models.",
+ "languagePreferenceNote": "Note: If the user has set an output language preference, \" Ensure your response is in {language}.\" will be added.",
+ "lastUpdated": "Last updated",
+ "maxFileSizeHelp": "Maximum file size in megabytes (1-10000 MB)",
+ "megabytes": "MB",
+ "minutes": "minutes",
+ "needProcessing": "Need Processing",
+ "never": "Never",
+ "newPasswordLabel": "New Password (leave blank to keep current)",
+ "no": "No",
+ "noData": "No data",
+ "noDescriptionAvailable": "No description available",
+ "noLimit": "No Limit",
+ "notSet": "Not set",
+ "overlap": "Overlap",
+ "passwordLabel": "Password",
+ "pendingRecordings": "Pending",
+ "placeholdersNote": "Placeholders are replaced with actual values when processing a recording.",
+ "processAllRecordings": "Process All Recordings",
+ "processNext10": "Process Next 10",
+ "processedForInquire": "Processed for Inquire",
+ "processing": "Processing...",
+ "processingActions": "Processing Actions",
+ "processingProgress": "Processing Progress",
+ "processingRecordings": "Processing",
+ "promptDescription": "This prompt will be used to generate summaries for all recordings when users haven't set their own prompt.",
+ "promptHierarchy": "Prompt Hierarchy",
+ "promptPriorityDescription": "The system uses the following priority order when selecting which prompt to use:",
+ "promptResetMessage": "Prompt reset to system default. Click \"Save Changes\" to apply.",
+ "promptSavedSuccessfully": "Default prompt saved successfully!",
+ "recordingStatusDistribution": "Recording Status Distribution",
+ "recordings": "RECORDINGS",
+ "recordingsNeedProcessing": "There are {{count}} recordings that need to be processed for Inquire Mode.",
+ "refreshStatus": "Refresh Status",
+ "resetToDefault": "Reset to Default",
+ "saving": "Saving...",
+ "searchUsers": "Search users...",
+ "seconds": "seconds",
+ "settings": {
+ "asrTimeoutDesc": "Maximum time in seconds to wait for ASR transcription to complete. Default is 1800 seconds (30 minutes).",
+ "defaultSummaryPromptDesc": "Default summarization prompt used when users have not set their own prompt. This serves as the base prompt for all users.",
+ "maxFileSizeDesc": "Maximum file size allowed for audio uploads in megabytes (MB).",
+ "recordingDisclaimerDesc": "Legal disclaimer shown to users before recording starts. Supports Markdown formatting. Leave empty to disable.",
+ "transcriptLengthLimitDesc": "Maximum number of characters to send from transcript to LLM for summarization and chat. Use -1 for no limit."
+ },
+ "storageUsed": "STORAGE USED",
+ "summarizationInstructions": "Summarization Instructions",
+ "systemFallback": "System Fallback",
+ "systemFallbackDesc": "A hardcoded default if none of the above are set",
+ "systemPrompt": "System Prompt",
+ "systemSettings": "System Settings",
+ "systemStatistics": "System Statistics",
+ "tagCustomPrompt": "Tag Custom Prompt",
+ "tagCustomPromptDesc": "If a recording has tags with custom prompts",
+ "textSearchOnly": "Text Search Only",
+ "timeoutRecommendation": "Recommended: 30-120 minutes for long audio files",
+ "title": "Admin Dashboard",
+ "topUsers": "Top Users",
+ "topUsersByStorage": "Top Users by Storage",
+ "total": "Total",
+ "totalChunks": "Total Chunks",
+ "totalQueries": "Total Queries",
+ "totalRecordings": "Total Recordings",
+ "totalStorage": "Total Storage",
+ "totalUsers": "Total Users",
+ "updateUser": "Update User",
+ "userCustomPrompt": "User Custom Prompt",
+ "userCustomPromptDesc": "If the user has set their own prompt in account settings",
+ "userManagement": "User Management",
+ "userMessageTemplate": "User Message Template",
+ "username": "USERNAME",
+ "usernameLabel": "Username",
+ "vectorDimensions": "Vector Dimensions",
+ "vectorStore": "Vector Store",
+ "vectorStoreManagement": "Vector Store Management",
+ "vectorStoreUpToDate": "The vector store is up to date.",
+ "viewFullPromptStructure": "View Full LLM Prompt Structure",
+ "yes": "Yes"
+ },
+ "buttons": {
+ "cancel": "Cancel",
+ "clearAllFilters": "Clear all filters",
+ "clearCompleted": "Clear completed uploads",
+ "clearSearchText": "Clear search text",
+ "close": "Close",
+ "copyMessage": "Copy message",
+ "copyNotes": "Copy notes",
+ "copySummary": "Copy summary",
+ "copyToClipboard": "Copy to clipboard",
+ "createTag": "Create Tag",
+ "deleteAll": "Delete All",
+ "deleteSpeaker": "Delete speaker",
+ "deleteTag": "Delete tag",
+ "deleteUser": "Delete User",
+ "downloadAsWord": "Download as Word",
+ "downloadChat": "Download chat as Word document",
+ "downloadNotes": "Download Notes as Word Document",
+ "downloadSummary": "Download Summary as Word Document",
+ "editNotes": "Edit notes",
+ "editSetting": "Edit Setting",
+ "editSummary": "Edit summary",
+ "editTag": "Edit tag",
+ "editTags": "Edit Tags",
+ "editTranscription": "Edit transcription",
+ "editUser": "Edit User",
+ "help": "Help",
+ "identifySpeakers": "Identify speakers",
+ "refresh": "Refresh",
+ "reprocessSummary": "Reprocess summary",
+ "reprocessTranscription": "Reprocess transcription",
+ "reprocessWithAsr": "Reprocess with ASR",
+ "resetStuckProcessing": "Reset stuck processing",
+ "saveChanges": "Save Changes",
+ "saveCustomPrompt": "Save Custom Prompt",
+ "shareRecording": "Share recording",
+ "toggleTheme": "Toggle theme",
+ "updateTag": "Update Tag"
+ },
+ "changePasswordModal": {
+ "confirmPassword": "Confirm New Password",
+ "currentPassword": "Current Password",
+ "newPassword": "New Password",
+ "passwordRequirement": "Password must be at least 8 characters long",
+ "title": "Change Password"
+ },
+ "chat": {
+ "availableAfterTranscription": "Chat will be available once transcription is complete",
+ "chatWithTranscription": "Chat with Transcription",
+ "clearChat": "Clear Chat",
+ "error": "Failed to send message",
+ "noMessages": "No messages yet",
+ "placeholder": "Ask a question about this recording...",
+ "placeholderWithHint": "Ask a question about this recording... (Enter to send, Ctrl+Enter for new line)",
+ "send": "Send",
+ "suggestedQuestions": "Suggested Questions",
+ "thinking": "Thinking...",
+ "title": "Chat",
+ "whatAreActionItems": "What are the action items?",
+ "whatAreKeyPoints": "What are the key points?",
+ "whatWasDiscussed": "What was discussed?",
+ "whoSaidWhat": "Who said what?"
+ },
+ "colorScheme": {
+ "chooseRecording": "Choose a recording from the sidebar to view its transcription and summary",
+ "selectRecording": "Select a Recording",
+ "subtitle": "Customize your interface with beautiful color themes",
+ "title": "Color Scheme"
+ },
+ "common": {
+ "back": "Back",
+ "cancel": "Cancel",
+ "close": "Close",
+ "confirm": "Confirm",
+ "delete": "Delete",
+ "deselectAll": "Deselect All",
+ "download": "Download",
+ "edit": "Edit",
+ "error": "Error",
+ "failed": "Failed",
+ "filter": "Filter",
+ "info": "Info",
+ "loading": "Loading...",
+ "new": "New",
+ "next": "Next",
+ "no": "No",
+ "noResults": "No results found",
+ "ok": "OK",
+ "or": "Or",
+ "previous": "Previous",
+ "processing": "Processing...",
+ "refresh": "Refresh",
+ "retry": "Retry",
+ "save": "Save",
+ "search": "Search",
+ "selectAll": "Select All",
+ "sort": "Sort",
+ "success": "Success",
+ "untitled": "Untitled",
+ "upload": "Upload",
+ "warning": "Warning",
+ "yes": "Yes"
+ },
+ "customPrompts": {
+ "currentDefaultPrompt": "Current Default Prompt (Used if you leave the above blank)",
+ "promptDescription": "This prompt will be used to generate summaries for your transcriptions. It overrides the admin's default prompt.",
+ "promptPlaceholder": "Describe how you want your summaries structured. Leave blank to use the admin's default prompt.",
+ "summaryGeneration": "Summary Generation Prompt",
+ "tip1": "Be specific about the sections you want in your summary",
+ "tip2": "Use clear formatting instructions (e.g., \"Use bullet points\", \"Create numbered lists\")",
+ "tip3": "Specify if you want certain information prioritized",
+ "tip4": "The system will automatically provide the transcript content to the AI",
+ "tip5": "Your output language preference (if set) will be applied automatically",
+ "tipsTitle": "Tips for Writing Effective Prompts",
+ "yourCustomPrompt": "Your Custom Summary Prompt"
+ },
+ "deleteAllSpeakersModal": {
+ "confirmMessage": "Are you sure you want to delete all saved speakers? This action cannot be undone.",
+ "title": "Delete All Speakers"
+ },
+ "dialogs": {
+ "deleteRecording": {
+ "cancel": "Cancel",
+ "confirm": "Delete",
+ "message": "Are you sure you want to delete this recording? This action cannot be undone.",
+ "title": "Delete Recording"
+ },
+ "deleteShare": {
+ "message": "Are you sure you want to delete this share? This will revoke access to the public link.",
+ "title": "Delete Share"
+ },
+ "reprocessTranscription": {
+ "cancel": "Cancel",
+ "confirm": "Reprocess",
+ "message": "Are you sure you want to reprocess this transcription? The current transcription will be replaced.",
+ "title": "Reprocess Transcription"
+ },
+ "unsavedChanges": {
+ "cancel": "Cancel",
+ "discard": "Discard",
+ "message": "You have unsaved changes. Do you want to save them before leaving?",
+ "save": "Save",
+ "title": "Unsaved Changes"
+ }
+ },
+ "duration": {
+ "hours": "{{count}} hour",
+ "hoursPlural": "{{count}} hours",
+ "minutes": "{{count}} minute",
+ "minutesPlural": "{{count}} minutes",
+ "seconds": "{{count}} second",
+ "secondsPlural": "{{count}} seconds"
+ },
+ "editTagModal": {
+ "asrDefaultSettings": "ASR Default Settings",
+ "asrSettingsDescription": "These settings will be applied by default when using this tag with ASR transcription",
+ "color": "Color",
+ "colorDescription": "Choose a color for easy identification",
+ "createTitle": "Create Tag",
+ "customPrompt": "Custom Summary Prompt",
+ "customPromptPlaceholder": "Optional: Custom prompt for generating summaries for recordings with this tag",
+ "defaultLanguage": "Default Language",
+ "defaultPromptPlaceholder": "Leer lassen, um Ihren Standard-Zusammenfassungs-Prompt zu verwenden",
+ "leaveBlankPrompt": "Leave blank to use your default summary prompt",
+ "maxSpeakers": "Max Speakers",
+ "minSpeakers": "Min Speakers",
+ "tagName": "Tag Name *",
+ "tagNamePlaceholder": "e.g., Meetings, Interviews",
+ "title": "Edit Tag"
+ },
+ "errors": {
+ "audioRecordingFailed": "音频录制失败。请检查您的麦克风。",
+ "fileTooLarge": "文件太大",
+ "generic": "发生错误",
+ "loadingShares": "Error loading shares",
+ "networkError": "网络错误。请检查您的连接。",
+ "notFound": "未找到",
+ "permissionDenied": "权限被拒绝",
+ "quotaExceeded": "存储配额已超出",
+ "serverError": "服务器错误。请稍后重试。",
+ "summaryFailed": "摘要生成失败。请重试。",
+ "transcriptionFailed": "转录失败。请重试。",
+ "unauthorized": "未授权",
+ "unsupportedFormat": "不支持的文件格式",
+ "uploadFailed": "上传失败。请重试。",
+ "validationError": "验证错误"
+ },
+ "fileSize": {
+ "bytes": "{{count}} B",
+ "gigabytes": "{{count}} GB",
+ "kilobytes": "{{count}} KB",
+ "megabytes": "{{count}} MB"
+ },
+ "form": {
+ "auto": "Auto",
+ "autoDetect": "Auto-detect",
+ "dateFrom": "From",
+ "dateTo": "To",
+ "enterNotesMarkdown": "Enter notes in Markdown format...",
+ "enterSummaryMarkdown": "Enter summary in Markdown format...",
+ "language": "Language",
+ "maxSpeakers": "Max Speakers",
+ "meetingDate": "Meeting Date",
+ "minSpeakers": "Min Speakers",
+ "minutes": "Minutes",
+ "notes": "Notes",
+ "notesPlaceholder": "Type your notes in Markdown format...",
+ "optional": "Optional",
+ "participants": "Participants",
+ "placeholderAuto": "Auto",
+ "placeholderCharacterLimit": "Enter character limit (e.g., 30000)",
+ "placeholderMinutes": "Minutes",
+ "placeholderOptional": "Optional",
+ "placeholderSeconds": "Seconds",
+ "placeholderSizeMB": "Enter size in MB",
+ "searchSpeakers": "Search speakers...",
+ "searchTags": "Search tags...",
+ "seconds": "Seconds",
+ "shareNotes": "Share Notes",
+ "shareSummary": "Share Summary",
+ "shareableLink": "Shareable Link",
+ "summaryPromptPlaceholder": "Enter the default summarization prompt...",
+ "title": "Title",
+ "yourFullName": "Your full name"
+ },
+ "help": {
+ "actions": "Actions",
+ "activeFilters": "Active filters",
+ "advancedAsrOptions": "Advanced ASR Options",
+ "allRecordingsLoaded": "All recordings loaded",
+ "approachingLimit": "Approaching {{limit}}MB limit",
+ "askAboutTranscription": "Ask questions about this transcription",
+ "audioPlayer": "Audio Player",
+ "autoIdentify": "Auto Identify",
+ "bothAudioDesc": "Records your voice + meeting participants (recommended for online meetings)",
+ "clearFilters": "clear filters",
+ "clickToAddNotes": "Click to add notes...",
+ "colorRepeats": "Color repeats from speaker {{number}}",
+ "completedFiles": "Completed Files",
+ "confirmReprocessingTitle": "Confirm Reprocessing",
+ "copyMessage": "Copy message",
+ "createPublicLink": "Create a public link to share this recording. Sharing is only available on secure (HTTPS) connections.",
+ "createTags": "Create tags",
+ "discard": "Discard",
+ "endTime": "End",
+ "enterNameFor": "Enter name for",
+ "entireScreen": "Entire Screen",
+ "estimatedSize": "Estimated size",
+ "generatingSummary": "Generating summary...",
+ "howToRecordSystemAudio": "How to Record System Audio",
+ "importantNote": "Important note",
+ "lines": "{{count}} lines",
+ "loadingMore": "Loading more recordings...",
+ "loadingRecordings": "Loading recordings...",
+ "me": "Me",
+ "microphoneDesc": "Records your voice only",
+ "modelReasoning": "Model Reasoning",
+ "moreSpeakersThanColors": "More speakers than available colors",
+ "noDateSet": "No date set",
+ "noParticipants": "No participants",
+ "noTagsCreated": "No tags created yet.",
+ "processingTime": "Processing time",
+ "processingTimeDescription": "This may take a few minutes to complete. You can continue using the app while processing.",
+ "processingTranscription": "Processing transcription...",
+ "recordSystemSteps1": "Click \"Record System Audio\" or \"Record Both\".",
+ "recordSystemSteps2": "In the popup, choose",
+ "recordSystemSteps3": "Make sure to check the box that says",
+ "recordingFinished": "Recording finished",
+ "recordingInProgress": "Recording in progress...",
+ "regenerateSummaryAfterNames": "Regenerate summary after updating names",
+ "sentence": "Sentence",
+ "shareSystemAudio": "Share system audio",
+ "shareTabAudio": "Share tab audio",
+ "sharedOn": "Shared on",
+ "sharingWindowNoAudio": "Sharing a \"Window\" will not capture audio.",
+ "speakerCount": "Speaker",
+ "specificBrowserTab": "specific browser tab",
+ "startTime": "Start",
+ "systemAudioDesc": "Records meeting participants and system sounds",
+ "tagManagement": "Tag Management",
+ "thisActionCannotBeUndone": "This action cannot be undone.",
+ "toCaptureAudioFromMeetings": "To capture audio from meetings or other apps, you must share your screen or a browser tab.",
+ "troubleshooting": "Troubleshooting",
+ "tryAdjustingSearch": "Try adjusting your search or",
+ "unsupportedBrowser": "Unsupported Browser",
+ "untitled": "Untitled Recording",
+ "uploadRecordingNotes": "Upload Recording & Notes",
+ "whatWillHappen": "What will happen?",
+ "whyNotWorking": "Why isn't it working?",
+ "youHaveXSpeakers": "You have {{count}} speakers, but only 8 unique colors are available. Colors will repeat after the 8th speaker.",
+ "speakers": "Speakers"
+ },
+ "inquire": {
+ "title": "Inquire",
+ "filters": "Filters",
+ "clearAll": "Clear All",
+ "tags": "Tags",
+ "speakers": "Speakers",
+ "dateRange": "Date Range",
+ "from": "From",
+ "to": "To",
+ "noSpeakerData": "No speaker data available",
+ "speakerRequirement": "Speaker identification requires recordings with multiple speakers",
+ "activeFilters": "Active Filters:",
+ "tagsCount": "tags",
+ "speakersCount": "speakers",
+ "dateRangeActive": "Date range active",
+ "filtersActive": "Filters active",
+ "askQuestions": "Ask Questions About Your Transcriptions",
+ "selectFilters": "Select filters on the left to narrow down your transcriptions, then ask questions to get insights from your recordings.",
+ "exampleQuestions": "Example Questions:",
+ "exampleQuestion1": "\"What action items were discussed?\"",
+ "exampleQuestion2": "\"When did we decide to change the timeline?\"",
+ "exampleQuestion3": "\"What concerns were raised about the budget?\"",
+ "exampleQuestion4": "\"Who was responsible for the marketing tasks?\"",
+ "placeholder": "Ask questions about your filtered transcriptions...",
+ "sendHint": "Press Enter to send • Ctrl+Enter for new line"
+ },
+ "languages": {
+ "ar": "Arabic",
+ "de": "German",
+ "en": "English",
+ "es": "Spanish",
+ "fr": "French",
+ "hi": "Hindi",
+ "it": "Italian",
+ "ja": "Japanese",
+ "ko": "Korean",
+ "nl": "Dutch",
+ "pt": "Portuguese",
+ "ru": "Russian",
+ "zh": "Chinese"
+ },
+ "speakersManagement": {
+ "description": "Manage your saved speakers. These are automatically saved when you use speaker names in your recordings.",
+ "loadingSpeakers": "Loading speakers...",
+ "failedToLoad": "Failed to load speakers",
+ "noSpeakersYet": "No speakers saved yet",
+ "speakersWillAppear": "Speakers will appear here when you use speaker names in your recordings",
+ "totalSpeakers": "speakers saved",
+ "usedTimes": "Used",
+ "lastUsed": "Last used",
+ "created": "Created"
+ },
+ "manageSpeakersModal": {
+ "created": "Created",
+ "description": "Manage your saved speakers. These are automatically saved when you use speaker names in your recordings.",
+ "failedToLoad": "Failed to load speakers",
+ "lastUsed": "Last used",
+ "loadingSpeakers": "Loading speakers...",
+ "noSpeakersYet": "No speakers saved yet",
+ "speakersSaved": "{{count}} speakers saved",
+ "speakersWillAppear": "Speakers will appear here when you use speaker names in your recordings",
+ "times": "times",
+ "title": "Manage Speakers",
+ "used": "Used"
+ },
+ "messages": {
+ "copiedToClipboard": "Copied to clipboard",
+ "downloadStarted": "Download started",
+ "notesUpdated": "Notes updated successfully",
+ "passwordChanged": "Password changed successfully",
+ "profileUpdated": "Profile updated successfully",
+ "recordingDeleted": "Recording deleted successfully",
+ "recordingSaved": "Recording saved successfully",
+ "settingsSaved": "Settings saved successfully",
+ "summaryGenerated": "Summary generated successfully",
+ "tagAdded": "Tag added successfully",
+ "tagRemoved": "Tag removed successfully",
+ "transcriptionUpdated": "Transcription updated successfully"
+ },
+ "metadata": {
+ "cancelEdit": "Cancel",
+ "createdAt": "Created",
+ "duration": "Duration",
+ "editMetadata": "Edit Metadata",
+ "fileName": "File Name",
+ "fileSize": "File Size",
+ "language": "Language",
+ "meetingDate": "Meeting Date",
+ "processingTime": "Processing Time",
+ "saveMetadata": "Save",
+ "status": "Status",
+ "title": "Metadata",
+ "updatedAt": "Updated",
+ "wordCount": "Word Count"
+ },
+ "modal": {
+ "colorScheme": "Color Scheme",
+ "deleteRecording": "Delete Recording",
+ "editAsrTranscription": "Edit ASR Transcription",
+ "editRecording": "Edit Recording",
+ "editTags": "Edit Recording Tags",
+ "editTranscription": "Edit Transcription",
+ "identifySpeakers": "Identify Speakers",
+ "recordingNotice": "Recording Notice",
+ "reprocessSummary": "Reprocess Summary",
+ "reprocessTranscription": "Reprocess Transcription",
+ "resetStatus": "Reset Recording Status?",
+ "shareRecording": "Share Recording",
+ "sharedTranscripts": "My Shared Transcripts",
+ "systemAudioHelp": "System Audio Help"
+ },
+ "nav": {
+ "account": "Account",
+ "accountSettings": "Account Settings",
+ "admin": "Admin",
+ "adminDashboard": "Admin Dashboard",
+ "darkMode": "Dark Mode",
+ "home": "Home",
+ "language": "Language",
+ "lightMode": "Light Mode",
+ "newRecording": "New Recording",
+ "recording": "Recording",
+ "settings": "Settings",
+ "signOut": "Sign Out",
+ "upload": "Upload",
+ "userProfile": "User Profile"
+ },
+ "notes": {
+ "cancelEdit": "Cancel Edit",
+ "characterCount": "{{count}} character",
+ "characterCountPlural": "{{count}} characters",
+ "editNotes": "Edit Notes",
+ "lastUpdated": "Last updated",
+ "placeholder": "Add your notes here...",
+ "saveNotes": "Save Notes",
+ "title": "Notes"
+ },
+ "recording": {
+ "acceptDisclaimer": "I Accept",
+ "cancelRecording": "Cancel",
+ "disclaimer": "Recording Disclaimer",
+ "microphone": "Microphone",
+ "microphoneAndSystem": "Microphone + System",
+ "microphonePermissionDenied": "Microphone permission denied",
+ "notes": "Notes",
+ "notesPlaceholder": "Add notes about this recording...",
+ "pauseRecording": "Pause",
+ "recordingFailed": "Recording failed",
+ "recordingInProgress": "Recording in progress...",
+ "recordingSize": "Estimated Size",
+ "recordingStopped": "Recording stopped",
+ "recordingTime": "Recording Time",
+ "resumeRecording": "Resume",
+ "saveRecording": "Save Recording",
+ "startRecording": "Start Recording",
+ "stopRecording": "Stop Recording",
+ "systemAudio": "System Audio",
+ "systemAudioNotSupported": "System audio recording is not supported in this browser",
+ "title": "Audio Recording"
+ },
+ "reprocessModal": {
+ "audioReTranscribedFromScratch": "The audio will be re-transcribed from scratch. This will also regenerate the title and summary based on the new transcription.",
+ "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 title or summary will be overwritten.",
+ "newTitleAndSummary": "A new title and summary will be generated based on the existing transcription."
+ },
+ "settings": {
+ "apiKeys": "API Keys",
+ "appearance": "Appearance",
+ "changePassword": "Change Password",
+ "dataExport": "Data Export",
+ "deleteAccount": "Delete Account",
+ "integrations": "Integrations",
+ "language": "Language",
+ "notifications": "Notifications",
+ "preferences": "Preferences",
+ "privacy": "Privacy",
+ "profile": "Profile",
+ "security": "Security",
+ "theme": "Theme",
+ "title": "Settings",
+ "twoFactorAuth": "Two-Factor Authentication"
+ },
+ "sharedTranscripts": {
+ "noSharedTranscripts": "You haven't shared any transcripts yet."
+ },
+ "sharedTranscriptsPage": {
+ "noSharedTranscripts": "You have not shared any transcripts yet."
+ },
+ "sidebar": {
+ "advancedSearch": "Advanced Search",
+ "dateRange": "Date Range",
+ "filters": "Filters",
+ "highlighted": "Highlighted",
+ "inbox": "Inbox",
+ "lastMonth": "Last Month",
+ "lastWeek": "Last Week",
+ "loadMore": "Load More",
+ "markAsRead": "Mark as read",
+ "moveToInbox": "Move to Inbox",
+ "noRecordings": "No recordings found",
+ "older": "Older",
+ "removeFromHighlighted": "Remove from starred",
+ "searchRecordings": "Search recordings...",
+ "sortBy": "Sort By",
+ "sortByDate": "Created Date",
+ "sortByMeetingDate": "Meeting Date",
+ "tags": "Tags",
+ "thisMonth": "This Month",
+ "thisWeek": "This Week",
+ "today": "Today",
+ "totalRecordings": "{{count}} recording",
+ "totalRecordingsPlural": "{{count}} recordings",
+ "yesterday": "Yesterday"
+ },
+ "status": {
+ "completed": "Completed",
+ "failed": "Failed",
+ "processing": "Processing",
+ "queued": "Queued",
+ "stuck": "Reset stuck processing",
+ "summarizing": "Summarizing",
+ "transcribing": "Transcribing",
+ "uploading": "Uploading"
+ },
+ "summary": {
+ "actionItems": "Action Items",
+ "cancelEdit": "Cancel Edit",
+ "decisions": "Decisions",
+ "editSummary": "Edit Summary",
+ "generateSummary": "Generate Summary",
+ "keyPoints": "Key Points",
+ "noSummary": "No summary available",
+ "participants": "Participants",
+ "regenerateSummary": "Regenerate Summary",
+ "saveSummary": "Save Summary",
+ "summaryFailed": "Summary generation failed",
+ "summaryInProgress": "Summary generation in progress...",
+ "title": "Summary"
+ },
+ "tagManagement": {
+ "asrDefaults": "ASR Defaults",
+ "createTag": "Create Tag",
+ "customPrompt": "Custom Prompt",
+ "description": "Organize your recordings with custom tags. Each tag can have its own summary prompt and default ASR settings.",
+ "maxSpeakers": "Max",
+ "minSpeakers": "Min",
+ "noTags": "You haven't created any tags yet."
+ },
+ "tags": {
+ "addTag": "Add Tag",
+ "clearTagFilter": "Clear filter",
+ "createTag": "Create Tag",
+ "filterByTag": "Filter by tag",
+ "manageAllTags": "Manage All Tags",
+ "noTags": "No tags",
+ "removeTag": "Remove Tag",
+ "tagColor": "Tag Color",
+ "tagName": "Tag Name",
+ "title": "Tags"
+ },
+ "tagsModal": {
+ "addTags": "Add Tags",
+ "currentTags": "Current Tags",
+ "done": "Done",
+ "noTagsAssigned": "No tags assigned to this recording",
+ "searchTags": "Search tags..."
+ },
+ "time": {
+ "dayAgo": "1 day ago",
+ "daysAgo": "{{count}} days ago",
+ "hourAgo": "1 hour ago",
+ "hoursAgo": "{{count}} hours ago",
+ "justNow": "Just now",
+ "minuteAgo": "1 minute ago",
+ "minutesAgo": "{{count}} minutes ago",
+ "monthAgo": "1 month ago",
+ "monthsAgo": "{{count}} months ago",
+ "weekAgo": "1 week ago",
+ "weeksAgo": "{{count}} weeks ago",
+ "yearAgo": "1 year ago",
+ "yearsAgo": "{{count}} years ago"
+ },
+ "transcription": {
+ "autoIdentifySpeakers": "Auto-identify Speakers",
+ "simple": "Simple",
+ "bubble": "Bubble",
+ "copy": "Copy",
+ "edit": "Edit",
+ "cancelEdit": "Cancel Edit",
+ "copyToClipboard": "Copy to Clipboard",
+ "downloadTranscript": "Download Transcript",
+ "editSpeakers": "Edit Speakers",
+ "editTranscription": "Edit Transcription",
+ "highlightSearchResults": "Highlight search results",
+ "noTranscription": "No transcription available",
+ "regenerateTranscription": "Regenerate Transcription",
+ "saveTranscription": "Save Transcription",
+ "searchInTranscript": "Search in transcript...",
+ "speaker": "Speaker {{number}}",
+ "speakerLabels": "Speaker Labels",
+ "title": "Transcription",
+ "unknownSpeaker": "Unknown Speaker"
+ },
+ "upload": {
+ "chunking": "Large files will be automatically chunked for processing",
+ "completed": "Completed",
+ "dropzone": "Drag and drop audio files here, or click to browse",
+ "failed": "Failed",
+ "maxFileSize": "Maximum file size",
+ "queued": "Queued",
+ "selectFiles": "Select Files",
+ "summarizing": "Summarizing...",
+ "supportedFormats": "Supports MP3, WAV, M4A, MP4, MOV, AVI, AMR, and more",
+ "title": "Upload Audio",
+ "transcribing": "Transcribing...",
+ "untitled": "Untitled Recording",
+ "uploadProgress": "Upload Progress",
+ "willAutoSummarize": "Will auto-summarize after transcription"
+ },
+ "uploadProgress": {
+ "title": "Upload Progress"
+ }
+}
\ No newline at end of file
diff --git a/static/locales/es.json b/static/locales/es.json
new file mode 100644
index 00000000..f89c81bf
--- /dev/null
+++ b/static/locales/es.json
@@ -0,0 +1,826 @@
+{
+ "aboutPage": {
+ "aiSummarization": "Resumen con IA",
+ "aiSummarizationDesc": "Integración de OpenRouter y Ollama con prompts personalizados",
+ "asrEnabled": "ASR Habilitado",
+ "asrEndpoint": "Punto de Acceso ASR",
+ "audioTranscription": "Transcripción de Audio",
+ "audioTranscriptionDesc": "API de Whisper y soporte ASR personalizado con alta precisión",
+ "backend": "Backend",
+ "database": "Base de Datos",
+ "deployment": "Despliegue",
+ "dockerDescription": "Imágenes oficiales de Docker",
+ "dockerHub": "Docker Hub",
+ "documentation": "Documentación",
+ "documentationDescription": "Guías de configuración y manual del usuario",
+ "endpoint": "Punto de Acceso",
+ "frontend": "Frontend",
+ "githubDescription": "Código fuente, problemas y versiones",
+ "githubRepository": "Repositorio de GitHub",
+ "inquireMode": "Modo de Consulta",
+ "inquireModeDesc": "Búsqueda semántica en todas tus grabaciones",
+ "interactiveChat": "Chat Interactivo",
+ "interactiveChatDesc": "Chatea con tus transcripciones usando IA",
+ "keyFeatures": "Características Principales",
+ "largeLanguageModel": "Modelo de Lenguaje Grande",
+ "model": "Modelo",
+ "projectDescription": "Transforma tus grabaciones de audio en notas organizadas y buscables con funciones de transcripción, resumen y chat interactivo impulsadas por IA.",
+ "projectLinks": "Enlaces del Proyecto",
+ "sharingExport": "Compartir y Exportar",
+ "sharingExportDesc": "Comparte grabaciones y exporta a varios formatos",
+ "speakerDiarization": "Diarización de Hablantes",
+ "speakerDiarizationDesc": "Identifica y etiqueta diferentes hablantes automáticamente",
+ "speechRecognition": "Reconocimiento de Voz",
+ "systemConfiguration": "Configuración del Sistema",
+ "tagline": "Transcripción de Audio y Toma de Notas Impulsada por IA",
+ "technologyStack": "Pila Tecnológica",
+ "title": "Acerca de",
+ "version": "Versión",
+ "whisperApi": "API de Whisper"
+ },
+ "aboutPageDetails": {
+ "aiSummarizationDesc": "Integración con OpenRouter y Ollama con prompts personalizados",
+ "asrEnabled": "ASR Habilitado",
+ "asrEndpoint": "Punto de Acceso ASR",
+ "audioTranscriptionDesc": "API de Whisper y soporte ASR personalizado con alta precisión",
+ "backend": "Backend",
+ "database": "Base de Datos",
+ "deployment": "Implementación",
+ "dockerDescription": "Imágenes oficiales de Docker",
+ "documentationDescription": "Guías de configuración y manual de usuario",
+ "endpoint": "Punto de Acceso",
+ "frontend": "Frontend",
+ "githubDescription": "Código fuente, problemas y versiones",
+ "inquireModeDesc": "Búsqueda semántica en todas tus grabaciones",
+ "interactiveChatDesc": "Chatea con tus transcripciones usando IA",
+ "model": "Modelo",
+ "no": "No",
+ "sharingExportDesc": "Comparte grabaciones y exporta a varios formatos",
+ "speakerDiarizationDesc": "Identifica y etiqueta diferentes oradores automáticamente",
+ "whisperApi": "API de Whisper",
+ "yes": "Sí"
+ },
+ "account": {
+ "accountActions": "Acciones de la Cuenta",
+ "changePassword": "Cambiar Contraseña",
+ "chooseLanguageForInterface": "Elige el idioma para la interfaz de la aplicación",
+ "companyOrganization": "Empresa / Organización",
+ "completedRecordings": "Completadas",
+ "email": "Correo Electrónico",
+ "failedRecordings": "Fallidas",
+ "fullName": "Nombre Completo",
+ "goToRecordings": "Ir a Grabaciones",
+ "interfaceLanguage": "Idioma de la Interfaz",
+ "jobTitle": "Cargo",
+ "languageForSummaries": "Idioma para títulos, resúmenes y chat. Dejar en blanco para el predeterminado (comportamiento predeterminado de sus modelos elegidos).",
+ "languagePreferences": "Preferencias de Idioma",
+ "leaveBlankForAutoDetect": "Dejar en blanco para detección automática por el servicio de transcripción",
+ "manageSpeakers": "Gestionar Hablantes",
+ "personalInfo": "Información Personal",
+ "preferredOutputLanguage": "Idioma Preferido para Chatbot y Resúmenes",
+ "processingRecordings": "En Procesamiento",
+ "saveAllPreferences": "Guardar Todas las Preferencias",
+ "statistics": "Estadísticas de la Cuenta",
+ "title": "Información de la Cuenta",
+ "totalRecordings": "Total de Grabaciones",
+ "transcriptionLanguage": "Idioma de Transcripción",
+ "userDetails": "Detalles del Usuario",
+ "username": "Nombre de Usuario"
+ },
+ "accountTabs": {
+ "about": "Acerca de",
+ "customPrompts": "Prompts Personalizados",
+ "sharedTranscripts": "Transcripciones Compartidas",
+ "tagManagement": "Gestión de Etiquetas"
+ },
+ "admin": {
+ "title": "Administración",
+ "userMenu": "Menú de Usuario"
+ },
+ "adminDashboard": {
+ "aboutInquireMode": "Acerca del Modo Consulta",
+ "actions": "ACCIONES",
+ "addNewUser": "Agregar Nuevo Usuario",
+ "addUser": "Agregar Usuario",
+ "additionalContext": "Contexto Adicional",
+ "admin": "ADMIN",
+ "adminDefaultPrompt": "Prompt Predeterminado del Administrador",
+ "adminDefaultPromptDesc": "El prompt configurado arriba (mostrado en esta página)",
+ "adminUser": "Usuario Administrador",
+ "allRecordingsProcessed": "¡Todas las grabaciones están procesadas!",
+ "available": "Disponible",
+ "characters": "caracteres",
+ "chunkSize": "Tamaño del Fragmento",
+ "complete": "completado",
+ "completedRecordings": "Completadas",
+ "confirmPasswordLabel": "Confirmar contraseña",
+ "contextNotes": {
+ "jsonConversion": "Las transcripciones JSON se convierten a formato de texto limpio antes de enviar",
+ "modelConfig": "El modelo utilizado se configura a través de la variable de entorno TEXT_MODEL_NAME",
+ "tagPrompts": "Si existen múltiples indicaciones de etiquetas, se fusionan en el orden en que se agregaron las etiquetas",
+ "transcriptLimit": "Las transcripciones están limitadas a un número configurable de caracteres (predeterminado: 30,000)"
+ },
+ "defaultPromptInfo": "Este prompt predeterminado se utilizará para todos los usuarios que no hayan establecido su propio prompt personalizado en la configuración de su cuenta.",
+ "defaultPrompts": "Prompts por Defecto",
+ "defaultSummarizationPrompt": "Prompt de Resumen Predeterminado",
+ "editUser": "Editar Usuario",
+ "email": "E-MAIL",
+ "emailLabel": "Correo electrónico",
+ "embeddingModel": "Modelo de Incrustación",
+ "embeddingsStatus": "Estado de Incrustaciones",
+ "errors": {
+ "failedToLoadPrompt": "Error al cargar el prompt predeterminado",
+ "failedToSavePrompt": "Error al guardar el prompt predeterminado. Por favor, inténtalo de nuevo.",
+ "invalidFileSize": "Por favor ingrese un tamaño válido entre 1 y 10000 MB",
+ "invalidInteger": "Por favor ingrese un número entero válido",
+ "invalidNumber": "Por favor ingrese un número válido",
+ "maxTimeout": "El tiempo de espera no puede exceder 10 horas (36000 segundos)",
+ "minCharacters": "Por favor ingrese un número válido de al menos 1000 caracteres",
+ "minTimeout": "El tiempo de espera debe ser de al menos 60 segundos"
+ },
+ "failedRecordings": "Fallidas",
+ "id": "ID",
+ "inquireModeDescription": "El Modo Inquire permite a los usuarios buscar en múltiples transcripciones usando preguntas en lenguaje natural. Funciona dividiendo las transcripciones en fragmentos y creando incrustaciones buscables usando modelos de IA.",
+ "languagePreferenceNote": "Nota: Si el usuario ha establecido una preferencia de idioma de salida, se agregará \" Asegúrese de que su respuesta esté en {idioma}.\".",
+ "lastUpdated": "Última actualización",
+ "maxFileSizeHelp": "Tamaño máximo de archivo en megabytes (1-10000 MB)",
+ "megabytes": "MB",
+ "minutes": "minutos",
+ "needProcessing": "Necesita Procesamiento",
+ "never": "Nunca",
+ "newPasswordLabel": "Nueva Contraseña (dejar en blanco para mantener la actual)",
+ "no": "No",
+ "noData": "Sin datos",
+ "noDescriptionAvailable": "Sin descripción disponible",
+ "noLimit": "Sin Límite",
+ "notSet": "No establecido",
+ "overlap": "Superposición",
+ "passwordLabel": "Contraseña",
+ "pendingRecordings": "Pendientes",
+ "placeholdersNote": "Los marcadores de posición se reemplazan con valores reales al procesar una grabación.",
+ "processAllRecordings": "Procesar Todas las Grabaciones",
+ "processNext10": "Procesar Próximas 10",
+ "processedForInquire": "Procesado para Consulta",
+ "processing": "Procesando...",
+ "processingActions": "Acciones de Procesamiento",
+ "processingProgress": "Progreso de Procesamiento",
+ "processingRecordings": "En Procesamiento",
+ "promptDescription": "Este prompt se utilizará para generar resúmenes para todas las grabaciones cuando los usuarios no hayan establecido su propio prompt.",
+ "promptHierarchy": "Jerarquía de Prompts",
+ "promptPriorityDescription": "El sistema utiliza el siguiente orden de prioridad al seleccionar qué prompt usar:",
+ "promptResetMessage": "Prompt restablecido al predeterminado del sistema. Haz clic en \"Guardar Cambios\" para aplicar.",
+ "promptSavedSuccessfully": "¡Prompt predeterminado guardado con éxito!",
+ "recordingStatusDistribution": "Distribución del Estado de Grabaciones",
+ "recordings": "GRABACIONES",
+ "recordingsNeedProcessing": "Hay {{count}} grabaciones que necesitan ser procesadas para el Modo Inquire.",
+ "refreshStatus": "Actualizar Estado",
+ "resetToDefault": "Restablecer a Predeterminado",
+ "saving": "Guardando...",
+ "searchUsers": "Buscar usuarios...",
+ "seconds": "segundos",
+ "settings": {
+ "asrTimeoutDesc": "Tiempo máximo en segundos para esperar a que se complete la transcripción ASR. El valor predeterminado es 1800 segundos (30 minutos).",
+ "defaultSummaryPromptDesc": "Indicación de resumen predeterminada utilizada cuando los usuarios no han establecido su propia indicación. Esto sirve como la indicación base para todos los usuarios.",
+ "maxFileSizeDesc": "Tamaño máximo de archivo permitido para cargas de audio en megabytes (MB).",
+ "recordingDisclaimerDesc": "Aviso legal mostrado a los usuarios antes de comenzar la grabación. Admite formato Markdown. Dejar vacío para desactivar.",
+ "transcriptLengthLimitDesc": "Número máximo de caracteres a enviar desde la transcripción al LLM para resumen y chat. Use -1 para sin límite."
+ },
+ "storageUsed": "ALMACENAMIENTO USADO",
+ "summarizationInstructions": "Instrucciones de Resumen",
+ "systemFallback": "Respaldo del Sistema",
+ "systemFallbackDesc": "Un valor predeterminado codificado si ninguno de los anteriores está establecido",
+ "systemPrompt": "Prompt del Sistema",
+ "systemSettings": "Configuración del Sistema",
+ "systemStatistics": "Estadísticas del Sistema",
+ "tagCustomPrompt": "Prompt Personalizado de Etiqueta",
+ "tagCustomPromptDesc": "Si una grabación tiene etiquetas con prompts personalizados",
+ "textSearchOnly": "Solo Búsqueda de Texto",
+ "timeoutRecommendation": "Recomendado: 30-120 minutos para archivos de audio largos",
+ "title": "Panel de Administración",
+ "topUsers": "Usuarios Principales",
+ "topUsersByStorage": "Principales Usuarios por Almacenamiento",
+ "total": "Total",
+ "totalChunks": "Total de Fragmentos",
+ "totalQueries": "Total de Consultas",
+ "totalRecordings": "Total de Grabaciones",
+ "totalStorage": "Almacenamiento Total",
+ "totalUsers": "Total de Usuarios",
+ "updateUser": "Actualizar Usuario",
+ "userCustomPrompt": "Prompt Personalizado del Usuario",
+ "userCustomPromptDesc": "Si el usuario ha establecido su propio prompt en la configuración de la cuenta",
+ "userManagement": "Gestión de Usuarios",
+ "userMessageTemplate": "Plantilla de Mensaje del Usuario",
+ "username": "NOMBRE DE USUARIO",
+ "usernameLabel": "Nombre de usuario",
+ "vectorDimensions": "Dimensiones del Vector",
+ "vectorStore": "Almacén Vectorial",
+ "vectorStoreManagement": "Gestión del Almacén Vectorial",
+ "vectorStoreUpToDate": "El almacén de vectores está actualizado.",
+ "viewFullPromptStructure": "Ver Estructura Completa del Prompt LLM",
+ "yes": "Sí"
+ },
+ "buttons": {
+ "cancel": "Cancel",
+ "clearAllFilters": "Limpiar todos los filtros",
+ "clearCompleted": "Limpiar cargas completadas",
+ "clearSearchText": "Limpiar texto de búsqueda",
+ "close": "Close",
+ "copyMessage": "Copiar mensaje",
+ "copyNotes": "Copiar Notas",
+ "copySummary": "Copiar Resumen",
+ "copyToClipboard": "Copiar al Portapapeles",
+ "createTag": "Create Tag",
+ "deleteAll": "Delete All",
+ "deleteSpeaker": "Eliminar hablante",
+ "deleteTag": "Eliminar etiqueta",
+ "deleteUser": "Eliminar usuario",
+ "downloadAsWord": "Descargar como Word",
+ "downloadChat": "Descargar chat como documento de Word",
+ "downloadNotes": "Descargar notas como documento de Word",
+ "downloadSummary": "Descargar resumen como documento de Word",
+ "editNotes": "Editar Notas",
+ "editSetting": "Editar configuración",
+ "editSummary": "Editar Resumen",
+ "editTag": "Editar etiqueta",
+ "editTags": "Editar etiquetas",
+ "editTranscription": "Editar Transcripción",
+ "editUser": "Editar usuario",
+ "help": "Ayuda",
+ "identifySpeakers": "Identificar Hablantes",
+ "refresh": "Refresh",
+ "reprocessSummary": "Reprocesar resumen",
+ "reprocessTranscription": "Reprocesar transcripción",
+ "reprocessWithAsr": "Reprocesar con ASR",
+ "resetStuckProcessing": "Restablecer procesamiento bloqueado",
+ "saveChanges": "Guardar Cambios",
+ "saveCustomPrompt": "Save Custom Prompt",
+ "shareRecording": "Compartir Grabación",
+ "toggleTheme": "Cambiar tema",
+ "updateTag": "Update Tag"
+ },
+ "changePasswordModal": {
+ "confirmPassword": "Confirmar Nueva Contraseña",
+ "currentPassword": "Contraseña Actual",
+ "newPassword": "Nueva Contraseña",
+ "passwordRequirement": "La contraseña debe tener al menos 8 caracteres",
+ "title": "Cambiar Contraseña"
+ },
+ "chat": {
+ "availableAfterTranscription": "El chat estará disponible una vez que se complete la transcripción",
+ "chatWithTranscription": "Chatear con la Transcripción",
+ "clearChat": "Limpiar Chat",
+ "error": "Error al enviar el mensaje",
+ "noMessages": "No hay mensajes aún",
+ "placeholder": "Haz una pregunta sobre esta grabación...",
+ "placeholderWithHint": "Haz una pregunta sobre esta grabación... (Enter para enviar, Ctrl+Enter para nueva línea)",
+ "send": "Enviar",
+ "suggestedQuestions": "Preguntas Sugeridas",
+ "thinking": "Pensando...",
+ "title": "Chat",
+ "whatAreActionItems": "¿Cuáles son los elementos de acción?",
+ "whatAreKeyPoints": "¿Cuáles son los puntos clave?",
+ "whatWasDiscussed": "¿Qué se discutió?",
+ "whoSaidWhat": "¿Quién dijo qué?"
+ },
+ "colorScheme": {
+ "chooseRecording": "Elige una grabación de la barra lateral para ver su transcripción y resumen",
+ "selectRecording": "Seleccionar una Grabación",
+ "subtitle": "Personaliza tu interfaz con hermosos temas de color",
+ "title": "Esquema de Color"
+ },
+ "common": {
+ "back": "Atrás",
+ "cancel": "Cancelar",
+ "close": "Cerrar",
+ "confirm": "Confirmar",
+ "delete": "Eliminar",
+ "deselectAll": "Deseleccionar Todo",
+ "download": "Descargar",
+ "edit": "Editar",
+ "error": "Error",
+ "failed": "Fallido",
+ "filter": "Filtrar",
+ "info": "Información",
+ "loading": "Cargando...",
+ "new": "Nuevo",
+ "next": "Siguiente",
+ "no": "No",
+ "noResults": "No se encontraron resultados",
+ "ok": "OK",
+ "or": "Or",
+ "previous": "Anterior",
+ "processing": "Procesando...",
+ "refresh": "Actualizar",
+ "retry": "Reintentar",
+ "save": "Guardar",
+ "search": "Buscar",
+ "selectAll": "Seleccionar Todo",
+ "sort": "Ordenar",
+ "success": "Éxito",
+ "untitled": "Grabación sin título",
+ "upload": "Subir",
+ "warning": "Advertencia",
+ "yes": "Sí"
+ },
+ "customPrompts": {
+ "currentDefaultPrompt": "Prompt Predeterminado Actual (Se usa si dejas lo anterior en blanco)",
+ "promptDescription": "Este prompt se utilizará para generar resúmenes de tus transcripciones. Anula el prompt predeterminado del administrador.",
+ "promptPlaceholder": "Describe cómo quieres que estén estructurados tus resúmenes. Deja en blanco para usar el prompt predeterminado del administrador.",
+ "summaryGeneration": "Prompt de Generación de Resúmenes",
+ "tip1": "Sé específico sobre las secciones que quieres en tu resumen",
+ "tip2": "Usa instrucciones de formato claras (ej. \"Usa viñetas\", \"Crea listas numeradas\")",
+ "tip3": "Especifica si quieres que cierta información sea priorizada",
+ "tip4": "El sistema proporcionará automáticamente el contenido de la transcripción a la IA",
+ "tip5": "Tu preferencia de idioma de salida (si está configurada) se aplicará automáticamente",
+ "tipsTitle": "Consejos para Escribir Prompts Efectivos",
+ "yourCustomPrompt": "Tu Prompt Personalizado de Resumen"
+ },
+ "deleteAllSpeakersModal": {
+ "confirmMessage": "¿Estás seguro de que quieres eliminar todos los oradores guardados? Esta acción no se puede deshacer.",
+ "title": "Eliminar Todos los Oradores"
+ },
+ "dialogs": {
+ "deleteRecording": {
+ "cancel": "Cancelar",
+ "confirm": "Eliminar",
+ "message": "¿Estás seguro de que deseas eliminar esta grabación? Esta acción no se puede deshacer.",
+ "title": "Eliminar Grabación"
+ },
+ "deleteShare": {
+ "message": "¿Estás seguro de que quieres eliminar este enlace compartido? Esto revocará el acceso al enlace público.",
+ "title": "Eliminar enlace compartido"
+ },
+ "reprocessTranscription": {
+ "cancel": "Cancelar",
+ "confirm": "Reprocesar",
+ "message": "¿Estás seguro de que deseas reprocesar esta transcripción? La transcripción actual será reemplazada.",
+ "title": "Reprocesar Transcripción"
+ },
+ "unsavedChanges": {
+ "cancel": "Cancelar",
+ "discard": "Descartar",
+ "message": "Tienes cambios sin guardar. ¿Deseas guardarlos antes de salir?",
+ "save": "Guardar",
+ "title": "Cambios Sin Guardar"
+ }
+ },
+ "duration": {
+ "hours": "{{count}} hora",
+ "hoursPlural": "{{count}} horas",
+ "minutes": "{{count}} minuto",
+ "minutesPlural": "{{count}} minutos",
+ "seconds": "{{count}} segundo",
+ "secondsPlural": "{{count}} segundos"
+ },
+ "editTagModal": {
+ "asrDefaultSettings": "Configuraciones Predeterminadas de ASR",
+ "asrSettingsDescription": "Estas configuraciones se aplicarán por defecto al usar esta etiqueta con transcripción ASR",
+ "color": "Color",
+ "colorDescription": "Elige un color para fácil identificación",
+ "createTitle": "Crear Etiqueta",
+ "customPrompt": "Prompt de Resumen Personalizado",
+ "customPromptPlaceholder": "Opcional: Prompt personalizado para generar resúmenes de grabaciones con esta etiqueta",
+ "defaultLanguage": "Idioma Predeterminado",
+ "defaultPromptPlaceholder": "Deja en blanco para usar tu prompt de resumen predeterminado",
+ "leaveBlankPrompt": "Deja en blanco para usar tu prompt de resumen predeterminado",
+ "maxSpeakers": "Máximo de Oradores",
+ "minSpeakers": "Mínimo de Oradores",
+ "tagName": "Nombre de la Etiqueta *",
+ "tagNamePlaceholder": "ej., Reuniones, Entrevistas",
+ "title": "Editar Etiqueta"
+ },
+ "errors": {
+ "audioRecordingFailed": "音频录制失败。请检查您的麦克风。",
+ "fileTooLarge": "文件太大",
+ "generic": "发生错误",
+ "loadingShares": "Error al cargar los compartidos",
+ "networkError": "网络错误。请检查您的连接。",
+ "notFound": "未找到",
+ "permissionDenied": "权限被拒绝",
+ "quotaExceeded": "存储配额已超出",
+ "serverError": "服务器错误。请稍后重试。",
+ "summaryFailed": "摘要生成失败。请重试。",
+ "transcriptionFailed": "转录失败。请重试。",
+ "unauthorized": "未授权",
+ "unsupportedFormat": "不支持的文件格式",
+ "uploadFailed": "上传失败。请重试。",
+ "validationError": "验证错误"
+ },
+ "fileSize": {
+ "bytes": "{{count}} B",
+ "gigabytes": "{{count}} GB",
+ "kilobytes": "{{count}} KB",
+ "megabytes": "{{count}} MB"
+ },
+ "form": {
+ "auto": "Auto",
+ "autoDetect": "Detección automática",
+ "dateFrom": "Desde",
+ "dateTo": "Hasta",
+ "enterNotesMarkdown": "Ingrese notas en formato Markdown...",
+ "enterSummaryMarkdown": "Ingrese resumen en formato Markdown...",
+ "language": "Idioma",
+ "maxSpeakers": "Hablantes Máximos",
+ "meetingDate": "Fecha de Reunión",
+ "minSpeakers": "Hablantes Mínimos",
+ "minutes": "Minutos",
+ "notes": "Notas",
+ "notesPlaceholder": "Escriba sus notas en formato Markdown...",
+ "optional": "Opcional",
+ "participants": "Participantes",
+ "placeholderAuto": "Auto",
+ "placeholderCharacterLimit": "Ingrese límite de caracteres (ej. 30000)",
+ "placeholderMinutes": "Minutos",
+ "placeholderOptional": "Opcional",
+ "placeholderSeconds": "Segundos",
+ "placeholderSizeMB": "Ingrese tamaño en MB",
+ "searchSpeakers": "Buscar hablantes...",
+ "searchTags": "Buscar etiquetas...",
+ "seconds": "Segundos",
+ "shareNotes": "Compartir Notas",
+ "shareSummary": "Compartir Resumen",
+ "shareableLink": "Enlace Compartible",
+ "summaryPromptPlaceholder": "Ingrese el prompt predeterminado de resumen...",
+ "title": "Título",
+ "yourFullName": "Su nombre completo"
+ },
+ "help": {
+ "actions": "Acciones",
+ "activeFilters": "Filtros activos",
+ "advancedAsrOptions": "Opciones ASR Avanzadas",
+ "allRecordingsLoaded": "Todas las grabaciones cargadas",
+ "approachingLimit": "Acercándose al límite de {{limit}}MB",
+ "askAboutTranscription": "Haz preguntas sobre esta transcripción",
+ "audioPlayer": "Reproductor de Audio",
+ "autoIdentify": "Identificar Automáticamente",
+ "bothAudioDesc": "Graba tu voz + participantes de reunión (recomendado para reuniones en línea)",
+ "clearFilters": "limpiar filtros",
+ "clickToAddNotes": "Haz clic para añadir notas...",
+ "colorRepeats": "Color se repite desde el hablante {{number}}",
+ "completedFiles": "Archivos Completados",
+ "confirmReprocessingTitle": "Confirmar Reprocesamiento",
+ "copyMessage": "Copiar mensaje",
+ "createPublicLink": "Crear un enlace público para compartir esta grabación. Compartir solo está disponible en conexiones seguras (HTTPS).",
+ "createTags": "Crear etiquetas",
+ "discard": "Descartar",
+ "endTime": "Fin",
+ "enterNameFor": "Ingresa nombre para",
+ "entireScreen": "Pantalla Completa",
+ "estimatedSize": "Tamaño estimado",
+ "generatingSummary": "Generando resumen...",
+ "howToRecordSystemAudio": "Cómo Grabar Audio del Sistema",
+ "importantNote": "Nota importante",
+ "lines": "{{count}} líneas",
+ "loadingMore": "Cargando más grabaciones...",
+ "loadingRecordings": "Cargando grabaciones...",
+ "me": "Yo",
+ "microphoneDesc": "Graba solo tu voz",
+ "modelReasoning": "Razonamiento del Modelo",
+ "moreSpeakersThanColors": "Más hablantes que colores disponibles",
+ "noDateSet": "Sin fecha establecida",
+ "noParticipants": "Sin participantes",
+ "noTagsCreated": "Aún no se han creado etiquetas.",
+ "processingTime": "Tiempo de procesamiento",
+ "processingTimeDescription": "Esto puede tardar unos minutos en completarse. Puedes continuar usando la aplicación mientras se procesa.",
+ "processingTranscription": "Procesando transcripción...",
+ "recordSystemSteps1": "Haz clic en \"Grabar Audio del Sistema\" o \"Grabar Ambos\".",
+ "recordSystemSteps2": "En la ventana emergente, elige",
+ "recordSystemSteps3": "Asegúrate de marcar la casilla que dice",
+ "recordingFinished": "Grabación terminada",
+ "recordingInProgress": "Grabación en progreso...",
+ "regenerateSummaryAfterNames": "Regenerar resumen después de actualizar nombres",
+ "sentence": "Oración",
+ "shareSystemAudio": "Compartir audio del sistema",
+ "shareTabAudio": "Compartir audio de pestaña",
+ "sharedOn": "Compartido el",
+ "sharingWindowNoAudio": "Compartir una \"Ventana\" no capturará audio.",
+ "speakerCount": "Hablante",
+ "specificBrowserTab": "pestaña específica del navegador",
+ "startTime": "Inicio",
+ "systemAudioDesc": "Graba participantes de reunión y sonidos del sistema",
+ "tagManagement": "Gestión de Etiquetas",
+ "thisActionCannotBeUndone": "Esta acción no se puede deshacer.",
+ "toCaptureAudioFromMeetings": "Para capturar audio de reuniones u otras aplicaciones, debes compartir tu pantalla o una pestaña del navegador.",
+ "troubleshooting": "Solución de Problemas",
+ "tryAdjustingSearch": "Intenta ajustar tu búsqueda o",
+ "unsupportedBrowser": "Navegador No Soportado",
+ "untitled": "Grabación Sin Título",
+ "uploadRecordingNotes": "Subir Grabación y Notas",
+ "whatWillHappen": "¿Qué pasará?",
+ "whyNotWorking": "¿Por qué no funciona?",
+ "speakers": "Hablantes"
+ },
+ "inquire": {
+ "title": "Consultar",
+ "filters": "Filtros",
+ "clearAll": "Limpiar Todo",
+ "tags": "Etiquetas",
+ "speakers": "Oradores",
+ "dateRange": "Rango de Fechas",
+ "from": "Desde",
+ "to": "Hasta",
+ "noSpeakerData": "No hay datos de oradores disponibles",
+ "speakerRequirement": "La identificación de oradores requiere grabaciones con múltiples oradores",
+ "activeFilters": "Filtros Activos:",
+ "tagsCount": "etiquetas",
+ "speakersCount": "oradores",
+ "dateRangeActive": "Rango de fechas activo",
+ "filtersActive": "Filtros activos",
+ "askQuestions": "Haga Preguntas Sobre Sus Transcripciones",
+ "selectFilters": "Seleccione filtros a la izquierda para reducir sus transcripciones, luego haga preguntas para obtener información de sus grabaciones.",
+ "exampleQuestions": "Preguntas de Ejemplo:",
+ "exampleQuestion1": "\"¿Qué elementos de acción se discutieron?\"",
+ "exampleQuestion2": "\"¿Cuándo decidimos cambiar la cronología?\"",
+ "exampleQuestion3": "\"¿Qué preocupaciones se plantearon sobre el presupuesto?\"",
+ "exampleQuestion4": "\"¿Quién fue responsable de las tareas de marketing?\"",
+ "placeholder": "Haga preguntas sobre sus transcripciones filtradas...",
+ "sendHint": "Presione Enter para enviar • Ctrl+Enter para nueva línea"
+ },
+ "languages": {
+ "ar": "Árabe",
+ "de": "Alemán",
+ "en": "Inglés",
+ "es": "Español",
+ "fr": "Francés",
+ "hi": "Hindi",
+ "it": "Italiano",
+ "ja": "Japonés",
+ "ko": "Coreano",
+ "nl": "Holandés",
+ "pt": "Portugués",
+ "ru": "Ruso",
+ "zh": "Chino"
+ },
+ "manageSpeakersModal": {
+ "created": "Creado",
+ "description": "Gestiona tus oradores guardados. Estos se guardan automáticamente cuando usas nombres de oradores en tus grabaciones.",
+ "failedToLoad": "Error al cargar oradores",
+ "lastUsed": "Último uso",
+ "loadingSpeakers": "Cargando oradores...",
+ "noSpeakersYet": "Aún no hay oradores guardados",
+ "speakersSaved": "{{count}} oradores guardados",
+ "speakersWillAppear": "Los oradores aparecerán aquí cuando uses nombres de oradores en tus grabaciones",
+ "times": "veces",
+ "title": "Gestionar Oradores",
+ "used": "Usado"
+ },
+ "messages": {
+ "copiedToClipboard": "Copiado al portapapeles",
+ "downloadStarted": "Descarga iniciada",
+ "notesUpdated": "Notas actualizadas exitosamente",
+ "passwordChanged": "Contraseña cambiada exitosamente",
+ "profileUpdated": "Perfil actualizado exitosamente",
+ "recordingDeleted": "Grabación eliminada exitosamente",
+ "recordingSaved": "Grabación guardada exitosamente",
+ "settingsSaved": "Configuración guardada exitosamente",
+ "summaryGenerated": "Resumen generado exitosamente",
+ "tagAdded": "Etiqueta añadida exitosamente",
+ "tagRemoved": "Etiqueta eliminada exitosamente",
+ "transcriptionUpdated": "Transcripción actualizada exitosamente"
+ },
+ "metadata": {
+ "cancelEdit": "Cancelar",
+ "createdAt": "Creado",
+ "duration": "Duración",
+ "editMetadata": "Editar Metadatos",
+ "fileName": "Nombre del Archivo",
+ "fileSize": "Tamaño del Archivo",
+ "language": "Idioma",
+ "meetingDate": "Fecha de Reunión",
+ "processingTime": "Tiempo de Procesamiento",
+ "saveMetadata": "Guardar",
+ "status": "Estado",
+ "title": "Metadatos",
+ "updatedAt": "Actualizado",
+ "wordCount": "Recuento de Palabras"
+ },
+ "modal": {
+ "colorScheme": "Esquema de Color",
+ "deleteRecording": "Eliminar Grabación",
+ "editAsrTranscription": "Editar Transcripción ASR",
+ "editRecording": "Editar Grabación",
+ "editTags": "Editar Etiquetas de Grabación",
+ "editTranscription": "Editar Transcripción",
+ "identifySpeakers": "Identificar Hablantes",
+ "recordingNotice": "Aviso de Grabación",
+ "reprocessSummary": "Reprocesar Resumen",
+ "reprocessTranscription": "Reprocesar Transcripción",
+ "resetStatus": "¿Restablecer Estado de Grabación?",
+ "shareRecording": "Compartir Grabación",
+ "sharedTranscripts": "Mis Transcripciones Compartidas",
+ "systemAudioHelp": "Ayuda de Audio del Sistema"
+ },
+ "nav": {
+ "account": "Cuenta",
+ "accountSettings": "Configuración de Cuenta",
+ "admin": "Administración",
+ "adminDashboard": "Panel de Administración",
+ "darkMode": "Modo Oscuro",
+ "home": "Inicio",
+ "language": "Idioma",
+ "lightMode": "Modo Claro",
+ "newRecording": "Nueva Grabación",
+ "recording": "Grabación",
+ "settings": "Configuración",
+ "signOut": "Cerrar Sesión",
+ "upload": "Subir",
+ "userProfile": "Perfil de Usuario"
+ },
+ "notes": {
+ "cancelEdit": "Cancelar Edición",
+ "characterCount": "{{count}} carácter",
+ "characterCountPlural": "{{count}} caracteres",
+ "editNotes": "Editar Notas",
+ "lastUpdated": "Última actualización",
+ "placeholder": "Añade tus notas aquí...",
+ "saveNotes": "Guardar Notas",
+ "title": "Notas"
+ },
+ "recording": {
+ "acceptDisclaimer": "Acepto",
+ "cancelRecording": "Cancelar",
+ "disclaimer": "Aviso de Grabación",
+ "microphone": "Micrófono",
+ "microphoneAndSystem": "Micrófono + Sistema",
+ "microphonePermissionDenied": "Permiso del micrófono denegado",
+ "notes": "Notas",
+ "notesPlaceholder": "Añade notas sobre esta grabación...",
+ "pauseRecording": "Pausar",
+ "recordingFailed": "La grabación falló",
+ "recordingInProgress": "Grabación en progreso...",
+ "recordingSize": "Tamaño Estimado",
+ "recordingStopped": "Grabación detenida",
+ "recordingTime": "Tiempo de Grabación",
+ "resumeRecording": "Reanudar",
+ "saveRecording": "Guardar Grabación",
+ "startRecording": "Iniciar Grabación",
+ "stopRecording": "Detener Grabación",
+ "systemAudio": "Audio del Sistema",
+ "systemAudioNotSupported": "La grabación de audio del sistema no es compatible con este navegador",
+ "title": "Grabación de Audio"
+ },
+ "reprocessModal": {
+ "audioReTranscribedFromScratch": "El audio será re-transcrito desde cero. Esto también regenerará el título y resumen basado en la nueva transcripción.",
+ "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 título o resumen será sobrescrita.",
+ "newTitleAndSummary": "Se generará un nuevo título y resumen basado en la transcripción existente."
+ },
+ "settings": {
+ "apiKeys": "Claves API",
+ "appearance": "Apariencia",
+ "changePassword": "Cambiar Contraseña",
+ "dataExport": "Exportación de Datos",
+ "deleteAccount": "Eliminar Cuenta",
+ "integrations": "Integraciones",
+ "language": "Idioma",
+ "notifications": "Notificaciones",
+ "preferences": "Preferencias",
+ "privacy": "Privacidad",
+ "profile": "Perfil",
+ "security": "Seguridad",
+ "theme": "Tema",
+ "title": "Configuración",
+ "twoFactorAuth": "Autenticación de Dos Factores"
+ },
+ "sharedTranscripts": {
+ "noSharedTranscripts": "Aún no has compartido ninguna transcripción."
+ },
+ "sharedTranscriptsPage": {
+ "noSharedTranscripts": "Aún no has compartido ninguna transcripción."
+ },
+ "sidebar": {
+ "advancedSearch": "Búsqueda Avanzada",
+ "dateRange": "Rango de Fechas",
+ "filters": "Filtros",
+ "highlighted": "Destacado",
+ "inbox": "Bandeja de Entrada",
+ "lastMonth": "Mes Pasado",
+ "lastWeek": "Semana Pasada",
+ "loadMore": "Cargar Más",
+ "markAsRead": "Marcar como leído",
+ "moveToInbox": "Mover a bandeja de entrada",
+ "noRecordings": "No se encontraron grabaciones",
+ "older": "Más Antiguo",
+ "removeFromHighlighted": "Quitar de destacados",
+ "searchRecordings": "Buscar grabaciones...",
+ "sortBy": "Ordenar Por",
+ "sortByDate": "Fecha de Creación",
+ "sortByMeetingDate": "Fecha de Reunión",
+ "tags": "Etiquetas",
+ "thisMonth": "Este Mes",
+ "thisWeek": "Esta Semana",
+ "today": "Hoy",
+ "totalRecordings": "{{count}} grabación",
+ "totalRecordingsPlural": "{{count}} grabaciones",
+ "yesterday": "Ayer"
+ },
+ "status": {
+ "completed": "Completado",
+ "failed": "Falló",
+ "processing": "Procesando",
+ "queued": "En cola",
+ "stuck": "Restablecer procesamiento bloqueado",
+ "summarizing": "Resumiendo",
+ "transcribing": "Transcribiendo",
+ "uploading": "Subiendo"
+ },
+ "summary": {
+ "actionItems": "Elementos de Acción",
+ "cancelEdit": "Cancelar Edición",
+ "decisions": "Decisiones",
+ "editSummary": "Editar Resumen",
+ "generateSummary": "Generar Resumen",
+ "keyPoints": "Puntos Clave",
+ "noSummary": "No hay resumen disponible",
+ "participants": "Participantes",
+ "regenerateSummary": "Regenerar Resumen",
+ "saveSummary": "Guardar Resumen",
+ "summaryFailed": "La generación del resumen falló",
+ "summaryInProgress": "Generación de resumen en progreso...",
+ "title": "Resumen"
+ },
+ "tagManagement": {
+ "asrDefaults": "Configuraciones ASR Predeterminadas",
+ "createTag": "Crear Etiqueta",
+ "customPrompt": "Prompt Personalizado",
+ "description": "Organiza tus grabaciones con etiquetas personalizadas. Cada etiqueta puede tener su propio prompt de resumen y configuraciones ASR predeterminadas.",
+ "maxSpeakers": "Máx",
+ "minSpeakers": "Mín",
+ "noTags": "Aún no has creado ninguna etiqueta."
+ },
+ "tags": {
+ "addTag": "Añadir Etiqueta",
+ "clearTagFilter": "Limpiar filtro",
+ "createTag": "Crear Etiqueta",
+ "filterByTag": "Filtrar por etiqueta",
+ "manageAllTags": "Gestionar Todas las Etiquetas",
+ "noTags": "Sin etiquetas",
+ "removeTag": "Eliminar Etiqueta",
+ "tagColor": "Color de Etiqueta",
+ "tagName": "Nombre de Etiqueta",
+ "title": "Etiquetas"
+ },
+ "tagsModal": {
+ "addTags": "Añadir Etiquetas",
+ "currentTags": "Etiquetas Actuales",
+ "done": "Listo",
+ "noTagsAssigned": "No hay etiquetas asignadas a esta grabación",
+ "searchTags": "Buscar etiquetas..."
+ },
+ "time": {
+ "dayAgo": "Hace 1 día",
+ "daysAgo": "Hace {{count}} días",
+ "hourAgo": "Hace 1 hora",
+ "hoursAgo": "Hace {{count}} horas",
+ "justNow": "Justo ahora",
+ "minuteAgo": "Hace 1 minuto",
+ "minutesAgo": "Hace {{count}} minutos",
+ "monthAgo": "Hace 1 mes",
+ "monthsAgo": "Hace {{count}} meses",
+ "weekAgo": "Hace 1 semana",
+ "weeksAgo": "Hace {{count}} semanas",
+ "yearAgo": "Hace 1 año",
+ "yearsAgo": "Hace {{count}} años"
+ },
+ "transcription": {
+ "autoIdentifySpeakers": "Identificar Hablantes Automáticamente",
+ "simple": "Simple",
+ "bubble": "Burbuja",
+ "copy": "Copiar",
+ "edit": "Editar",
+ "cancelEdit": "Cancelar Edición",
+ "copyToClipboard": "Copiar al Portapapeles",
+ "downloadTranscript": "Descargar Transcripción",
+ "editSpeakers": "Editar Hablantes",
+ "editTranscription": "Editar Transcripción",
+ "highlightSearchResults": "Resaltar resultados de búsqueda",
+ "noTranscription": "No hay transcripción disponible",
+ "regenerateTranscription": "Regenerar Transcripción",
+ "saveTranscription": "Guardar Transcripción",
+ "searchInTranscript": "Buscar en la transcripción...",
+ "speaker": "Hablante {{number}}",
+ "speakerLabels": "Etiquetas de Hablante",
+ "title": "Transcripción",
+ "unknownSpeaker": "Hablante Desconocido"
+ },
+ "upload": {
+ "chunking": "Los archivos grandes se dividirán automáticamente para su procesamiento",
+ "completed": "Completado",
+ "dropzone": "Arrastra y suelta archivos de audio aquí, o haz clic para explorar",
+ "failed": "Falló",
+ "maxFileSize": "Tamaño máximo de archivo",
+ "queued": "En cola",
+ "selectFiles": "Seleccionar Archivos",
+ "summarizing": "Resumiendo...",
+ "supportedFormats": "Formatos compatibles",
+ "title": "Subir Audio",
+ "transcribing": "Transcribiendo...",
+ "untitled": "Untitled Recording",
+ "uploadProgress": "Progreso de Carga",
+ "willAutoSummarize": "Se resumirá automáticamente después de la transcripción"
+ },
+ "uploadProgress": {
+ "title": "Progreso de Carga"
+ }
+}
\ No newline at end of file
diff --git a/static/locales/fr.json b/static/locales/fr.json
new file mode 100644
index 00000000..3f515852
--- /dev/null
+++ b/static/locales/fr.json
@@ -0,0 +1,826 @@
+{
+ "aboutPage": {
+ "aiSummarization": "Résumé par IA",
+ "aiSummarizationDesc": "Intégration OpenRouter et Ollama avec invites personnalisées",
+ "asrEnabled": "ASR Activé",
+ "asrEndpoint": "Point de Terminaison ASR",
+ "audioTranscription": "Transcription Audio",
+ "audioTranscriptionDesc": "API Whisper et support ASR personnalisé avec haute précision",
+ "backend": "Backend",
+ "database": "Base de Données",
+ "deployment": "Déploiement",
+ "dockerDescription": "Images Docker officielles",
+ "dockerHub": "Docker Hub",
+ "documentation": "Documentation",
+ "documentationDescription": "Guides de configuration et manuel utilisateur",
+ "endpoint": "Point de Terminaison",
+ "frontend": "Frontend",
+ "githubDescription": "Code source, problèmes et versions",
+ "githubRepository": "Référentiel GitHub",
+ "inquireMode": "Mode Enquête",
+ "inquireModeDesc": "Recherche sémantique dans tous vos enregistrements",
+ "interactiveChat": "Chat Interactif",
+ "interactiveChatDesc": "Discutez avec vos transcriptions en utilisant l'IA",
+ "keyFeatures": "Fonctionnalités Principales",
+ "largeLanguageModel": "Grand Modèle de Langage",
+ "model": "Modèle",
+ "projectDescription": "Transformez vos enregistrements audio en notes organisées et consultables avec des fonctionnalités de transcription, de résumé et de chat interactif pilotées par IA.",
+ "projectLinks": "Liens du Projet",
+ "sharingExport": "Partage et Exportation",
+ "sharingExportDesc": "Partagez des enregistrements et exportez vers divers formats",
+ "speakerDiarization": "Diarisation des Orateurs",
+ "speakerDiarizationDesc": "Identifie et étiquette automatiquement différents orateurs",
+ "speechRecognition": "Reconnaissance Vocale",
+ "systemConfiguration": "Configuration du Système",
+ "tagline": "Transcription Audio et Prise de Notes Pilotées par IA",
+ "technologyStack": "Pile Technologique",
+ "title": "À Propos",
+ "version": "Version",
+ "whisperApi": "API Whisper"
+ },
+ "aboutPageDetails": {
+ "aiSummarizationDesc": "Intégration OpenRouter et Ollama avec invites personnalisées",
+ "asrEnabled": "ASR Activé",
+ "asrEndpoint": "Point de Terminaison ASR",
+ "audioTranscriptionDesc": "API Whisper et support ASR personnalisé avec haute précision",
+ "backend": "Backend",
+ "database": "Base de Données",
+ "deployment": "Déploiement",
+ "dockerDescription": "Images Docker officielles",
+ "documentationDescription": "Guides de configuration et manuel utilisateur",
+ "endpoint": "Point de Terminaison",
+ "frontend": "Frontend",
+ "githubDescription": "Code source, problèmes et versions",
+ "inquireModeDesc": "Recherche sémantique dans tous vos enregistrements",
+ "interactiveChatDesc": "Chattez avec vos transcriptions en utilisant l'IA",
+ "model": "Modèle",
+ "no": "Non",
+ "sharingExportDesc": "Partagez des enregistrements et exportez vers divers formats",
+ "speakerDiarizationDesc": "Identifier et étiqueter automatiquement les différents intervenants",
+ "whisperApi": "API Whisper",
+ "yes": "Oui"
+ },
+ "account": {
+ "accountActions": "Actions du Compte",
+ "changePassword": "Changer le Mot de Passe",
+ "chooseLanguageForInterface": "Choisissez la langue pour l'interface de l'application",
+ "companyOrganization": "Entreprise / Organisation",
+ "completedRecordings": "Terminés",
+ "email": "E-mail",
+ "failedRecordings": "Échoués",
+ "fullName": "Nom Complet",
+ "goToRecordings": "Aller aux Enregistrements",
+ "interfaceLanguage": "Langue de l'Interface",
+ "jobTitle": "Titre du Poste",
+ "languageForSummaries": "Langue pour les titres, résumés et chat. Laisser vide pour le défaut (comportement par défaut de vos modèles choisis).",
+ "languagePreferences": "Préférences Linguistiques",
+ "leaveBlankForAutoDetect": "Laisser vide pour la détection automatique par le service de transcription",
+ "manageSpeakers": "Gérer les Orateurs",
+ "personalInfo": "Informations Personnelles",
+ "preferredOutputLanguage": "Langue Préférée pour Chatbot et Résumés",
+ "processingRecordings": "En Traitement",
+ "saveAllPreferences": "Sauvegarder Toutes les Préférences",
+ "statistics": "Statistiques du Compte",
+ "title": "Informations du Compte",
+ "totalRecordings": "Total d'Enregistrements",
+ "transcriptionLanguage": "Langue de Transcription",
+ "userDetails": "Détails de l'Utilisateur",
+ "username": "Nom d'Utilisateur"
+ },
+ "accountTabs": {
+ "about": "À Propos",
+ "customPrompts": "Invites Personnalisées",
+ "sharedTranscripts": "Transcriptions Partagées",
+ "tagManagement": "Gestion des Étiquettes"
+ },
+ "admin": {
+ "title": "Administration",
+ "userMenu": "Menu Utilisateur"
+ },
+ "adminDashboard": {
+ "aboutInquireMode": "À Propos du Mode Enquête",
+ "actions": "ACTIONS",
+ "addNewUser": "Ajouter un Nouvel Utilisateur",
+ "addUser": "Ajouter un Utilisateur",
+ "additionalContext": "Contexte Supplémentaire",
+ "admin": "ADMIN",
+ "adminDefaultPrompt": "Invite par Défaut de l'Admin",
+ "adminDefaultPromptDesc": "L'invite configurée ci-dessus (affichée sur cette page)",
+ "adminUser": "Utilisateur Administrateur",
+ "allRecordingsProcessed": "Tous les enregistrements sont traités !",
+ "available": "Disponible",
+ "characters": "caractères",
+ "chunkSize": "Taille du Morceau",
+ "complete": "terminé",
+ "completedRecordings": "Terminés",
+ "confirmPasswordLabel": "Confirmer le mot de passe",
+ "contextNotes": {
+ "jsonConversion": "Les transcriptions JSON sont converties en format texte brut avant l'envoi",
+ "modelConfig": "Le modèle utilisé est configuré via la variable d'environnement TEXT_MODEL_NAME",
+ "tagPrompts": "Si plusieurs invites d'étiquettes existent, elles sont fusionnées dans l'ordre où les étiquettes ont été ajoutées",
+ "transcriptLimit": "Les transcriptions sont limitées à un nombre configurable de caractères (par défaut : 30 000)"
+ },
+ "defaultPromptInfo": "Cette invite par défaut sera utilisée pour tous les utilisateurs qui n'ont pas défini leur propre invite personnalisée dans les paramètres de leur compte.",
+ "defaultPrompts": "Invites par Défaut",
+ "defaultSummarizationPrompt": "Invite de Résumé par Défaut",
+ "editUser": "Modifier l'Utilisateur",
+ "email": "E-MAIL",
+ "emailLabel": "E-mail",
+ "embeddingModel": "Modèle d'Intégration",
+ "embeddingsStatus": "Statut des Intégrations",
+ "errors": {
+ "failedToLoadPrompt": "Échec du chargement de l'invite par défaut",
+ "failedToSavePrompt": "Échec de la sauvegarde de l'invite par défaut. Veuillez réessayer.",
+ "invalidFileSize": "Veuillez entrer une taille valide entre 1 et 10000 Mo",
+ "invalidInteger": "Veuillez entrer un nombre entier valide",
+ "invalidNumber": "Veuillez entrer un nombre valide",
+ "maxTimeout": "Le délai d'attente ne peut pas dépasser 10 heures (36000 secondes)",
+ "minCharacters": "Veuillez entrer un nombre valide d'au moins 1000 caractères",
+ "minTimeout": "Le délai d'attente doit être d'au moins 60 secondes"
+ },
+ "failedRecordings": "Échoués",
+ "id": "ID",
+ "inquireModeDescription": "Le mode Enquête permet aux utilisateurs de rechercher dans plusieurs transcriptions en utilisant des questions en langage naturel. Il fonctionne en divisant les transcriptions en morceaux et en créant des intégrations consultables à l'aide de modèles IA.",
+ "languagePreferenceNote": "Note: Si l'utilisateur a défini une préférence de langue de sortie, \" Assurez-vous que votre réponse est en {langue}.\" sera ajouté.",
+ "lastUpdated": "Dernière mise à jour",
+ "maxFileSizeHelp": "Taille maximale du fichier en mégaoctets (1-10000 Mo)",
+ "megabytes": "Mo",
+ "minutes": "minutes",
+ "needProcessing": "Nécessite un Traitement",
+ "never": "Jamais",
+ "newPasswordLabel": "Nouveau Mot de Passe (laisser vide pour conserver l'actuel)",
+ "no": "Non",
+ "noData": "Aucune donnée",
+ "noDescriptionAvailable": "Aucune description disponible",
+ "noLimit": "Aucune Limite",
+ "notSet": "Non défini",
+ "overlap": "Chevauchement",
+ "passwordLabel": "Mot de passe",
+ "pendingRecordings": "En Attente",
+ "placeholdersNote": "Les espaces réservés sont remplacés par des valeurs réelles lors du traitement d'un enregistrement.",
+ "processAllRecordings": "Traiter Tous les Enregistrements",
+ "processNext10": "Traiter les 10 Prochains",
+ "processedForInquire": "Traité pour Enquête",
+ "processing": "Traitement en cours...",
+ "processingActions": "Actions de Traitement",
+ "processingProgress": "Progression du Traitement",
+ "processingRecordings": "En Traitement",
+ "promptDescription": "Cette invite sera utilisée pour générer des résumés pour tous les enregistrements lorsque les utilisateurs n'ont pas défini leur propre invite.",
+ "promptHierarchy": "Hiérarchie des Invites",
+ "promptPriorityDescription": "Le système utilise l'ordre de priorité suivant lors de la sélection de l'invite à utiliser:",
+ "promptResetMessage": "Invite réinitialisée par défaut du système. Cliquez sur \"Enregistrer les modifications\" pour appliquer.",
+ "promptSavedSuccessfully": "Invite par défaut enregistrée avec succès !",
+ "recordingStatusDistribution": "Répartition du Statut des Enregistrements",
+ "recordings": "ENREGISTREMENTS",
+ "recordingsNeedProcessing": "Il y a {{count}} enregistrements qui doivent être traités pour le mode Enquête.",
+ "refreshStatus": "Actualiser le Statut",
+ "resetToDefault": "Réinitialiser par Défaut",
+ "saving": "Enregistrement...",
+ "searchUsers": "Rechercher des utilisateurs...",
+ "seconds": "secondes",
+ "settings": {
+ "asrTimeoutDesc": "Temps maximal en secondes pour attendre la fin de la transcription ASR. La valeur par défaut est 1800 secondes (30 minutes).",
+ "defaultSummaryPromptDesc": "Invite de résumé par défaut utilisée lorsque les utilisateurs n'ont pas défini leur propre invite. Cela sert d'invite de base pour tous les utilisateurs.",
+ "maxFileSizeDesc": "Taille maximale de fichier autorisée pour les téléchargements audio en mégaoctets (Mo).",
+ "recordingDisclaimerDesc": "Avis légal affiché aux utilisateurs avant le début de l'enregistrement. Prend en charge le formatage Markdown. Laisser vide pour désactiver.",
+ "transcriptLengthLimitDesc": "Nombre maximal de caractères à envoyer de la transcription au LLM pour le résumé et le chat. Utilisez -1 pour aucune limite."
+ },
+ "storageUsed": "STOCKAGE UTILISÉ",
+ "summarizationInstructions": "Instructions de Résumé",
+ "systemFallback": "Repli Système",
+ "systemFallbackDesc": "Une valeur par défaut codée en dur si aucune des précédentes n'est définie",
+ "systemPrompt": "Invite Système",
+ "systemSettings": "Paramètres du Système",
+ "systemStatistics": "Statistiques du Système",
+ "tagCustomPrompt": "Invite Personnalisée de l'Étiquette",
+ "tagCustomPromptDesc": "Si un enregistrement a des étiquettes avec des invites personnalisées",
+ "textSearchOnly": "Recherche de Texte Uniquement",
+ "timeoutRecommendation": "Recommandé : 30-120 minutes pour les longs fichiers audio",
+ "title": "Tableau de Bord Administrateur",
+ "topUsers": "Meilleurs Utilisateurs",
+ "topUsersByStorage": "Principaux Utilisateurs par Stockage",
+ "total": "Total",
+ "totalChunks": "Total des Segments",
+ "totalQueries": "Total des Requêtes",
+ "totalRecordings": "Total des Enregistrements",
+ "totalStorage": "Stockage Total",
+ "totalUsers": "Total des Utilisateurs",
+ "updateUser": "Mettre à jour l'Utilisateur",
+ "userCustomPrompt": "Invite Personnalisée de l'Utilisateur",
+ "userCustomPromptDesc": "Si l'utilisateur a défini sa propre invite dans les paramètres du compte",
+ "userManagement": "Gestion des Utilisateurs",
+ "userMessageTemplate": "Modèle de Message Utilisateur",
+ "username": "NOM D'UTILISATEUR",
+ "usernameLabel": "Nom d'utilisateur",
+ "vectorDimensions": "Dimensions du Vecteur",
+ "vectorStore": "Magasin Vectoriel",
+ "vectorStoreManagement": "Gestion du Magasin Vectoriel",
+ "vectorStoreUpToDate": "Le magasin de vecteurs est à jour.",
+ "viewFullPromptStructure": "Voir la Structure Complète de l'Invite LLM",
+ "yes": "Oui"
+ },
+ "buttons": {
+ "cancel": "Cancel",
+ "clearAllFilters": "Effacer tous les filtres",
+ "clearCompleted": "Effacer les téléchargements terminés",
+ "clearSearchText": "Effacer le texte de recherche",
+ "close": "Close",
+ "copyMessage": "Copier le message",
+ "copyNotes": "Copier les Notes",
+ "copySummary": "Copier le Résumé",
+ "copyToClipboard": "Copier dans le Presse-papiers",
+ "createTag": "Create Tag",
+ "deleteAll": "Delete All",
+ "deleteSpeaker": "Supprimer l'intervenant",
+ "deleteTag": "Supprimer l'étiquette",
+ "deleteUser": "Supprimer l'utilisateur",
+ "downloadAsWord": "Télécharger en Word",
+ "downloadChat": "Télécharger la conversation en document Word",
+ "downloadNotes": "Télécharger les notes en document Word",
+ "downloadSummary": "Télécharger le résumé en document Word",
+ "editNotes": "Modifier les Notes",
+ "editSetting": "Éditer le paramètre",
+ "editSummary": "Modifier le Résumé",
+ "editTag": "Éditer l'étiquette",
+ "editTags": "Éditer les étiquettes",
+ "editTranscription": "Modifier la Transcription",
+ "editUser": "Éditer l'utilisateur",
+ "help": "Aide",
+ "identifySpeakers": "Identifier les Orateurs",
+ "refresh": "Refresh",
+ "reprocessSummary": "Retraiter le résumé",
+ "reprocessTranscription": "Retraiter la transcription",
+ "reprocessWithAsr": "Retraiter avec ASR",
+ "resetStuckProcessing": "Réinitialiser le traitement bloqué",
+ "saveChanges": "Enregistrer les Modifications",
+ "saveCustomPrompt": "Save Custom Prompt",
+ "shareRecording": "Partager l'Enregistrement",
+ "toggleTheme": "Changer de thème",
+ "updateTag": "Update Tag"
+ },
+ "changePasswordModal": {
+ "confirmPassword": "Confirmer le Nouveau Mot de Passe",
+ "currentPassword": "Mot de Passe Actuel",
+ "newPassword": "Nouveau Mot de Passe",
+ "passwordRequirement": "Le mot de passe doit comporter au moins 8 caractères",
+ "title": "Changer le Mot de Passe"
+ },
+ "chat": {
+ "availableAfterTranscription": "Le chat sera disponible une fois la transcription terminée",
+ "chatWithTranscription": "Discuter avec la Transcription",
+ "clearChat": "Effacer la Discussion",
+ "error": "Échec de l'envoi du message",
+ "noMessages": "Pas encore de messages",
+ "placeholder": "Posez une question sur cet enregistrement...",
+ "placeholderWithHint": "Posez une question sur cet enregistrement... (Entrée pour envoyer, Ctrl+Entrée pour nouvelle ligne)",
+ "send": "Envoyer",
+ "suggestedQuestions": "Questions Suggérées",
+ "thinking": "Réflexion...",
+ "title": "Discussion",
+ "whatAreActionItems": "Quelles sont les actions à mener?",
+ "whatAreKeyPoints": "Quels sont les points clés?",
+ "whatWasDiscussed": "Qu'est-ce qui a été discuté?",
+ "whoSaidWhat": "Qui a dit quoi?"
+ },
+ "colorScheme": {
+ "chooseRecording": "Choisissez un enregistrement dans la barre latérale pour voir sa transcription et son résumé",
+ "selectRecording": "Sélectionner un Enregistrement",
+ "subtitle": "Personnalisez votre interface avec de magnifiques thèmes de couleur",
+ "title": "Schéma de Couleurs"
+ },
+ "common": {
+ "back": "Retour",
+ "cancel": "Annuler",
+ "close": "Fermer",
+ "confirm": "Confirmer",
+ "delete": "Supprimer",
+ "deselectAll": "Tout Désélectionner",
+ "download": "Télécharger",
+ "edit": "Modifier",
+ "error": "Erreur",
+ "failed": "Échoué",
+ "filter": "Filtrer",
+ "info": "Information",
+ "loading": "Chargement...",
+ "new": "Nouveau",
+ "next": "Suivant",
+ "no": "Non",
+ "noResults": "Aucun résultat trouvé",
+ "ok": "OK",
+ "or": "Or",
+ "previous": "Précédent",
+ "processing": "Traitement...",
+ "refresh": "Actualiser",
+ "retry": "Réessayer",
+ "save": "Enregistrer",
+ "search": "Rechercher",
+ "selectAll": "Tout Sélectionner",
+ "sort": "Trier",
+ "success": "Succès",
+ "untitled": "Sans titre",
+ "upload": "Télécharger",
+ "warning": "Avertissement",
+ "yes": "Oui"
+ },
+ "customPrompts": {
+ "currentDefaultPrompt": "Invite Par Défaut Actuelle (Utilisée si vous laissez le champ ci-dessus vide)",
+ "promptDescription": "Cette invite sera utilisée pour générer des résumés de vos transcriptions. Elle remplace l'invite par défaut de l'administrateur.",
+ "promptPlaceholder": "Décrivez comment vous voulez que vos résumés soient structurés. Laissez vide pour utiliser l'invite par défaut de l'administrateur.",
+ "summaryGeneration": "Invite de Génération de Résumé",
+ "tip1": "Soyez spécifique sur les sections que vous voulez dans votre résumé",
+ "tip2": "Utilisez des instructions de formatage claires (ex. \"Utilisez des puces\", \"Créez des listes numérotées\")",
+ "tip3": "Spécifiez si vous voulez que certaines informations soient prioritaires",
+ "tip4": "Le système fournira automatiquement le contenu de la transcription à l'IA",
+ "tip5": "Votre préférence de langue de sortie (si définie) sera appliquée automatiquement",
+ "tipsTitle": "Conseils pour Rédiger des Invites Efficaces",
+ "yourCustomPrompt": "Votre Invite Personnalisée de Résumé"
+ },
+ "deleteAllSpeakersModal": {
+ "confirmMessage": "Êtes-vous sûr de vouloir supprimer tous les intervenants sauvegardés ? Cette action ne peut pas être annulée.",
+ "title": "Supprimer Tous les Intervenants"
+ },
+ "dialogs": {
+ "deleteRecording": {
+ "cancel": "Annuler",
+ "confirm": "Supprimer",
+ "message": "Êtes-vous sûr de vouloir supprimer cet enregistrement? Cette action ne peut pas être annulée.",
+ "title": "Supprimer l'Enregistrement"
+ },
+ "deleteShare": {
+ "message": "Êtes-vous sûr de vouloir supprimer ce partage ? Cela révoquera l'accès au lien public.",
+ "title": "Supprimer le partage"
+ },
+ "reprocessTranscription": {
+ "cancel": "Annuler",
+ "confirm": "Retraiter",
+ "message": "Êtes-vous sûr de vouloir retraiter cette transcription? La transcription actuelle sera remplacée.",
+ "title": "Retraiter la Transcription"
+ },
+ "unsavedChanges": {
+ "cancel": "Annuler",
+ "discard": "Ignorer",
+ "message": "Vous avez des modifications non enregistrées. Voulez-vous les enregistrer avant de partir?",
+ "save": "Enregistrer",
+ "title": "Modifications Non Enregistrées"
+ }
+ },
+ "duration": {
+ "hours": "{{count}} heure",
+ "hoursPlural": "{{count}} heures",
+ "minutes": "{{count}} minute",
+ "minutesPlural": "{{count}} minutes",
+ "seconds": "{{count}} seconde",
+ "secondsPlural": "{{count}} secondes"
+ },
+ "editTagModal": {
+ "asrDefaultSettings": "Paramètres ASR par Défaut",
+ "asrSettingsDescription": "Ces paramètres seront appliqués par défaut lors de l'utilisation de cette étiquette avec la transcription ASR",
+ "color": "Couleur",
+ "colorDescription": "Choisissez une couleur pour faciliter l'identification",
+ "createTitle": "Créer une Étiquette",
+ "customPrompt": "Invite de Résumé Personnalisée",
+ "customPromptPlaceholder": "Optionnel : Invite personnalisée pour générer des résumés pour les enregistrements avec cette étiquette",
+ "defaultLanguage": "Langue par Défaut",
+ "defaultPromptPlaceholder": "Laissez vide pour utiliser votre invite de résumé par défaut",
+ "leaveBlankPrompt": "Laissez vide pour utiliser votre invite de résumé par défaut",
+ "maxSpeakers": "Maximum d'Intervenants",
+ "minSpeakers": "Minimum d'Intervenants",
+ "tagName": "Nom de l'Étiquette *",
+ "tagNamePlaceholder": "ex., Réunions, Entretiens",
+ "title": "Modifier l'Étiquette"
+ },
+ "errors": {
+ "audioRecordingFailed": "音频录制失败。请检查您的麦克风。",
+ "fileTooLarge": "文件太大",
+ "generic": "发生错误",
+ "loadingShares": "Erreur lors du chargement des partages",
+ "networkError": "网络错误。请检查您的连接。",
+ "notFound": "未找到",
+ "permissionDenied": "权限被拒绝",
+ "quotaExceeded": "存储配额已超出",
+ "serverError": "服务器错误。请稍后重试。",
+ "summaryFailed": "摘要生成失败。请重试。",
+ "transcriptionFailed": "转录失败。请重试。",
+ "unauthorized": "未授权",
+ "unsupportedFormat": "不支持的文件格式",
+ "uploadFailed": "上传失败。请重试。",
+ "validationError": "验证错误"
+ },
+ "fileSize": {
+ "bytes": "{{count}} B",
+ "gigabytes": "{{count}} GB",
+ "kilobytes": "{{count}} KB",
+ "megabytes": "{{count}} MB"
+ },
+ "form": {
+ "auto": "Auto",
+ "autoDetect": "Détection automatique",
+ "dateFrom": "De",
+ "dateTo": "À",
+ "enterNotesMarkdown": "Entrez des notes au format Markdown...",
+ "enterSummaryMarkdown": "Entrez un résumé au format Markdown...",
+ "language": "Langue",
+ "maxSpeakers": "Orateurs Maximum",
+ "meetingDate": "Date de Réunion",
+ "minSpeakers": "Orateurs Minimum",
+ "minutes": "Minutes",
+ "notes": "Notes",
+ "notesPlaceholder": "Tapez vos notes au format Markdown...",
+ "optional": "Optionnel",
+ "participants": "Participants",
+ "placeholderAuto": "Auto",
+ "placeholderCharacterLimit": "Entrez la limite de caractères (ex. 30000)",
+ "placeholderMinutes": "Minutes",
+ "placeholderOptional": "Optionnel",
+ "placeholderSeconds": "Secondes",
+ "placeholderSizeMB": "Entrez la taille en Mo",
+ "searchSpeakers": "Rechercher des intervenants...",
+ "searchTags": "Rechercher des étiquettes...",
+ "seconds": "Secondes",
+ "shareNotes": "Partager les Notes",
+ "shareSummary": "Partager le Résumé",
+ "shareableLink": "Lien Partageable",
+ "summaryPromptPlaceholder": "Entrez l'invite de résumé par défaut...",
+ "title": "Titre",
+ "yourFullName": "Votre nom complet"
+ },
+ "help": {
+ "actions": "Actions",
+ "activeFilters": "Filtres actifs",
+ "advancedAsrOptions": "Options ASR Avancées",
+ "allRecordingsLoaded": "Tous les enregistrements chargés",
+ "approachingLimit": "Approche de la limite de {{limit}}MB",
+ "askAboutTranscription": "Posez des questions sur cette transcription",
+ "audioPlayer": "Lecteur Audio",
+ "autoIdentify": "Identifier Automatiquement",
+ "bothAudioDesc": "Enregistre votre voix + les participants à la réunion (recommandé pour les réunions en ligne)",
+ "clearFilters": "effacer les filtres",
+ "clickToAddNotes": "Cliquez pour ajouter des notes...",
+ "colorRepeats": "La couleur se répète à partir de l'orateur {{number}}",
+ "completedFiles": "Fichiers Terminés",
+ "confirmReprocessingTitle": "Confirmer le Retraitement",
+ "copyMessage": "Copier le message",
+ "createPublicLink": "Créer un lien public pour partager cet enregistrement. Le partage n'est disponible que sur les connexions sécurisées (HTTPS).",
+ "createTags": "Créer des étiquettes",
+ "discard": "Ignorer",
+ "endTime": "Fin",
+ "enterNameFor": "Entrez le nom pour",
+ "entireScreen": "Écran Entier",
+ "estimatedSize": "Taille estimée",
+ "generatingSummary": "Génération du résumé...",
+ "howToRecordSystemAudio": "Comment Enregistrer l'Audio Système",
+ "importantNote": "Note importante",
+ "lines": "{{count}} lignes",
+ "loadingMore": "Chargement de plus d'enregistrements...",
+ "loadingRecordings": "Chargement des enregistrements...",
+ "me": "Moi",
+ "microphoneDesc": "Enregistre uniquement votre voix",
+ "modelReasoning": "Raisonnement du Modèle",
+ "moreSpeakersThanColors": "Plus d'orateurs que de couleurs disponibles",
+ "noDateSet": "Aucune date définie",
+ "noParticipants": "Aucun participant",
+ "noTagsCreated": "Aucune étiquette créée pour le moment.",
+ "processingTime": "Temps de traitement",
+ "processingTimeDescription": "Cela peut prendre quelques minutes. Vous pouvez continuer à utiliser l'application pendant le traitement.",
+ "processingTranscription": "Traitement de la transcription...",
+ "recordSystemSteps1": "Cliquez sur \"Enregistrer l'Audio Système\" ou \"Enregistrer les Deux\".",
+ "recordSystemSteps2": "Dans la fenêtre contextuelle, choisissez",
+ "recordSystemSteps3": "Assurez-vous de cocher la case qui dit",
+ "recordingFinished": "Enregistrement terminé",
+ "recordingInProgress": "Enregistrement en cours...",
+ "regenerateSummaryAfterNames": "Régénérer le résumé après la mise à jour des noms",
+ "sentence": "Phrase",
+ "shareSystemAudio": "Partager l'audio du système",
+ "shareTabAudio": "Partager l'audio de l'onglet",
+ "sharedOn": "Partagé le",
+ "sharingWindowNoAudio": "Partager une \"Fenêtre\" ne capturera pas l'audio.",
+ "speakerCount": "Orateur",
+ "specificBrowserTab": "onglet de navigateur spécifique",
+ "startTime": "Début",
+ "systemAudioDesc": "Enregistre les participants à la réunion et les sons du système",
+ "tagManagement": "Gestion des Étiquettes",
+ "thisActionCannotBeUndone": "Cette action ne peut pas être annulée.",
+ "toCaptureAudioFromMeetings": "Pour capturer l'audio des réunions ou d'autres applications, vous devez partager votre écran ou un onglet du navigateur.",
+ "troubleshooting": "Dépannage",
+ "tryAdjustingSearch": "Essayez d'ajuster votre recherche ou",
+ "unsupportedBrowser": "Navigateur Non Pris en Charge",
+ "untitled": "Enregistrement Sans Titre",
+ "uploadRecordingNotes": "Télécharger l'Enregistrement et les Notes",
+ "whatWillHappen": "Que va-t-il se passer?",
+ "whyNotWorking": "Pourquoi ça ne marche pas?",
+ "speakers": "Orateurs"
+ },
+ "inquire": {
+ "title": "Enquêter",
+ "filters": "Filtres",
+ "clearAll": "Effacer Tout",
+ "tags": "Étiquettes",
+ "speakers": "Intervenants",
+ "dateRange": "Plage de Dates",
+ "from": "De",
+ "to": "À",
+ "noSpeakerData": "Aucune donnée d'intervenant disponible",
+ "speakerRequirement": "L'identification des intervenants nécessite des enregistrements avec plusieurs intervenants",
+ "activeFilters": "Filtres Actifs :",
+ "tagsCount": "étiquettes",
+ "speakersCount": "intervenants",
+ "dateRangeActive": "Plage de dates active",
+ "filtersActive": "Filtres actifs",
+ "askQuestions": "Posez des Questions sur Vos Transcriptions",
+ "selectFilters": "Sélectionnez les filtres à gauche pour affiner vos transcriptions, puis posez des questions pour obtenir des informations à partir de vos enregistrements.",
+ "exampleQuestions": "Exemples de Questions :",
+ "exampleQuestion1": "\"Quels éléments d'action ont été discutés ?\"",
+ "exampleQuestion2": "\"Quand avons-nous décidé de changer le calendrier ?\"",
+ "exampleQuestion3": "\"Quelles préoccupations ont été soulevées concernant le budget ?\"",
+ "exampleQuestion4": "\"Qui était responsable des tâches de marketing ?\"",
+ "placeholder": "Posez des questions sur vos transcriptions filtrées...",
+ "sendHint": "Appuyez sur Entrée pour envoyer • Ctrl+Entrée pour nouvelle ligne"
+ },
+ "languages": {
+ "ar": "Arabe",
+ "de": "Allemand",
+ "en": "Anglais",
+ "es": "Espagnol",
+ "fr": "Français",
+ "hi": "Hindi",
+ "it": "Italien",
+ "ja": "Japonais",
+ "ko": "Coréen",
+ "nl": "Néerlandais",
+ "pt": "Portugais",
+ "ru": "Russe",
+ "zh": "Chinois"
+ },
+ "manageSpeakersModal": {
+ "created": "Créé",
+ "description": "Gérez vos intervenants sauvegardés. Ils sont automatiquement sauvegardés lorsque vous utilisez des noms d'intervenants dans vos enregistrements.",
+ "failedToLoad": "Échec du chargement des intervenants",
+ "lastUsed": "Dernière utilisation",
+ "loadingSpeakers": "Chargement des intervenants...",
+ "noSpeakersYet": "Aucun intervenant sauvegardé pour le moment",
+ "speakersSaved": "{{count}} intervenants sauvegardés",
+ "speakersWillAppear": "Les intervenants apparaîtront ici lorsque vous utiliserez des noms d'intervenants dans vos enregistrements",
+ "times": "fois",
+ "title": "Gérer les Intervenants",
+ "used": "Utilisé"
+ },
+ "messages": {
+ "copiedToClipboard": "Copié dans le presse-papiers",
+ "downloadStarted": "Téléchargement commencé",
+ "notesUpdated": "Notes mises à jour avec succès",
+ "passwordChanged": "Mot de passe changé avec succès",
+ "profileUpdated": "Profil mis à jour avec succès",
+ "recordingDeleted": "Enregistrement supprimé avec succès",
+ "recordingSaved": "Enregistrement sauvegardé avec succès",
+ "settingsSaved": "Paramètres enregistrés avec succès",
+ "summaryGenerated": "Résumé généré avec succès",
+ "tagAdded": "Étiquette ajoutée avec succès",
+ "tagRemoved": "Étiquette supprimée avec succès",
+ "transcriptionUpdated": "Transcription mise à jour avec succès"
+ },
+ "metadata": {
+ "cancelEdit": "Annuler",
+ "createdAt": "Créé",
+ "duration": "Durée",
+ "editMetadata": "Modifier les Métadonnées",
+ "fileName": "Nom du Fichier",
+ "fileSize": "Taille du Fichier",
+ "language": "Langue",
+ "meetingDate": "Date de Réunion",
+ "processingTime": "Temps de Traitement",
+ "saveMetadata": "Enregistrer",
+ "status": "Statut",
+ "title": "Métadonnées",
+ "updatedAt": "Mis à jour",
+ "wordCount": "Nombre de Mots"
+ },
+ "modal": {
+ "colorScheme": "Schéma de Couleurs",
+ "deleteRecording": "Supprimer l'Enregistrement",
+ "editAsrTranscription": "Modifier la Transcription ASR",
+ "editRecording": "Modifier l'Enregistrement",
+ "editTags": "Modifier les Étiquettes d'Enregistrement",
+ "editTranscription": "Modifier la Transcription",
+ "identifySpeakers": "Identifier les Orateurs",
+ "recordingNotice": "Avis d'Enregistrement",
+ "reprocessSummary": "Retraiter le Résumé",
+ "reprocessTranscription": "Retraiter la Transcription",
+ "resetStatus": "Réinitialiser le Statut de l'Enregistrement?",
+ "shareRecording": "Partager l'Enregistrement",
+ "sharedTranscripts": "Mes Transcriptions Partagées",
+ "systemAudioHelp": "Aide Audio Système"
+ },
+ "nav": {
+ "account": "Compte",
+ "accountSettings": "Paramètres du Compte",
+ "admin": "Administration",
+ "adminDashboard": "Tableau de Bord Admin",
+ "darkMode": "Mode Sombre",
+ "home": "Accueil",
+ "language": "Langue",
+ "lightMode": "Mode Clair",
+ "newRecording": "Nouvel Enregistrement",
+ "recording": "Enregistrement",
+ "settings": "Paramètres",
+ "signOut": "Déconnexion",
+ "upload": "Télécharger",
+ "userProfile": "Profil Utilisateur"
+ },
+ "notes": {
+ "cancelEdit": "Annuler la Modification",
+ "characterCount": "{{count}} caractère",
+ "characterCountPlural": "{{count}} caractères",
+ "editNotes": "Modifier les Notes",
+ "lastUpdated": "Dernière mise à jour",
+ "placeholder": "Ajoutez vos notes ici...",
+ "saveNotes": "Enregistrer les Notes",
+ "title": "Notes"
+ },
+ "recording": {
+ "acceptDisclaimer": "J'accepte",
+ "cancelRecording": "Annuler",
+ "disclaimer": "Avertissement d'Enregistrement",
+ "microphone": "Microphone",
+ "microphoneAndSystem": "Microphone + Système",
+ "microphonePermissionDenied": "Permission du microphone refusée",
+ "notes": "Notes",
+ "notesPlaceholder": "Ajouter des notes sur cet enregistrement...",
+ "pauseRecording": "Pause",
+ "recordingFailed": "L'enregistrement a échoué",
+ "recordingInProgress": "Enregistrement en cours...",
+ "recordingSize": "Taille Estimée",
+ "recordingStopped": "Enregistrement arrêté",
+ "recordingTime": "Temps d'Enregistrement",
+ "resumeRecording": "Reprendre",
+ "saveRecording": "Enregistrer l'Enregistrement",
+ "startRecording": "Démarrer l'Enregistrement",
+ "stopRecording": "Arrêter l'Enregistrement",
+ "systemAudio": "Audio Système",
+ "systemAudioNotSupported": "L'enregistrement audio système n'est pas pris en charge dans ce navigateur",
+ "title": "Enregistrement Audio"
+ },
+ "reprocessModal": {
+ "audioReTranscribedFromScratch": "L'audio sera re-transcrit à partir de zéro. Cela régénérera également le titre et le résumé basés sur la nouvelle transcription.",
+ "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 titre ou du résumé sera écrasée.",
+ "newTitleAndSummary": "Un nouveau titre et résumé seront générés basés sur la transcription existante."
+ },
+ "settings": {
+ "apiKeys": "Clés API",
+ "appearance": "Apparence",
+ "changePassword": "Changer le Mot de Passe",
+ "dataExport": "Export de Données",
+ "deleteAccount": "Supprimer le Compte",
+ "integrations": "Intégrations",
+ "language": "Langue",
+ "notifications": "Notifications",
+ "preferences": "Préférences",
+ "privacy": "Confidentialité",
+ "profile": "Profil",
+ "security": "Sécurité",
+ "theme": "Thème",
+ "title": "Paramètres",
+ "twoFactorAuth": "Authentification à Deux Facteurs"
+ },
+ "sharedTranscripts": {
+ "noSharedTranscripts": "Vous n'avez encore partagé aucune transcription."
+ },
+ "sharedTranscriptsPage": {
+ "noSharedTranscripts": "Vous n'avez pas encore partagé de transcriptions."
+ },
+ "sidebar": {
+ "advancedSearch": "Recherche Avancée",
+ "dateRange": "Plage de Dates",
+ "filters": "Filtres",
+ "highlighted": "Mis en Évidence",
+ "inbox": "Boîte de Réception",
+ "lastMonth": "Mois Dernier",
+ "lastWeek": "Semaine Dernière",
+ "loadMore": "Charger Plus",
+ "markAsRead": "Mark as read",
+ "moveToInbox": "Move to Inbox",
+ "noRecordings": "Aucun enregistrement trouvé",
+ "older": "Plus Ancien",
+ "removeFromHighlighted": "Remove from starred",
+ "searchRecordings": "Rechercher des enregistrements...",
+ "sortBy": "Trier Par",
+ "sortByDate": "Date de Création",
+ "sortByMeetingDate": "Date de Réunion",
+ "tags": "Étiquettes",
+ "thisMonth": "Ce Mois",
+ "thisWeek": "Cette Semaine",
+ "today": "Aujourd'hui",
+ "totalRecordings": "{{count}} enregistrement",
+ "totalRecordingsPlural": "{{count}} enregistrements",
+ "yesterday": "Hier"
+ },
+ "status": {
+ "completed": "Terminé",
+ "failed": "Échec",
+ "processing": "Traitement",
+ "queued": "En file d'attente",
+ "stuck": "Réinitialiser le traitement bloqué",
+ "summarizing": "Résumé",
+ "transcribing": "Transcription",
+ "uploading": "Téléchargement"
+ },
+ "summary": {
+ "actionItems": "Actions à Mener",
+ "cancelEdit": "Annuler la Modification",
+ "decisions": "Décisions",
+ "editSummary": "Modifier le Résumé",
+ "generateSummary": "Générer un Résumé",
+ "keyPoints": "Points Clés",
+ "noSummary": "Aucun résumé disponible",
+ "participants": "Participants",
+ "regenerateSummary": "Régénérer le Résumé",
+ "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é"
+ },
+ "tagManagement": {
+ "asrDefaults": "Paramètres ASR par Défaut",
+ "createTag": "Créer une Étiquette",
+ "customPrompt": "Invite Personnalisée",
+ "description": "Organisez vos enregistrements avec des étiquettes personnalisées. Chaque étiquette peut avoir sa propre invite de résumé et ses paramètres ASR par défaut.",
+ "maxSpeakers": "Max",
+ "minSpeakers": "Min",
+ "noTags": "Vous n'avez pas encore créé d'étiquettes."
+ },
+ "tags": {
+ "addTag": "Ajouter une Étiquette",
+ "clearTagFilter": "Effacer le filtre",
+ "createTag": "Créer une Étiquette",
+ "filterByTag": "Filtrer par étiquette",
+ "manageAllTags": "Gérer Toutes les Étiquettes",
+ "noTags": "Aucune étiquette",
+ "removeTag": "Supprimer l'Étiquette",
+ "tagColor": "Couleur de l'Étiquette",
+ "tagName": "Nom de l'Étiquette",
+ "title": "Étiquettes"
+ },
+ "tagsModal": {
+ "addTags": "Ajouter des Étiquettes",
+ "currentTags": "Étiquettes Actuelles",
+ "done": "Terminé",
+ "noTagsAssigned": "Aucune étiquette assignée à cet enregistrement",
+ "searchTags": "Rechercher des étiquettes..."
+ },
+ "time": {
+ "dayAgo": "Il y a 1 jour",
+ "daysAgo": "Il y a {{count}} jours",
+ "hourAgo": "Il y a 1 heure",
+ "hoursAgo": "Il y a {{count}} heures",
+ "justNow": "À l'instant",
+ "minuteAgo": "Il y a 1 minute",
+ "minutesAgo": "Il y a {{count}} minutes",
+ "monthAgo": "Il y a 1 mois",
+ "monthsAgo": "Il y a {{count}} mois",
+ "weekAgo": "Il y a 1 semaine",
+ "weeksAgo": "Il y a {{count}} semaines",
+ "yearAgo": "Il y a 1 an",
+ "yearsAgo": "Il y a {{count}} ans"
+ },
+ "transcription": {
+ "autoIdentifySpeakers": "Identifier Automatiquement les Orateurs",
+ "simple": "Simple",
+ "bubble": "Bulle",
+ "copy": "Copier",
+ "edit": "Éditer",
+ "cancelEdit": "Annuler la Modification",
+ "copyToClipboard": "Copier dans le Presse-papiers",
+ "downloadTranscript": "Télécharger la Transcription",
+ "editSpeakers": "Modifier les Orateurs",
+ "editTranscription": "Modifier la Transcription",
+ "highlightSearchResults": "Surligner les résultats de recherche",
+ "noTranscription": "Aucune transcription disponible",
+ "regenerateTranscription": "Régénérer la Transcription",
+ "saveTranscription": "Enregistrer la Transcription",
+ "searchInTranscript": "Rechercher dans la transcription...",
+ "speaker": "Orateur {{number}}",
+ "speakerLabels": "Étiquettes d'Orateur",
+ "title": "Transcription",
+ "unknownSpeaker": "Orateur Inconnu"
+ },
+ "upload": {
+ "chunking": "Les gros fichiers seront automatiquement divisés pour le traitement",
+ "completed": "Terminé",
+ "dropzone": "Glissez et déposez des fichiers audio ici, ou cliquez pour parcourir",
+ "failed": "Échec",
+ "maxFileSize": "Taille maximale du fichier",
+ "queued": "En file d'attente",
+ "selectFiles": "Sélectionner des Fichiers",
+ "summarizing": "Résumé...",
+ "supportedFormats": "Formats pris en charge",
+ "title": "Télécharger Audio",
+ "transcribing": "Transcription...",
+ "untitled": "Untitled Recording",
+ "uploadProgress": "Progression du Téléchargement",
+ "willAutoSummarize": "Résumé automatique après la transcription"
+ },
+ "uploadProgress": {
+ "title": "Progression du Téléchargement"
+ }
+}
\ No newline at end of file
diff --git a/static/locales/zh.json b/static/locales/zh.json
new file mode 100644
index 00000000..cc1d27fb
--- /dev/null
+++ b/static/locales/zh.json
@@ -0,0 +1,981 @@
+{
+ "aboutPage": {
+ "aiSummarization": "AI 摘要生成",
+ "aiSummarizationDesc": "集成 OpenRouter 和 Ollama,支持自定义提示词",
+ "asrEnabled": "ASR 已启用",
+ "asrEndpoint": "ASR 端点",
+ "audioTranscription": "音频转录",
+ "audioTranscriptionDesc": "支持 Whisper API 和自定义 ASR,准确率高",
+ "backend": "后端",
+ "database": "数据库",
+ "deployment": "部署",
+ "dockerDescription": "官方 Docker 镜像",
+ "dockerHub": "Docker Hub",
+ "documentation": "文档",
+ "documentationDescription": "设置指南和用户手册",
+ "endpoint": "端点",
+ "frontend": "前端",
+ "githubDescription": "源代码、问题和发布",
+ "githubRepository": "GitHub 仓库",
+ "inquireMode": "查询模式",
+ "inquireModeDesc": "在所有录音中进行语义搜索",
+ "interactiveChat": "交互式聊天",
+ "interactiveChatDesc": "使用 AI 与您的转录内容对话",
+ "keyFeatures": "主要功能",
+ "largeLanguageModel": "大语言模型",
+ "model": "模型",
+ "projectDescription": "通过 AI 驱动的转录、摘要和交互式聊天功能,将您的音频录音转换为有组织、可搜索的笔记。",
+ "projectLinks": "项目链接",
+ "sharingExport": "分享和导出",
+ "sharingExportDesc": "分享录音并导出为各种格式",
+ "speakerDiarization": "说话人分离",
+ "speakerDiarizationDesc": "自动识别和标记不同的说话人",
+ "speechRecognition": "语音识别",
+ "systemConfiguration": "系统配置",
+ "tagline": "AI 驱动的音频转录和笔记工具",
+ "technologyStack": "技术栈",
+ "title": "关于",
+ "version": "版本",
+ "whisperApi": "Whisper API",
+ "systemInformation": "系统信息",
+ "techStack": "技术栈",
+ "whisperModel": "Whisper 模型"
+ },
+ "aboutPageDetails": {
+ "aiSummarizationDesc": "集成 OpenRouter 和 Ollama,支持自定义提示词",
+ "asrEnabled": "ASR 已启用",
+ "asrEndpoint": "ASR 端点",
+ "audioTranscriptionDesc": "支持 Whisper API 和自定义 ASR,准确率高",
+ "backend": "后端",
+ "database": "数据库",
+ "deployment": "部署",
+ "dockerDescription": "官方 Docker 镜像",
+ "documentationDescription": "设置指南和用户手册",
+ "endpoint": "端点",
+ "frontend": "前端",
+ "githubDescription": "源代码、问题和发布",
+ "inquireModeDesc": "在所有录音中进行语义搜索",
+ "interactiveChatDesc": "使用 AI 与您的转录内容对话",
+ "model": "模型",
+ "no": "否",
+ "sharingExportDesc": "分享录音并导出为各种格式",
+ "speakerDiarizationDesc": "自动识别和标记不同的说话人",
+ "whisperApi": "Whisper API",
+ "yes": "是",
+ "dockerHub": "Docker Hub",
+ "documentation": "文档",
+ "githubRepository": "GitHub 仓库",
+ "largeLanguageModel": "大语言模型",
+ "projectDescription": "通过 AI 驱动的转录、摘要和交互式聊天功能,将您的音频录音转换为有组织、可搜索的笔记。",
+ "whisperModel": "Whisper 模型"
+ },
+ "account": {
+ "accountActions": "账户操作",
+ "changePassword": "更改密码",
+ "chooseLanguageForInterface": "选择应用程序界面语言",
+ "companyOrganization": "公司/组织",
+ "completedRecordings": "已完成",
+ "email": "邮箱",
+ "failedRecordings": "失败",
+ "fullName": "全名",
+ "goToRecordings": "前往录音",
+ "interfaceLanguage": "界面语言",
+ "jobTitle": "职位",
+ "languageForSummaries": "标题、摘要和聊天的语言。留空使用默认值(您所选模型的默认行为)",
+ "languagePreferences": "语言偏好",
+ "leaveBlankForAutoDetect": "留空以自动检测语言",
+ "manageSpeakers": "管理发言人",
+ "personalInfo": "个人信息",
+ "preferredOutputLanguage": "聊天机器人和摘要的首选语言",
+ "processingRecordings": "处理中",
+ "saveAllPreferences": "保存所有偏好设置",
+ "statistics": "账户统计",
+ "title": "账户信息",
+ "totalRecordings": "录音总数",
+ "transcriptionLanguage": "转录语言",
+ "userDetails": "用户详情",
+ "username": "用户名",
+ "about": "关于",
+ "accountSettings": "账户设置",
+ "customPrompts": "自定义提示",
+ "mySharedTranscripts": "我的共享转录",
+ "profile": "个人资料",
+ "sharedTranscripts": "共享转录",
+ "tagManagement": "标签管理",
+ "name": "姓名",
+ "outputLanguage": "输出语言"
+ },
+ "accountTabs": {
+ "about": "关于",
+ "customPrompts": "自定义提示",
+ "sharedTranscripts": "共享转录",
+ "tagManagement": "标签管理"
+ },
+ "admin": {
+ "title": "管理员",
+ "userMenu": "用户菜单",
+ "adminPanel": "管理面板",
+ "settings": "设置",
+ "mySharedTranscripts": "我的共享转录",
+ "tagManagement": "标签管理",
+ "admin": "管理员",
+ "colorScheme": "配色方案",
+ "logout": "退出登录"
+ },
+ "adminDashboard": {
+ "aboutInquireMode": "关于查询模式",
+ "actions": "操作",
+ "addNewUser": "添加新用户",
+ "addUser": "添加用户",
+ "additionalContext": "附加上下文",
+ "admin": "管理员",
+ "adminDefaultPrompt": "管理员默认提示",
+ "adminDefaultPromptDesc": "上面配置的提示(显示在此页面)",
+ "adminUser": "管理员用户",
+ "allRecordingsProcessed": "所有录音已处理完成!",
+ "available": "可用",
+ "characters": "字符",
+ "chunkSize": "块大小",
+ "complete": "完成",
+ "completedRecordings": "已完成",
+ "confirmPasswordLabel": "确认密码",
+ "contextNotes": {
+ "jsonConversion": "JSON 转录在发送前会转换为纯文本格式",
+ "modelConfig": "使用的模型通过 TEXT_MODEL_NAME 环境变量配置",
+ "tagPrompts": "如果存在多个标签提示,它们将按添加标签的顺序合并",
+ "transcriptLimit": "转录限制为可配置的字符数(默认:30,000)"
+ },
+ "defaultPromptInfo": "此默认提示将用于所有未在账户设置中设置自定义提示的用户。",
+ "defaultPrompts": "默认提示",
+ "defaultSummarizationPrompt": "默认摘要提示",
+ "editUser": "编辑用户",
+ "email": "邮箱",
+ "emailLabel": "邮箱",
+ "embeddingModel": "嵌入模型",
+ "embeddingsStatus": "嵌入状态",
+ "errors": {
+ "failedToLoadPrompt": "加载默认提示失败",
+ "failedToSavePrompt": "保存默认提示失败,请重试。",
+ "invalidFileSize": "请输入 1 到 10000 MB 之间的有效大小",
+ "invalidInteger": "请输入有效的整数",
+ "invalidNumber": "请输入有效的数字",
+ "maxTimeout": "超时不能超过 10 小时(36000 秒)",
+ "minCharacters": "请输入至少 1000 个字符",
+ "minTimeout": "超时必须至少为 60 秒"
+ },
+ "failedRecordings": "失败",
+ "id": "ID",
+ "inquireModeDescription": "查询模式允许用户使用自然语言问题搜索多个转录。它通过将转录分成块并使用 AI 模型创建可搜索的嵌入来工作。",
+ "languagePreferenceNote": "注意:如果用户设置了输出语言偏好,将添加\"确保您的回复使用 {language}\"。",
+ "lastUpdated": "最后更新",
+ "maxFileSizeHelp": "最大文件大小(兆字节)(1-10000 MB)",
+ "megabytes": "MB",
+ "minutes": "分钟",
+ "needProcessing": "需要处理",
+ "never": "从未",
+ "newPasswordLabel": "新密码(留空保持不变)",
+ "no": "否",
+ "noData": "无数据",
+ "noDescriptionAvailable": "无描述",
+ "noLimit": "无限制",
+ "notSet": "未设置",
+ "overlap": "重叠",
+ "passwordLabel": "密码",
+ "pendingRecordings": "待处理",
+ "placeholdersNote": "处理录音时,占位符会被实际值替换。",
+ "processAllRecordings": "处理所有录音",
+ "processNext10": "处理接下来的 10 个",
+ "processedForInquire": "已为查询处理",
+ "processing": "处理中...",
+ "processingActions": "处理操作",
+ "processingProgress": "处理进度",
+ "processingRecordings": "处理中",
+ "promptDescription": "当用户未设置自己的提示时,此提示将用于生成所有录音的摘要。",
+ "promptHierarchy": "提示优先级",
+ "promptPriorityDescription": "系统在选择使用哪个提示时使用以下优先级顺序:",
+ "promptResetMessage": "提示已重置为系统默认值。点击\"保存更改\"应用。",
+ "promptSavedSuccessfully": "默认提示保存成功!",
+ "recordingStatusDistribution": "录音状态分布",
+ "recordings": "录音",
+ "recordingsNeedProcessing": "{{count}} 个录音需要处理",
+ "refreshStatus": "刷新状态",
+ "resetToDefault": "重置为默认",
+ "saving": "保存中...",
+ "searchUsers": "搜索用户...",
+ "seconds": "秒",
+ "settings": {
+ "asrTimeoutDesc": "等待 ASR 转录完成的最大时间(秒)。默认为 1800 秒(30 分钟)。",
+ "defaultSummaryPromptDesc": "用户未设置自己的提示时使用的默认摘要提示。这作为所有用户的基础提示。",
+ "maxFileSizeDesc": "允许的音频上传最大文件大小(兆字节)。",
+ "recordingDisclaimerDesc": "录音开始前向用户显示的法律免责声明。支持 Markdown 格式。留空以禁用。",
+ "transcriptLengthLimitDesc": "从转录发送到 LLM 进行摘要和聊天的最大字符数。使用 -1 表示无限制。"
+ },
+ "storageUsed": "已用存储",
+ "summarizationInstructions": "摘要说明",
+ "systemFallback": "系统回退",
+ "systemFallbackDesc": "如果以上都未设置,则使用硬编码默认值",
+ "systemPrompt": "系统提示",
+ "systemSettings": "系统设置",
+ "systemStatistics": "系统统计",
+ "tagCustomPrompt": "标签自定义提示",
+ "tagCustomPromptDesc": "如果录音有带自定义提示的标签",
+ "textSearchOnly": "仅文本搜索",
+ "timeoutRecommendation": "推荐:长音频文件使用 30-120 分钟",
+ "title": "管理仪表板",
+ "topUsers": "顶级用户",
+ "topUsersByStorage": "按存储排序的顶级用户",
+ "total": "总计",
+ "totalChunks": "总块数",
+ "totalQueries": "总查询数",
+ "totalRecordings": "总录音数",
+ "totalStorage": "总存储",
+ "totalUsers": "总用户数",
+ "updateUser": "更新用户",
+ "userCustomPrompt": "用户自定义提示",
+ "userCustomPromptDesc": "如果用户在账户设置中设置了自己的提示",
+ "userManagement": "用户管理",
+ "userMessageTemplate": "用户消息模板",
+ "username": "用户名",
+ "usernameLabel": "用户名",
+ "vectorDimensions": "向量维度",
+ "vectorStore": "向量存储",
+ "vectorStoreManagement": "向量存储管理",
+ "vectorStoreUpToDate": "向量存储是最新的",
+ "viewFullPromptStructure": "查看完整的 LLM 提示结构",
+ "yes": "是",
+ "allJobsCompleted": "所有任务已完成",
+ "asrConfigurationTitle": "ASR 配置",
+ "asrTimeout": "ASR 超时",
+ "asrTimeoutSeconds": "ASR 超时(秒)",
+ "asrTimeoutSecondsDesc": "ASR 处理的最大超时时间(秒)",
+ "blackHoleDirectory": "黑洞目录",
+ "buildingVectorStore": "构建向量存储",
+ "buildVectorStore": "构建向量存储",
+ "cancelAll": "取消全部",
+ "charactersWithLimit": "{{count}} 字符",
+ "clearBlackHoleJobs": "清除黑洞任务",
+ "confirmDeleteUser": "确认删除用户",
+ "confirmDeleteUserMessage": "您确定要删除用户 {{username}} 吗?",
+ "confirmPassword": "确认密码",
+ "customPrompts": "自定义提示",
+ "defaultPrompt": "默认提示",
+ "defaultSummaryPrompt": "默认摘要提示",
+ "deleteUser": "删除用户",
+ "description": "描述",
+ "editPrompt": "编辑提示",
+ "editSetting": "编辑设置",
+ "embeddingsInfo": "嵌入信息",
+ "enableBlackHole": "启用黑洞",
+ "failedJobs": "失败的任务",
+ "inquireMode": "查询模式",
+ "inquireModeSettings": "查询模式设置",
+ "isAdmin": "是管理员",
+ "isActive": "已激活",
+ "jobStatus": "任务状态",
+ "llmPromptTemplate": "LLM 提示模板",
+ "loadingInquireStatus": "加载查询状态...",
+ "maxFileSizeDesc": "最大文件大小(MB)",
+ "maxFileSizeMb": "最大文件大小 MB",
+ "monitorBlackHoleDirectory": "监控黑洞目录",
+ "name": "名称",
+ "password": "密码",
+ "pendingJobs": "待处理任务",
+ "processingJobs": "处理中任务",
+ "rebuildVectorStore": "重建向量存储",
+ "recordingDisclaimer": "录音免责声明",
+ "recordingsProcessed": "{{count}} 个录音已处理",
+ "saveDefaultPrompt": "保存默认提示",
+ "saveInquireSettings": "保存查询设置",
+ "saveSetting": "保存设置",
+ "saveUser": "保存用户",
+ "setting": "设置",
+ "settingsManagement": "设置管理",
+ "transcriptLengthLimit": "转录长度限制",
+ "transcriptLengthLimitDesc": "转录的最大字符数限制",
+ "users": "用户",
+ "value": "值",
+ "vectorStoreInfo": "向量存储信息",
+ "vectorStoreStatus": "向量存储状态"
+ },
+ "buttons": {
+ "cancel": "取消",
+ "clearAllFilters": "清除所有筛选",
+ "clearCompleted": "清除已完成的上传",
+ "clearSearchText": "清除搜索文本",
+ "close": "关闭",
+ "copyMessage": "复制消息",
+ "copyNotes": "复制笔记",
+ "copySummary": "复制摘要",
+ "copyToClipboard": "复制到剪贴板",
+ "createTag": "创建标签",
+ "deleteAll": "删除全部",
+ "deleteSpeaker": "删除发言人",
+ "deleteTag": "删除标签",
+ "deleteUser": "删除用户",
+ "downloadAsWord": "下载为Word文档",
+ "downloadChat": "下载聊天记录为Word文档",
+ "downloadNotes": "下载笔记为Word文档",
+ "downloadSummary": "下载摘要为Word文档",
+ "editNotes": "编辑笔记",
+ "editSetting": "编辑设置",
+ "editSummary": "编辑摘要",
+ "editTag": "编辑标签",
+ "editTags": "编辑标签",
+ "editTranscription": "编辑转录",
+ "editUser": "编辑用户",
+ "help": "帮助",
+ "identifySpeakers": "识别发言人",
+ "refresh": "刷新",
+ "reprocessSummary": "重新处理摘要",
+ "reprocessTranscription": "重新处理转录",
+ "reprocessWithAsr": "使用ASR重新处理",
+ "resetStuckProcessing": "重置卡住的处理",
+ "saveChanges": "保存更改",
+ "saveCustomPrompt": "保存自定义提示",
+ "shareRecording": "分享录音",
+ "toggleTheme": "切换主题",
+ "updateTag": "更新标签"
+ },
+ "changePasswordModal": {
+ "confirmPassword": "确认新密码",
+ "currentPassword": "当前密码",
+ "newPassword": "新密码",
+ "passwordRequirement": "密码必须至少 8 个字符",
+ "title": "更改密码"
+ },
+ "chat": {
+ "availableAfterTranscription": "转录完成后聊天功能将可用",
+ "chatWithTranscription": "与转录内容对话",
+ "clearChat": "清除聊天",
+ "error": "发送消息失败",
+ "noMessages": "暂无消息",
+ "placeholder": "询问有关此录音的问题...",
+ "placeholderWithHint": "询问有关此录音的问题...(按回车发送,Ctrl+回车换行)",
+ "send": "发送",
+ "suggestedQuestions": "建议问题",
+ "thinking": "思考中...",
+ "title": "聊天",
+ "whatAreActionItems": "有哪些行动项?",
+ "whatAreKeyPoints": "关键要点是什么?",
+ "whatWasDiscussed": "讨论了什么?",
+ "whoSaidWhat": "谁说了什么?"
+ },
+ "colorScheme": {
+ "chooseRecording": "从侧边栏选择一个录音以查看其转录和摘要",
+ "selectRecording": "选择录音",
+ "subtitle": "使用美观的颜色主题自定义您的界面",
+ "title": "配色方案"
+ },
+ "common": {
+ "back": "返回",
+ "cancel": "取消",
+ "close": "关闭",
+ "confirm": "确认",
+ "delete": "删除",
+ "deselectAll": "取消全选",
+ "download": "下载",
+ "edit": "编辑",
+ "error": "错误",
+ "failed": "失败",
+ "filter": "筛选",
+ "info": "信息",
+ "loading": "加载中...",
+ "new": "新建",
+ "next": "下一步",
+ "no": "否",
+ "noResults": "未找到结果",
+ "ok": "确定",
+ "or": "或",
+ "previous": "上一步",
+ "processing": "处理中...",
+ "refresh": "刷新",
+ "retry": "重试",
+ "save": "保存",
+ "search": "搜索",
+ "selectAll": "全选",
+ "sort": "排序",
+ "success": "成功",
+ "untitled": "无标题",
+ "upload": "上传",
+ "warning": "警告",
+ "yes": "是"
+ },
+ "customPrompts": {
+ "currentDefaultPrompt": "当前默认提示(如果上面留空则使用此提示)",
+ "promptDescription": "此提示将用于生成转录的摘要。它将覆盖管理员的默认提示。",
+ "promptPlaceholder": "描述您希望摘要的结构。留空以使用管理员的默认提示。",
+ "summaryGeneration": "摘要生成提示",
+ "tip1": "具体说明您希望在摘要中包含的部分",
+ "tip2": "使用清晰的格式说明(例如,\"使用项目符号\",\"创建编号列表\")",
+ "tip3": "指定您是否希望优先处理某些信息",
+ "tip4": "系统将自动向 AI 提供转录内容",
+ "tip5": "您的输出语言偏好(如果设置)将自动应用",
+ "tipsTitle": "编写有效提示的技巧",
+ "yourCustomPrompt": "您的自定义摘要提示"
+ },
+ "deleteAllSpeakersModal": {
+ "confirmMessage": "您确定要删除所有保存的发言人吗?此操作无法撤销。",
+ "title": "删除所有发言人"
+ },
+ "dialogs": {
+ "deleteRecording": {
+ "cancel": "取消",
+ "confirm": "删除",
+ "message": "您确定要删除此录音吗?此操作无法撤销。",
+ "title": "删除录音"
+ },
+ "deleteShare": {
+ "message": "您确定要删除此共享吗?这将撤销对公共链接的访问。",
+ "title": "删除共享"
+ },
+ "reprocessTranscription": {
+ "cancel": "取消",
+ "confirm": "重新处理",
+ "message": "您确定要重新处理此转录吗?当前转录将被替换。",
+ "title": "重新处理转录"
+ },
+ "unsavedChanges": {
+ "cancel": "取消",
+ "discard": "放弃",
+ "message": "您有未保存的更改。在离开之前是否要保存?",
+ "save": "保存",
+ "title": "未保存的更改"
+ }
+ },
+ "duration": {
+ "hours": "{{count}} 小时",
+ "hoursPlural": "{{count}} 小时",
+ "minutes": "{{count}} 分钟",
+ "minutesPlural": "{{count}} 分钟",
+ "seconds": "{{count}} 秒",
+ "secondsPlural": "{{count}} 秒"
+ },
+ "editTagModal": {
+ "asrDefaultSettings": "ASR 默认设置",
+ "asrSettingsDescription": "使用此标签进行 ASR 转录时,这些设置将默认应用",
+ "color": "颜色",
+ "colorDescription": "选择颜色以便识别",
+ "createTitle": "创建标签",
+ "customPrompt": "自定义摘要提示",
+ "customPromptPlaceholder": "可选:为带有此标签的录音生成摘要的自定义提示",
+ "defaultLanguage": "默认语言",
+ "defaultPromptPlaceholder": "Leer lassen, um Ihren Standard-Zusammenfassungs-Prompt zu verwenden",
+ "leaveBlankPrompt": "留空以使用您的默认摘要提示",
+ "maxSpeakers": "最大发言人数",
+ "minSpeakers": "最小发言人数",
+ "tagName": "标签名称 *",
+ "tagNamePlaceholder": "例如,会议、访谈",
+ "title": "编辑标签"
+ },
+ "errors": {
+ "audioRecordingFailed": "音频录制失败。请检查您的麦克风。",
+ "fileTooLarge": "文件太大",
+ "generic": "发生错误",
+ "loadingShares": "加载共享时出错",
+ "networkError": "网络错误。请检查您的连接。",
+ "notFound": "未找到",
+ "permissionDenied": "权限被拒绝",
+ "quotaExceeded": "存储配额已超出",
+ "serverError": "服务器错误。请稍后重试。",
+ "summaryFailed": "摘要生成失败。请重试。",
+ "transcriptionFailed": "转录失败。请重试。",
+ "unauthorized": "未授权",
+ "unsupportedFormat": "不支持的文件格式",
+ "uploadFailed": "上传失败。请重试。",
+ "validationError": "验证错误"
+ },
+ "fileSize": {
+ "bytes": "{{count}} B",
+ "gigabytes": "{{count}} GB",
+ "kilobytes": "{{count}} KB",
+ "megabytes": "{{count}} MB"
+ },
+ "form": {
+ "auto": "自动",
+ "autoDetect": "自动检测",
+ "dateFrom": "从",
+ "dateTo": "至",
+ "enterNotesMarkdown": "以Markdown格式输入笔记...",
+ "enterSummaryMarkdown": "以Markdown格式输入摘要...",
+ "language": "语言",
+ "maxSpeakers": "最多发言人数",
+ "meetingDate": "会议日期",
+ "minSpeakers": "最少发言人数",
+ "minutes": "分钟",
+ "notes": "笔记",
+ "notesPlaceholder": "以Markdown格式输入您的笔记...",
+ "optional": "可选",
+ "participants": "参与者",
+ "placeholderAuto": "自动",
+ "placeholderCharacterLimit": "输入字符限制(例如:30000)",
+ "placeholderMinutes": "分钟",
+ "placeholderOptional": "可选",
+ "placeholderSeconds": "秒",
+ "placeholderSizeMB": "输入大小(MB)",
+ "searchSpeakers": "搜索发言人...",
+ "searchTags": "搜索标签...",
+ "seconds": "秒",
+ "shareNotes": "分享笔记",
+ "shareSummary": "分享摘要",
+ "shareableLink": "可分享链接",
+ "summaryPromptPlaceholder": "输入默认摘要提示...",
+ "title": "标题",
+ "yourFullName": "您的全名"
+ },
+ "help": {
+ "actions": "操作",
+ "activeFilters": "活动筛选器",
+ "advancedAsrOptions": "高级 ASR 选项",
+ "allRecordingsLoaded": "已加载所有录音",
+ "approachingLimit": "接近 {{limit}}MB 限制",
+ "askAboutTranscription": "询问有关此转录的问题",
+ "audioPlayer": "音频播放器",
+ "autoIdentify": "自动识别",
+ "bothAudioDesc": "录制您的声音 + 会议参与者(推荐用于在线会议)",
+ "clearFilters": "清除筛选",
+ "clickToAddNotes": "点击添加笔记...",
+ "colorRepeats": "颜色从发言人 {{number}} 开始重复",
+ "completedFiles": "已完成文件",
+ "confirmReprocessingTitle": "确认重新处理",
+ "copyMessage": "复制消息",
+ "createPublicLink": "创建公共链接以分享此录音。分享仅在安全(HTTPS)连接上可用。",
+ "createTags": "创建标签",
+ "discard": "放弃",
+ "endTime": "结束",
+ "enterNameFor": "输入名称",
+ "entireScreen": "整个屏幕",
+ "estimatedSize": "预计大小",
+ "generatingSummary": "生成摘要中...",
+ "howToRecordSystemAudio": "如何录制系统音频",
+ "importantNote": "重要提示",
+ "lines": "{{count}} 行",
+ "loadingMore": "加载更多录音中...",
+ "loadingRecordings": "加载录音中...",
+ "me": "Me",
+ "microphoneDesc": "仅录制您的声音",
+ "modelReasoning": "模型推理",
+ "moreSpeakersThanColors": "发言人数超过可用颜色数",
+ "noDateSet": "未设置日期",
+ "noParticipants": "无参与者",
+ "noTagsCreated": "尚未创建标签。",
+ "processingTime": "处理时间",
+ "processingTimeDescription": "这可能需要几分钟完成。处理期间您可以继续使用应用。",
+ "processingTranscription": "处理转录中...",
+ "recordSystemSteps1": "点击\"录制系统音频\"或\"录制两者\"。",
+ "recordSystemSteps2": "在弹出窗口中,选择",
+ "recordSystemSteps3": "确保勾选显示的框",
+ "recordingFinished": "录音完成",
+ "recordingInProgress": "录音进行中...",
+ "regenerateSummaryAfterNames": "更新名称后重新生成摘要",
+ "sentence": "句子",
+ "shareSystemAudio": "共享系统音频",
+ "shareTabAudio": "共享标签页音频",
+ "sharedOn": "共享于",
+ "sharingWindowNoAudio": "共享\"窗口\"不会捕获音频。",
+ "speakerCount": "发言人",
+ "specificBrowserTab": "特定浏览器标签页",
+ "startTime": "开始",
+ "systemAudioDesc": "录制会议参与者和系统声音",
+ "tagManagement": "标签管理",
+ "thisActionCannotBeUndone": "此操作无法撤销。",
+ "toCaptureAudioFromMeetings": "要从会议或其他应用捕获音频,您必须共享屏幕或浏览器标签页。",
+ "troubleshooting": "故障排除",
+ "tryAdjustingSearch": "尝试调整您的搜索或",
+ "unsupportedBrowser": "不支持的浏览器",
+ "untitled": "无标题录音",
+ "uploadRecordingNotes": "上传录音和笔记",
+ "whatWillHappen": "会发生什么?",
+ "whyNotWorking": "为什么不工作?",
+ "youHaveXSpeakers": "您有 {{count}} 位发言人,但只有 8 种独特的颜色可用。颜色将在第 8 位发言人后重复。",
+ "expandAll": "全部展开",
+ "failedReprocess": "重新处理失败",
+ "filterByTag": "按标签筛选",
+ "filterOptions": "筛选选项",
+ "finishDrop": "完成拖放以上传文件",
+ "hideAll": "全部隐藏",
+ "highlighted": "已标记",
+ "inProgress": "进行中",
+ "markdownEditor": "Markdown 编辑器",
+ "meetingDate": "会议日期",
+ "meetingParticipants": "会议参与者",
+ "microphoneOnly": "仅麦克风",
+ "microphoneOnlyDesc": "仅录制您的声音(用于独自工作或面对面会议)",
+ "minutes": "分钟",
+ "newTranscriptions": "新转录",
+ "noRecordingsFound": "未找到录音",
+ "notes": "笔记",
+ "or": "或",
+ "participants": "参与者",
+ "playPause": "播放/暂停",
+ "recordingSettings": "录音设置",
+ "recordingStatus": "录音状态",
+ "reprocessed": "已重新处理",
+ "seconds": "秒",
+ "shareableLink": "可分享链接",
+ "showAll": "显示全部",
+ "showLess": "显示更少",
+ "showMore": "显示更多",
+ "speaker": "发言人",
+ "speakerName": "发言人名称",
+ "speakerNamesUpdated": "发言人名称已更新",
+ "speakers": "发言人",
+ "startRecording": "开始录音",
+ "stopRecording": "停止录音",
+ "summary": "摘要",
+ "systemAudioBoth": "系统音频 + 麦克风",
+ "tags": "标签",
+ "tapToAddNotes": "点击添加笔记...",
+ "title": "标题",
+ "totalDuration": "总时长",
+ "transcription": "转录",
+ "transcriptionSaved": "转录已保存",
+ "updateSpeakerNames": "更新发言人名称",
+ "uploadComplete": "上传完成",
+ "uploadFailed": "上传失败",
+ "uploadFiles": "上传文件",
+ "uploading": "上传中",
+ "viewDetails": "查看详情",
+ "waitingToUpload": "等待上传"
+ },
+ "inquire": {
+ "title": "查询",
+ "filters": "筛选器",
+ "clearAll": "清除全部",
+ "tags": "标签",
+ "speakers": "发言人",
+ "dateRange": "日期范围",
+ "from": "开始日期",
+ "to": "结束日期",
+ "noSpeakerData": "无发言人数据",
+ "speakerRequirement": "发言人识别需要包含多个发言人的录音",
+ "activeFilters": "活动筛选器:",
+ "tagsCount": "个标签",
+ "speakersCount": "个发言人",
+ "dateRangeActive": "日期范围已激活",
+ "filtersActive": "筛选器已激活",
+ "askQuestions": "询问您的转录内容",
+ "selectFilters": "在左侧选择筛选器以缩小转录范围,然后提问以从录音中获得见解。",
+ "exampleQuestions": "示例问题:",
+ "exampleQuestion1": "\"讨论了哪些行动项目?\"",
+ "exampleQuestion2": "\"我们什么时候决定更改时间表?\"",
+ "exampleQuestion3": "\"对预算提出了什么担忧?\"",
+ "exampleQuestion4": "\"谁负责营销任务?\"",
+ "placeholder": "询问关于您筛选的转录内容...",
+ "sendHint": "按Enter发送 • Ctrl+Enter换行"
+ },
+ "languages": {
+ "ar": "阿拉伯语",
+ "de": "德语",
+ "en": "英语",
+ "es": "西班牙语",
+ "fr": "法语",
+ "hi": "印地语",
+ "it": "意大利语",
+ "ja": "日语",
+ "ko": "韩语",
+ "nl": "荷兰语",
+ "pt": "葡萄牙语",
+ "ru": "俄语",
+ "zh": "中文"
+ },
+ "manageSpeakersModal": {
+ "created": "创建时间",
+ "description": "管理您保存的发言人。当您在录音中使用发言人名称时,这些会自动保存。",
+ "failedToLoad": "加载发言人失败",
+ "lastUsed": "最后使用",
+ "loadingSpeakers": "加载发言人中...",
+ "noSpeakersYet": "尚未保存发言人",
+ "speakersSaved": "已保存 {{count}} 位发言人",
+ "speakersWillAppear": "当您在录音中使用发言人名称时,发言人将显示在这里",
+ "times": "次",
+ "title": "管理发言人",
+ "used": "已使用"
+ },
+ "messages": {
+ "copiedToClipboard": "已复制到剪贴板",
+ "downloadStarted": "下载已开始",
+ "notesUpdated": "笔记更新成功",
+ "passwordChanged": "密码更改成功",
+ "profileUpdated": "个人资料更新成功",
+ "recordingDeleted": "录音删除成功",
+ "recordingSaved": "录音保存成功",
+ "settingsSaved": "设置保存成功",
+ "summaryGenerated": "摘要生成成功",
+ "tagAdded": "标签添加成功",
+ "tagRemoved": "标签删除成功",
+ "transcriptionUpdated": "转录更新成功"
+ },
+ "metadata": {
+ "cancelEdit": "取消",
+ "createdAt": "创建时间",
+ "duration": "时长",
+ "editMetadata": "编辑元数据",
+ "fileName": "文件名",
+ "fileSize": "文件大小",
+ "language": "语言",
+ "meetingDate": "会议日期",
+ "processingTime": "处理时间",
+ "saveMetadata": "保存",
+ "status": "状态",
+ "title": "元数据",
+ "updatedAt": "更新时间",
+ "wordCount": "字数"
+ },
+ "modal": {
+ "colorScheme": "配色方案",
+ "deleteRecording": "删除录音",
+ "editAsrTranscription": "编辑 ASR 转录",
+ "editRecording": "编辑录音",
+ "editTags": "编辑录音标签",
+ "editTranscription": "编辑转录",
+ "identifySpeakers": "识别发言人",
+ "recordingNotice": "录音提示",
+ "reprocessSummary": "重新处理摘要",
+ "reprocessTranscription": "重新处理转录",
+ "resetStatus": "重置录音状态?",
+ "shareRecording": "分享录音",
+ "sharedTranscripts": "我的共享转录",
+ "systemAudioHelp": "系统音频帮助"
+ },
+ "nav": {
+ "account": "账户",
+ "accountSettings": "账户设置",
+ "admin": "管理",
+ "adminDashboard": "管理面板",
+ "darkMode": "深色模式",
+ "home": "主页",
+ "language": "语言",
+ "lightMode": "浅色模式",
+ "newRecording": "新录音",
+ "recording": "录音",
+ "settings": "设置",
+ "signOut": "退出登录",
+ "upload": "上传",
+ "userProfile": "用户资料"
+ },
+ "notes": {
+ "cancelEdit": "取消编辑",
+ "characterCount": "{{count}} 个字符",
+ "characterCountPlural": "{{count}} 个字符",
+ "editNotes": "编辑笔记",
+ "lastUpdated": "最后更新",
+ "placeholder": "在此添加您的笔记...",
+ "saveNotes": "保存笔记",
+ "title": "笔记"
+ },
+ "recording": {
+ "acceptDisclaimer": "我接受",
+ "cancelRecording": "取消",
+ "disclaimer": "录音免责声明",
+ "microphone": "麦克风",
+ "microphoneAndSystem": "麦克风 + 系统",
+ "microphonePermissionDenied": "麦克风权限被拒绝",
+ "notes": "笔记",
+ "notesPlaceholder": "添加关于此录音的笔记...",
+ "pauseRecording": "暂停",
+ "recordingFailed": "录音失败",
+ "recordingInProgress": "录音进行中...",
+ "recordingSize": "预计大小",
+ "recordingStopped": "录音已停止",
+ "recordingTime": "录音时长",
+ "resumeRecording": "恢复",
+ "saveRecording": "保存录音",
+ "startRecording": "开始录音",
+ "stopRecording": "停止录音",
+ "systemAudio": "系统音频",
+ "systemAudioNotSupported": "此浏览器不支持系统音频录制",
+ "title": "音频录制"
+ },
+ "reprocessModal": {
+ "audioReTranscribedFromScratch": "音频将从头重新转录。这也将基于新转录重新生成标题和摘要。",
+ "audioReTranscribedWithAsr": "音频将使用 ASR 端点重新转录。这包括说话人分离,并将重新生成标题和摘要。",
+ "manualEditsOverwritten": "对转录、标题或摘要的任何手动编辑都将被覆盖。",
+ "manualEditsOverwrittenSummary": "对标题或摘要的任何手动编辑都将被覆盖。",
+ "newTitleAndSummary": "将基于现有转录生成新的标题和摘要。"
+ },
+ "settings": {
+ "apiKeys": "API密钥",
+ "appearance": "外观",
+ "changePassword": "更改密码",
+ "dataExport": "数据导出",
+ "deleteAccount": "删除账户",
+ "integrations": "集成",
+ "language": "语言",
+ "notifications": "通知",
+ "preferences": "偏好设置",
+ "privacy": "隐私",
+ "profile": "个人资料",
+ "security": "安全",
+ "theme": "主题",
+ "title": "设置",
+ "twoFactorAuth": "双因素认证"
+ },
+ "sharedTranscripts": {
+ "noSharedTranscripts": "您尚未分享任何转录。"
+ },
+ "sharedTranscriptsPage": {
+ "noSharedTranscripts": "您尚未分享任何转录。"
+ },
+ "sidebar": {
+ "advancedSearch": "高级搜索",
+ "dateRange": "日期范围",
+ "filters": "筛选器",
+ "highlighted": "已标记",
+ "inbox": "收件箱",
+ "lastMonth": "上月",
+ "lastWeek": "上周",
+ "loadMore": "加载更多",
+ "markAsRead": "标记为已读",
+ "moveToInbox": "移至收件箱",
+ "noRecordings": "没有录音",
+ "older": "更早",
+ "removeFromHighlighted": "取消标记",
+ "searchRecordings": "搜索录音",
+ "sortBy": "排序方式",
+ "sortByDate": "按日期排序",
+ "sortByMeetingDate": "会议日期",
+ "tags": "标签",
+ "thisMonth": "本月",
+ "thisWeek": "本周",
+ "today": "今天",
+ "totalRecordings": "{{count}} 个录音",
+ "totalRecordingsPlural": "{{count}} 个录音",
+ "yesterday": "昨天",
+ "allRecordings": "所有录音",
+ "clearSearch": "清除搜索",
+ "filterByDate": "按日期筛选",
+ "filterByStatus": "按状态筛选",
+ "filterByTags": "按标签筛选",
+ "inquireMode": "查询模式",
+ "newRecording": "新录音",
+ "recordings": "录音",
+ "sortByDuration": "按时长排序",
+ "sortByName": "按名称排序",
+ "uploadFiles": "上传文件"
+ },
+ "status": {
+ "completed": "已完成",
+ "failed": "失败",
+ "processing": "处理中",
+ "queued": "排队中",
+ "stuck": "重置卡住的处理",
+ "summarizing": "生成摘要中",
+ "transcribing": "转录中",
+ "uploading": "上传中"
+ },
+ "summary": {
+ "actionItems": "行动事项",
+ "cancelEdit": "取消编辑",
+ "decisions": "决定",
+ "editSummary": "编辑摘要",
+ "generateSummary": "生成摘要",
+ "keyPoints": "关键要点",
+ "noSummary": "无可用摘要",
+ "participants": "参与者",
+ "regenerateSummary": "重新生成摘要",
+ "saveSummary": "保存摘要",
+ "summaryFailed": "摘要生成失败",
+ "summaryInProgress": "摘要生成中...",
+ "title": "摘要"
+ },
+ "tagManagement": {
+ "asrDefaults": "ASR 默认值",
+ "createTag": "创建标签",
+ "customPrompt": "自定义提示",
+ "description": "使用自定义标签组织您的录音。每个标签可以有自己的摘要提示和默认 ASR 设置。",
+ "maxSpeakers": "最大",
+ "minSpeakers": "最小",
+ "noTags": "您尚未创建任何标签。"
+ },
+ "tags": {
+ "addTag": "添加标签",
+ "clearTagFilter": "清除筛选",
+ "createTag": "创建标签",
+ "filterByTag": "按标签筛选",
+ "manageAllTags": "管理所有标签",
+ "noTags": "无标签",
+ "removeTag": "删除标签",
+ "tagColor": "标签颜色",
+ "tagName": "标签名称",
+ "title": "标签"
+ },
+ "tagsModal": {
+ "addTags": "添加标签",
+ "currentTags": "当前标签",
+ "done": "完成",
+ "noTagsAssigned": "此录音未分配标签",
+ "searchTags": "搜索标签..."
+ },
+ "time": {
+ "dayAgo": "1 天前",
+ "daysAgo": "{{count}} 天前",
+ "hourAgo": "1 小时前",
+ "hoursAgo": "{{count}} 小时前",
+ "justNow": "刚刚",
+ "minuteAgo": "1 分钟前",
+ "minutesAgo": "{{count}} 分钟前",
+ "monthAgo": "1 个月前",
+ "monthsAgo": "{{count}} 个月前",
+ "weekAgo": "1 周前",
+ "weeksAgo": "{{count}} 周前",
+ "yearAgo": "1 年前",
+ "yearsAgo": "{{count}} 年前"
+ },
+ "transcription": {
+ "autoIdentifySpeakers": "自动识别发言人",
+ "simple": "简单",
+ "bubble": "气泡",
+ "copy": "复制",
+ "edit": "编辑",
+ "cancelEdit": "取消编辑",
+ "copyToClipboard": "复制到剪贴板",
+ "downloadTranscript": "下载转录文本",
+ "editSpeakers": "编辑发言人",
+ "editTranscription": "编辑转录",
+ "highlightSearchResults": "高亮搜索结果",
+ "noTranscription": "无可用转录",
+ "regenerateTranscription": "重新生成转录",
+ "saveTranscription": "保存转录",
+ "searchInTranscript": "在转录中搜索...",
+ "speaker": "发言人 {{number}}",
+ "speakerLabels": "发言人标签",
+ "title": "转录",
+ "unknownSpeaker": "未知发言人"
+ },
+ "upload": {
+ "chunking": "大文件将自动分块处理",
+ "completed": "已完成",
+ "dropzone": "拖拽音频文件到此处,或点击浏览",
+ "failed": "失败",
+ "maxFileSize": "最大文件大小",
+ "queued": "排队中",
+ "selectFiles": "选择文件",
+ "summarizing": "生成摘要中...",
+ "supportedFormats": "支持的格式",
+ "title": "上传音频",
+ "transcribing": "转录中...",
+ "untitled": "无标题录音",
+ "uploadProgress": "上传进度",
+ "willAutoSummarize": "转录后将自动生成摘要"
+ },
+ "uploadProgress": {
+ "title": "上传进度"
+ },
+ "recordingView": {
+ "audioPlayer": "音频播放器",
+ "bubble": "气泡",
+ "chat": "聊天",
+ "copy": "复制",
+ "download": "下载",
+ "edit": "编辑",
+ "minutes": "分钟",
+ "notes": "笔记",
+ "participants": "参与者",
+ "save": "保存",
+ "share": "分享",
+ "simple": "简单",
+ "speakers": "发言人",
+ "summary": "摘要",
+ "transcription": "转录"
+ }
+}
\ No newline at end of file
diff --git a/templates/account.html b/templates/account.html
index bb35e4eb..22178989 100644
--- a/templates/account.html
+++ b/templates/account.html
@@ -6,10 +6,149 @@
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ title }} - Speakr</title>
<link rel="icon" href="{{ url_for('static', filename='img/favicon.ico') }}" type="image/svg+xml">
- <script src="https://cdn.tailwindcss.com"></script>
- <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
+ <!-- All dependencies bundled locally for offline support -->
+<script src="{{ url_for('static', filename='vendor/js/tailwind.min.js') }}"></script>
+ <!-- All dependencies bundled locally for offline support -->
+<link rel="stylesheet" href="{{ url_for('static', filename='vendor/css/fontawesome.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
+ <script src="{{ url_for('static', filename='js/i18n.js') }}"></script>
<script>
+ // Initialize i18n
+ let t = (key) => key; // Default fallback
+
+ async function initializeI18n(language) {
+ const userLanguage = language || "{{ user_language }}";
+
+ // Initialize the global i18n instance
+ if (window.i18n) {
+ await window.i18n.init(userLanguage);
+
+ // Create a shorthand translation function
+ t = (key, params) => window.i18n.t(key, params);
+
+ // Update all elements with data-i18n attribute
+ document.querySelectorAll('[data-i18n]').forEach(el => {
+ const key = el.getAttribute('data-i18n');
+ el.textContent = t(key);
+ });
+
+ // Update all elements with data-i18n-placeholder attribute
+ document.querySelectorAll('[data-i18n-placeholder]').forEach(el => {
+ const key = el.getAttribute('data-i18n-placeholder');
+ el.placeholder = t(key);
+ });
+ }
+ }
+
+ // Function to update all UI elements after language change
+ function updateAllUIElements() {
+ // Update all elements with data-i18n attribute
+ document.querySelectorAll('[data-i18n]').forEach(el => {
+ const key = el.getAttribute('data-i18n');
+ el.textContent = t(key);
+ });
+
+ // Update all elements with data-i18n-placeholder attribute
+ document.querySelectorAll('[data-i18n-placeholder]').forEach(el => {
+ const key = el.getAttribute('data-i18n-placeholder');
+ el.placeholder = t(key);
+ });
+
+ // Update language options in dropdown to show native names
+ const langSelect = document.getElementById('ui_language');
+ if (langSelect) {
+ const langOptions = {
+ 'en': 'English',
+ 'es': 'Español (Spanish)',
+ 'fr': 'Français (French)',
+ 'zh': '中文 (Chinese)',
+ 'de': 'Deutsch (German)'
+ };
+
+ Array.from(langSelect.options).forEach(option => {
+ if (langOptions[option.value]) {
+ option.textContent = langOptions[option.value];
+ }
+ });
+ }
+
+ // Force update any Vue or dynamic content by dispatching a custom event
+ window.dispatchEvent(new CustomEvent('language-changed', { detail: { language: window.i18n.currentLanguage } }));
+ }
+
+ // Function to change language immediately
+ async function changeLanguageImmediately(newLanguage) {
+ try {
+ // Show loading indicator
+ const uiLanguageSelect = document.getElementById('ui_language');
+ uiLanguageSelect.disabled = true;
+
+ // Add a loading message
+ const originalText = uiLanguageSelect.parentElement.querySelector('p').textContent;
+ const loadingMsg = uiLanguageSelect.parentElement.querySelector('p');
+ if (loadingMsg) {
+ loadingMsg.textContent = 'Applying language change...';
+ }
+
+ // Get CSRF token
+ const csrfToken = document.querySelector('meta[name="csrf-token"]')?.getAttribute('content');
+
+ // Create form data with just the language change
+ const formData = new FormData();
+ formData.append('csrf_token', csrfToken);
+ formData.append('user_name', document.getElementById('user_name').value || '');
+ formData.append('user_job_title', document.getElementById('user_job_title').value || '');
+ formData.append('user_company', document.getElementById('user_company').value || '');
+ formData.append('ui_language', newLanguage);
+ formData.append('transcription_language', document.getElementById('transcription_language').value || '');
+ formData.append('output_language', document.getElementById('output_language').value || '');
+
+ // Send AJAX request to update language preference
+ const response = await fetch('{{ url_for("account") }}', {
+ method: 'POST',
+ headers: {
+ 'X-Requested-With': 'XMLHttpRequest',
+ 'X-CSRFToken': csrfToken
+ },
+ body: formData
+ });
+
+ if (!response.ok) {
+ throw new Error(`HTTP ${response.status}: ${response.statusText}`);
+ }
+
+ // Store the new language in localStorage for other pages
+ localStorage.setItem('preferredLanguage', newLanguage);
+ localStorage.setItem('ui_language_changed', 'true');
+
+ // Store current tab to restore after reload
+ const activeTab = document.querySelector('.tab-link.border-\\[var\\(--border-accent\\)\\]');
+ if (activeTab) {
+ const tabName = activeTab.getAttribute('onclick')?.match(/show(\w+)Tab/)?.[1]?.toLowerCase();
+ if (tabName) {
+ localStorage.setItem('activeAccountTab', tabName);
+ }
+ }
+
+ // Reload the page to apply the new language completely
+ // This ensures all server-side rendered content is also updated
+ window.location.reload();
+
+ } catch (error) {
+ console.error('Error updating language:', error);
+ alert('Failed to update language. Please try again.');
+ // Revert the dropdown to previous value if update failed
+ document.getElementById('ui_language').value = currentUILanguage;
+ document.getElementById('ui_language').disabled = false;
+
+ // Restore original text if loading message was shown
+ const loadingMsg = document.getElementById('ui_language').parentElement.querySelector('p');
+ if (loadingMsg) {
+ loadingMsg.textContent = originalText;
+ }
+ }
+ }
+
// Function to apply the theme based on localStorage
function applyTheme() {
// Apply dark mode
@@ -40,6 +179,57 @@
}
applyTheme();
</script>
+ <style>
+ /* Custom scrollbar styling for Speakers Management */
+ #content-speakers .overflow-y-auto::-webkit-scrollbar {
+ width: 8px;
+ }
+
+ #content-speakers .overflow-y-auto::-webkit-scrollbar-track {
+ background: transparent;
+ border-radius: 4px;
+ }
+
+ #content-speakers .overflow-y-auto::-webkit-scrollbar-thumb {
+ background-color: var(--border-secondary);
+ border-radius: 4px;
+ transition: background-color 0.2s;
+ }
+
+ #content-speakers .overflow-y-auto::-webkit-scrollbar-thumb:hover {
+ background-color: var(--border-accent);
+ }
+
+ /* Ensure the content fits properly */
+ #content-speakers {
+ container-type: inline-size;
+ }
+
+ /* Responsive grid adjustments */
+ @container (max-width: 640px) {
+ #speakersTabGrid {
+ grid-template-columns: 1fr;
+ }
+ }
+
+ @container (min-width: 641px) and (max-width: 768px) {
+ #speakersTabGrid {
+ grid-template-columns: repeat(2, 1fr);
+ }
+ }
+
+ @container (min-width: 769px) and (max-width: 1024px) {
+ #speakersTabGrid {
+ grid-template-columns: repeat(3, 1fr);
+ }
+ }
+
+ @container (min-width: 1025px) {
+ #speakersTabGrid {
+ grid-template-columns: repeat(4, 1fr);
+ }
+ }
+ </style>
</head>
<body class="bg-[var(--bg-primary)] text-[var(--text-primary)]">
<div class="container mx-auto px-4 sm:px-6 lg:px-8 py-6 flex flex-col min-h-screen">
@@ -62,18 +252,18 @@
</button>
<div id="userDropdownMenu" class="hidden absolute right-0 mt-2 w-48 bg-[var(--bg-secondary)] border border-[var(--border-primary)] rounded-lg shadow-lg z-10">
<a href="{{ url_for('index') }}" class="block px-4 py-2 text-[var(--text-secondary)] hover:bg-[var(--bg-tertiary)] hover:text-[var(--text-accent)]">
- <i class="fas fa-home mr-2"></i> Home
+ <i class="fas fa-home mr-2"></i> <span data-i18n="nav.home">Home</span>
</a>
<a href="{{ url_for('account') }}" class="block px-4 py-2 text-[var(--text-accent)] bg-[var(--bg-accent)]">
- <i class="fas fa-user-circle mr-2"></i> Account
+ <i class="fas fa-user-circle mr-2"></i> <span data-i18n="nav.account">Account</span>
</a>
{% if current_user.is_admin %}
<a href="{{ url_for('admin') }}" class="block px-4 py-2 text-[var(--text-secondary)] hover:bg-[var(--bg-tertiary)] hover:text-[var(--text-accent)]">
- <i class="fas fa-user-shield mr-2"></i> Admin
+ <i class="fas fa-user-shield mr-2"></i> <span data-i18n="nav.admin">Admin</span>
</a>
{% endif %}
<a href="{{ url_for('logout') }}" class="block px-4 py-2 text-[var(--text-secondary)] hover:bg-[var(--bg-tertiary)] hover:text-[var(--text-danger)]">
- <i class="fas fa-sign-out-alt mr-2"></i> Logout
+ <i class="fas fa-sign-out-alt mr-2"></i> <span data-i18n="nav.signOut">Logout</span>
</a>
</div>
</div>
@@ -85,25 +275,28 @@
<div class="mb-6 border-b border-[var(--border-primary)] sm:border-b">
<nav class="tab-nav -mb-px flex flex-col sm:flex-row sm:space-x-8" aria-label="Tabs">
<a href="#" id="tab-account" class="flex items-center whitespace-nowrap py-3 sm:py-4 px-3 sm:px-1 border-b-2 sm:border-b-2 border-l-4 sm:border-l-0 font-medium text-sm border-[var(--border-accent)] text-[var(--text-accent)] bg-[var(--bg-tertiary)] sm:bg-transparent">
- <i class="fas fa-user-circle mr-2"></i><span>Account Information</span>
+ <i class="fas fa-user-circle mr-2"></i><span data-i18n="account.title">Account Information</span>
</a>
<a href="#" id="tab-prompts" class="flex items-center whitespace-nowrap py-3 sm:py-4 px-3 sm:px-1 border-b sm:border-b-2 border-l-4 sm:border-l-0 font-medium text-sm border-transparent text-[var(--text-muted)] hover:text-[var(--text-secondary)] hover:border-[var(--border-secondary)] hover:bg-[var(--bg-tertiary)] sm:hover:bg-transparent">
- <i class="fas fa-file-alt mr-2"></i><span>Custom Prompts</span>
+ <i class="fas fa-file-alt mr-2"></i><span data-i18n="accountTabs.customPrompts">Custom Prompts</span>
</a>
<a href="#" id="tab-shares" class="flex items-center whitespace-nowrap py-3 sm:py-4 px-3 sm:px-1 border-b sm:border-b-2 border-l-4 sm:border-l-0 font-medium text-sm border-transparent text-[var(--text-muted)] hover:text-[var(--text-secondary)] hover:border-[var(--border-secondary)] hover:bg-[var(--bg-tertiary)] sm:hover:bg-transparent">
- <i class="fas fa-share-alt mr-2"></i><span>Shared Transcripts</span>
+ <i class="fas fa-share-alt mr-2"></i><span data-i18n="accountTabs.sharedTranscripts">Shared Transcripts</span>
+ </a>
+ <a href="#" id="tab-speakers" class="flex items-center whitespace-nowrap py-3 sm:py-4 px-3 sm:px-1 border-b sm:border-b-2 border-l-4 sm:border-l-0 font-medium text-sm border-transparent text-[var(--text-muted)] hover:text-[var(--text-secondary)] hover:border-[var(--border-secondary)] hover:bg-[var(--bg-tertiary)] sm:hover:bg-transparent">
+ <i class="fas fa-users mr-2"></i><span data-i18n="accountTabs.speakersManagement">Speakers Management</span>
</a>
<a href="#" id="tab-tags" class="flex items-center whitespace-nowrap py-3 sm:py-4 px-3 sm:px-1 border-b sm:border-b-2 border-l-4 sm:border-l-0 font-medium text-sm border-transparent text-[var(--text-muted)] hover:text-[var(--text-secondary)] hover:border-[var(--border-secondary)] hover:bg-[var(--bg-tertiary)] sm:hover:bg-transparent">
- <i class="fas fa-tags mr-2"></i><span>Tag Management</span>
+ <i class="fas fa-tags mr-2"></i><span data-i18n="accountTabs.tagManagement">Tag Management</span>
</a>
<a href="#" id="tab-about" class="flex items-center whitespace-nowrap py-3 sm:py-4 px-3 sm:px-1 border-b sm:border-b-2 border-l-4 sm:border-l-0 font-medium text-sm border-transparent text-[var(--text-muted)] hover:text-[var(--text-secondary)] hover:border-[var(--border-secondary)] hover:bg-[var(--bg-tertiary)] sm:hover:bg-transparent">
- <i class="fas fa-info-circle mr-2"></i><span>About</span>
+ <i class="fas fa-info-circle mr-2"></i><span data-i18n="accountTabs.about">About</span>
</a>
</nav>
</div>
<div id="content-account">
- <h2 class="text-2xl font-semibold text-[var(--text-primary)] mb-6">Account Information</h2>
+ <h2 class="text-2xl font-semibold text-[var(--text-primary)] mb-6" data-i18n="account.title">Account Information</h2>
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
@@ -120,41 +313,52 @@
<form id="accountInfoForm" method="POST" action="{{ url_for('account') }}" class="space-y-6">
<div class="mb-6">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
- <h3 class="text-lg font-medium text-[var(--text-secondary)] mb-2">Personal Information</h3>
+ <h3 class="text-lg font-medium text-[var(--text-secondary)] mb-2" data-i18n="account.personalInfo">Personal Information</h3>
<div class="bg-[var(--bg-tertiary)] p-4 rounded-lg border border-[var(--border-primary)] space-y-4">
<div>
- <label for="user_name" class="block text-sm font-medium text-[var(--text-muted)]">Full Name</label>
- <input type="text" name="user_name" id="user_name" value="{{ current_user.name or '' }}" placeholder="Your full name" 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)]">
+ <label for="user_name" class="block text-sm font-medium text-[var(--text-muted)]" data-i18n="account.fullName">Full Name</label>
+ <input type="text" name="user_name" id="user_name" value="{{ current_user.name or '' }}" data-i18n-placeholder="form.yourFullName" 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)]">
</div>
<div>
- <label for="user_job_title" class="block text-sm font-medium text-[var(--text-muted)]">Job Title</label>
+ <label for="user_job_title" class="block text-sm font-medium text-[var(--text-muted)]" data-i18n="account.jobTitle">Job Title</label>
<input type="text" name="user_job_title" id="user_job_title" value="{{ current_user.job_title or '' }}" placeholder="e.g., Software Engineer" 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)]">
</div>
<div>
- <label for="user_company" class="block text-sm font-medium text-[var(--text-muted)]">Company / Organization</label>
+ <label for="user_company" class="block text-sm font-medium text-[var(--text-muted)]" data-i18n="account.companyOrganization">Company / Organization</label>
<input type="text" name="user_company" id="user_company" value="{{ current_user.company or '' }}" placeholder="e.g., Acme Corp" 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)]">
</div>
</div>
</div>
<div class="mb-6">
- <h3 class="text-lg font-medium text-[var(--text-secondary)] mb-2">Language Preferences</h3>
+ <h3 class="text-lg font-medium text-[var(--text-secondary)] mb-2" data-i18n="account.languagePreferences">Language Preferences</h3>
<div class="bg-[var(--bg-tertiary)] p-4 rounded-lg border border-[var(--border-primary)] space-y-4">
<div>
- <label for="transcription_language" class="block text-sm font-medium text-[var(--text-muted)]">Transcription Language</label>
+ <label for="ui_language" class="block text-sm font-medium text-[var(--text-muted)]" data-i18n="account.interfaceLanguage">Interface Language</label>
+ <select name="ui_language" id="ui_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="en" {% if current_user.ui_language == 'en' or not current_user.ui_language %}selected{% endif %}>English</option>
+ <option value="zh" {% if current_user.ui_language == 'zh' %}selected{% endif %}>中文 (Chinese)</option>
+ <option value="de" {% if current_user.ui_language == 'de' %}selected{% endif %}>Deutsch (German)</option>
+ <option value="es" {% if current_user.ui_language == 'es' %}selected{% endif %}>Español (Spanish)</option>
+ <option value="fr" {% if current_user.ui_language == 'fr' %}selected{% endif %}>Français (French)</option>
+ </select>
+ <p class="text-xs text-[var(--text-light)] mt-1" data-i18n="account.chooseLanguageForInterface">Choose the language for the application interface.</p>
+ </div>
+ <div>
+ <label for="transcription_language" class="block text-sm font-medium text-[var(--text-muted)]" data-i18n="account.transcriptionLanguage">Transcription Language</label>
<input type="text" name="transcription_language" id="transcription_language" value="{{ current_user.transcription_language or '' }}" placeholder="e.g., en, es, zh (ISO 639-1 code)" 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)]">
- <p class="text-xs text-[var(--text-light)] mt-1">Leave blank for auto-detection by transcription service.</p>
+ <p class="text-xs text-[var(--text-light)] mt-1" data-i18n="account.leaveBlankForAutoDetect">Leave blank for auto-detection by transcription service.</p>
</div>
<div>
- <label for="output_language" class="block text-sm font-medium text-[var(--text-muted)]">Preferred Output Language</label>
+ <label for="output_language" class="block text-sm font-medium text-[var(--text-muted)]" data-i18n="account.preferredOutputLanguage">Preferred Output Language</label>
<input type="text" name="output_language" id="output_language" value="{{ current_user.output_language or '' }}" placeholder="e.g., English, Spanish, Chinese" 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)]">
- <p class="text-xs text-[var(--text-light)] mt-1">Language for titles, summaries, and chat. Leave blank for default (default behavior of your chosen model).</p>
+ <p class="text-xs text-[var(--text-light)] mt-1" data-i18n="account.languageForSummaries">Language for titles, summaries, and chat. Leave blank for default (default behavior of your chosen model).</p>
</div>
</div>
</div>
<button type="submit" class="w-full inline-flex items-center justify-center px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-md hover:bg-[var(--bg-button-hover)] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[var(--border-focus)] transition-colors duration-200">
- <i class="fas fa-save mr-2"></i> Save All Preferences
+ <i class="fas fa-save mr-2"></i> <span data-i18n="account.saveAllPreferences">Save All Preferences</span>
</button>
</form>
</div>
@@ -162,12 +366,12 @@
<!-- Right Column: Stats, User Details, Account Actions -->
<div class="space-y-6">
<div>
- <h3 class="text-lg font-medium text-[var(--text-secondary)] mb-2">Account Statistics</h3>
+ <h3 class="text-lg font-medium text-[var(--text-secondary)] mb-2" data-i18n="account.statistics">Account Statistics</h3>
<div class="bg-[var(--bg-tertiary)] p-4 rounded-lg border border-[var(--border-primary)]">
<div class="grid grid-cols-2 gap-4">
<div class="text-center p-4 bg-[var(--bg-secondary)] rounded-lg border border-[var(--border-primary)] shadow-sm">
<span class="block text-3xl font-bold text-[var(--text-accent)]">{{ current_user.recordings|length }}</span>
- <span class="block text-sm text-[var(--text-muted)]">Total Recordings</span>
+ <span class="block text-sm text-[var(--text-muted)]" data-i18n="account.totalRecordings">Total Recordings</span>
</div>
<div class="text-center p-4 bg-[var(--bg-secondary)] rounded-lg border border-[var(--border-primary)] shadow-sm">
@@ -175,7 +379,7 @@
{% set completed_count = current_user.recordings|selectattr('status', 'equalto', 'COMPLETED')|list|length %}
{{ completed_count }}
</span>
- <span class="block text-sm text-[var(--text-muted)]">Completed</span>
+ <span class="block text-sm text-[var(--text-muted)]" data-i18n="account.completedRecordings">Completed</span>
</div>
<div class="text-center p-4 bg-[var(--bg-secondary)] rounded-lg border border-[var(--border-primary)] shadow-sm">
@@ -183,7 +387,7 @@
{% set processing_count = current_user.recordings|selectattr('status', 'in', ['PENDING', 'PROCESSING', 'SUMMARIZING'])|list|length %}
{{ processing_count }}
</span>
- <span class="block text-sm text-[var(--text-muted)]">Processing</span>
+ <span class="block text-sm text-[var(--text-muted)]" data-i18n="account.processingRecordings">Processing</span>
</div>
<div class="text-center p-4 bg-[var(--bg-secondary)] rounded-lg border border-[var(--border-primary)] shadow-sm">
@@ -191,17 +395,17 @@
{% set failed_count = current_user.recordings|selectattr('status', 'equalto', 'FAILED')|list|length %}
{{ failed_count }}
</span>
- <span class="block text-sm text-[var(--text-muted)]">Failed</span>
+ <span class="block text-sm text-[var(--text-muted)]" data-i18n="account.failedRecordings">Failed</span>
</div>
</div>
</div>
</div>
<div class="mt-6"> <!-- Added mt-6 for spacing, was mb-6 on User Details -->
- <h3 class="text-lg font-medium text-[var(--text-secondary)] mb-2">User Details</h3>
+ <h3 class="text-lg font-medium text-[var(--text-secondary)] mb-2" data-i18n="account.userDetails">User Details</h3>
<div class="bg-[var(--bg-tertiary)] p-4 rounded-lg border border-[var(--border-primary)]">
<div class="mb-3">
- <span class="block text-sm font-medium text-[var(--text-muted)]">Username</span>
+ <span class="block text-sm font-medium text-[var(--text-muted)]" data-i18n="account.username">Username</span>
<span class="block text-[var(--text-primary)]">{{ current_user.username }}</span>
</div>
<div class="mb-3">
@@ -212,16 +416,13 @@
</div>
<div class="mt-6"> <!-- Added mt-6 for spacing, was mt-8 on Account Actions -->
- <h3 class="text-lg font-medium text-[var(--text-secondary)] mb-2">Account Actions</h3>
+ <h3 class="text-lg font-medium text-[var(--text-secondary)] mb-2" data-i18n="account.accountActions">Account Actions</h3>
<div class="flex flex-col space-y-3">
<a href="{{ url_for('index') }}" class="inline-flex items-center px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-md hover:bg-[var(--bg-button-hover)] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[var(--border-focus)] transition-colors duration-200">
- <i class="fas fa-microphone mr-2"></i> Go to Recordings
+ <i class="fas fa-microphone mr-2"></i> <span data-i18n="account.goToRecordings">Go to Recordings</span>
</a>
<button id="changePasswordBtn" class="inline-flex items-center px-4 py-2 border border-[var(--border-secondary)] text-[var(--text-secondary)] rounded-md hover:bg-[var(--bg-tertiary)] hover:text-[var(--text-accent)] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[var(--border-focus)] transition-colors duration-200">
- <i class="fas fa-key mr-2"></i> Change Password
- </button>
- <button id="manageSpeakersBtn" class="inline-flex items-center px-4 py-2 border border-[var(--border-secondary)] text-[var(--text-secondary)] rounded-md hover:bg-[var(--bg-tertiary)] hover:text-[var(--text-accent)] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[var(--border-focus)] transition-colors duration-200">
- <i class="fas fa-users mr-2"></i> Manage Speakers
+ <i class="fas fa-key mr-2"></i> <span data-i18n="account.changePassword">Change Password</span>
</button>
</div>
</div>
@@ -230,30 +431,31 @@
</div>
<div id="content-prompts" class="hidden">
- <h2 class="text-2xl font-semibold text-[var(--text-primary)] mb-6">Custom Prompts</h2>
+ <h2 class="text-2xl font-semibold text-[var(--text-primary)] mb-6" data-i18n="accountTabs.customPrompts">Custom Prompts</h2>
<form id="customPromptsForm" method="POST" action="{{ url_for('account') }}" class="space-y-6">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
<div class="bg-[var(--bg-tertiary)] p-6 rounded-lg border border-[var(--border-primary)]">
- <h3 class="text-lg font-medium text-[var(--text-secondary)] mb-4">Summary Generation Prompt</h3>
+ <h3 class="text-lg font-medium text-[var(--text-secondary)] mb-4" data-i18n="customPrompts.summaryGeneration">Summary Generation Prompt</h3>
<div class="mb-4">
<label for="summary_prompt_custom" class="block text-sm font-medium text-[var(--text-muted)] mb-2">
- Your Custom Summary Prompt
+ <span data-i18n="customPrompts.yourCustomPrompt">Your Custom Summary Prompt</span>
</label>
<textarea name="summary_prompt" id="summary_prompt_custom" rows="8"
- placeholder="Describe how you want your summaries structured. Leave blank to use the admin's default prompt."
+ placeholder="Describe how you want your summaries structured. Leave blank to use the admin's default prompt."
+ data-i18n-placeholder="customPrompts.promptPlaceholder"
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)] sm:text-sm bg-[var(--bg-input)] text-[var(--text-primary)]">{{ current_user.summary_prompt or '' }}</textarea>
<p class="text-xs text-[var(--text-light)] mt-2">
- This prompt will be used to generate summaries for your transcriptions. It overrides the admin's default prompt.
+ <span data-i18n="customPrompts.promptDescription">This prompt will be used to generate summaries for your transcriptions. It overrides the admin's default prompt.</span>
</p>
</div>
<div class="mt-6 p-4 bg-[var(--bg-secondary)] rounded-lg border border-[var(--border-secondary)]">
<h4 class="text-sm font-semibold text-[var(--text-accent)] mb-2">
<i class="fas fa-info-circle mr-1"></i>
- Current Default Prompt (Used if you leave the above blank)
+ <span data-i18n="customPrompts.currentDefaultPrompt">Current Default Prompt (Used if you leave the above blank)</span>
</h4>
<div class="bg-[var(--bg-primary)] p-3 rounded border border-[var(--border-primary)]">
<pre class="text-xs text-[var(--text-muted)] whitespace-pre-wrap">{{ default_summary_prompt_text }}</pre>
@@ -264,15 +466,15 @@
<details class="cursor-pointer">
<summary class="text-sm text-[var(--text-accent)] hover:text-[var(--text-accent-hover)]">
<i class="fas fa-question-circle mr-1"></i>
- Tips for Writing Effective Prompts
+ <span data-i18n="customPrompts.tipsTitle">Tips for Writing Effective Prompts</span>
</summary>
<div class="mt-3 p-3 bg-[var(--bg-info-light)] text-[var(--text-info-strong)] rounded-lg text-sm">
<ul class="list-disc list-inside space-y-1">
- <li>Be specific about the sections you want in your summary</li>
- <li>Use clear formatting instructions (e.g., "Use bullet points", "Create numbered lists")</li>
- <li>Specify if you want certain information prioritized</li>
- <li>The system will automatically provide the transcript content to the AI</li>
- <li>Your output language preference (if set) will be applied automatically</li>
+ <li data-i18n="customPrompts.tip1">Be specific about the sections you want in your summary</li>
+ <li data-i18n="customPrompts.tip2">Use clear formatting instructions (e.g., "Use bullet points", "Create numbered lists")</li>
+ <li data-i18n="customPrompts.tip3">Specify if you want certain information prioritized</li>
+ <li data-i18n="customPrompts.tip4">The system will automatically provide the transcript content to the AI</li>
+ <li data-i18n="customPrompts.tip5">Your output language preference (if set) will be applied automatically</li>
</ul>
</div>
</details>
@@ -281,27 +483,72 @@
<div class="flex justify-end">
<button type="submit" class="inline-flex items-center px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-md hover:bg-[var(--bg-button-hover)] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[var(--border-focus)] transition-colors duration-200">
- <i class="fas fa-save mr-2"></i> Save Custom Prompt
+ <i class="fas fa-save mr-2"></i> <span data-i18n="buttons.saveCustomPrompt">Save Custom Prompt</span>
</button>
</div>
</form>
</div>
<div id="content-shares" class="hidden">
- <h2 class="text-2xl font-semibold text-[var(--text-primary)] mb-6">My Shared Transcripts</h2>
+ <h2 class="text-2xl font-semibold text-[var(--text-primary)] mb-6" data-i18n="accountTabs.sharedTranscripts">My Shared Transcripts</h2>
<div id="shares-container" class="space-y-4">
<!-- Shares will be loaded here by JavaScript -->
</div>
</div>
+ <div id="content-speakers" class="hidden flex flex-col h-full" style="max-height: calc(100vh - 280px);">
+ <div class="flex-shrink-0">
+ <h2 class="text-2xl font-semibold text-[var(--text-primary)] mb-4" data-i18n="accountTabs.speakersManagement">Speakers Management</h2>
+ <p class="text-[var(--text-secondary)] mb-4" data-i18n="speakersManagement.description">Manage your saved speakers. These are automatically saved when you use speaker names in your recordings.</p>
+ </div>
+
+ <div class="flex-1 overflow-y-auto min-h-0 pr-2" style="scrollbar-width: thin; scrollbar-color: var(--border-secondary) transparent;">
+ <!-- Loading state -->
+ <div id="speakersTabLoading" class="text-center py-8 hidden">
+ <i class="fas fa-spinner fa-spin text-2xl text-[var(--text-muted)]"></i>
+ <p class="text-[var(--text-muted)] mt-2" data-i18n="speakersManagement.loadingSpeakers">Loading speakers...</p>
+ </div>
+
+ <!-- Error state -->
+ <div id="speakersTabError" class="hidden bg-[var(--bg-danger-light)] text-[var(--text-danger-strong)] p-3 rounded-lg mb-4">
+ <i class="fas fa-exclamation-triangle mr-2"></i>
+ <span id="speakersTabErrorMessage" data-i18n="speakersManagement.failedToLoad">Failed to load speakers</span>
+ </div>
+
+ <!-- Empty state -->
+ <div id="speakersTabEmpty" class="text-center py-12 hidden">
+ <i class="fas fa-users text-4xl text-[var(--text-light)] mb-4"></i>
+ <p class="text-[var(--text-muted)] text-lg mb-2" data-i18n="speakersManagement.noSpeakersYet">No speakers saved yet</p>
+ <p class="text-sm text-[var(--text-light)]" data-i18n="speakersManagement.speakersWillAppear">Speakers will appear here when you use speaker names in your recordings</p>
+ </div>
+
+ <!-- Speakers grid with scrollable container -->
+ <div id="speakersTabGrid" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 pb-4">
+ <!-- Speakers will be populated here -->
+ </div>
+ </div>
+
+ <!-- Fixed footer with count and actions -->
+ <div class="flex-shrink-0 flex justify-between items-center mt-4 pt-4 border-t border-[var(--border-primary)]">
+ <div class="text-sm text-[var(--text-muted)]">
+ <span id="speakersTabCount">0</span> <span data-i18n="speakersManagement.totalSpeakers">speakers saved</span>
+ </div>
+ <div class="flex space-x-3">
+ <button id="deleteAllSpeakersTabBtn" class="px-4 py-2 bg-[var(--bg-danger)] text-[var(--text-button)] rounded-md hover:bg-[var(--bg-danger-hover)] disabled:opacity-50 disabled:cursor-not-allowed" disabled>
+ <i class="fas fa-trash mr-2"></i> <span data-i18n="buttons.deleteAll">Delete All</span>
+ </button>
+ </div>
+ </div>
+ </div>
+
<div id="content-tags" class="hidden">
- <h2 class="text-2xl font-semibold text-[var(--text-primary)] mb-6">Tag Management</h2>
+ <h2 class="text-2xl font-semibold text-[var(--text-primary)] mb-6" data-i18n="accountTabs.tagManagement">Tag Management</h2>
<div class="mb-6">
<div class="flex justify-between items-center mb-4">
- <p class="text-[var(--text-secondary)]">Organize your recordings with custom tags. Each tag can have its own summary prompt and default ASR settings.</p>
+ <p class="text-[var(--text-secondary)]" data-i18n="tagManagement.description">Organize your recordings with custom tags. Each tag can have its own summary prompt and default ASR settings.</p>
<button id="createTagBtn" class="inline-flex items-center px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-md hover:bg-[var(--bg-button-hover)] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[var(--border-focus)] transition-colors duration-200">
- <i class="fas fa-plus mr-2"></i> Create Tag
+ <i class="fas fa-plus mr-2"></i> <span data-i18n="tagManagement.createTag">Create Tag</span>
</button>
</div>
@@ -339,7 +586,7 @@
<img src="{{ url_for('static', filename='img/icon-192x192.png') }}" alt="Speakr Logo" class="h-16 w-16 mr-4">
<div>
<h2 class="text-3xl font-bold text-[var(--text-primary)]">Speakr</h2>
- <p class="text-[var(--text-secondary)]">AI-Powered Audio Transcription & Note-Taking</p>
+ <p class="text-[var(--text-secondary)]" data-i18n="aboutPage.tagline">AI-Powered Audio Transcription & Note-Taking</p>
</div>
</div>
<div class="inline-flex items-center px-3 py-1 bg-[var(--bg-accent)] text-[var(--text-accent)] rounded-full text-sm font-medium">
@@ -355,38 +602,38 @@
<div class="p-2 bg-[var(--bg-accent)] rounded-lg mr-3">
<i class="fas fa-cogs text-[var(--text-accent)] text-lg"></i>
</div>
- <h3 class="text-xl font-semibold text-[var(--text-primary)]">System Configuration</h3>
+ <h3 class="text-xl font-semibold text-[var(--text-primary)]" data-i18n="aboutPage.systemConfiguration">System Configuration</h3>
</div>
<div class="space-y-4">
<div class="border-l-4 border-[var(--border-accent)] pl-4">
- <h4 class="font-medium text-[var(--text-primary)] mb-2">Large Language Model</h4>
+ <h4 class="font-medium text-[var(--text-primary)] mb-2" data-i18n="aboutPage.largeLanguageModel">Large Language Model</h4>
<div class="space-y-1 text-sm">
<p class="text-[var(--text-secondary)]">
- <span class="font-medium">Model:</span>
+ <span class="font-medium" data-i18n="aboutPage.model">Model:</span>
<span id="llm-model" class="font-mono text-[var(--text-primary)] bg-[var(--bg-tertiary)] px-2 py-1 rounded ml-1">Loading...</span>
</p>
<p class="text-[var(--text-secondary)]">
- <span class="font-medium">Endpoint:</span>
+ <span class="font-medium" data-i18n="aboutPage.endpoint">Endpoint:</span>
<span id="llm-endpoint" class="font-mono text-xs text-[var(--text-muted)] break-all ml-1">Loading...</span>
</p>
</div>
</div>
<div class="border-l-4 border-green-500 pl-4">
- <h4 class="font-medium text-[var(--text-primary)] mb-2">Speech Recognition</h4>
+ <h4 class="font-medium text-[var(--text-primary)] mb-2" data-i18n="aboutPage.speechRecognition">Speech Recognition</h4>
<div class="space-y-1 text-sm">
<p class="text-[var(--text-secondary)]">
- <span class="font-medium">Whisper API:</span>
+ <span class="font-medium" data-i18n="aboutPage.whisperApi">Whisper API:</span>
<span id="whisper-endpoint" class="font-mono text-xs text-[var(--text-muted)] ml-1">Loading...</span>
</p>
<p class="text-[var(--text-secondary)]">
- <span class="font-medium">ASR Enabled:</span>
+ <span class="font-medium" data-i18n="aboutPage.asrEnabled">ASR Enabled:</span>
<span id="asr-status" class="ml-1">Loading...</span>
</p>
<div id="asr-endpoint-row" style="display: none;">
<p class="text-[var(--text-secondary)]">
- <span class="font-medium">ASR Endpoint:</span>
+ <span class="font-medium" data-i18n="aboutPage.asrEndpoint">ASR Endpoint:</span>
<span id="asr-endpoint" class="font-mono text-xs text-[var(--text-muted)] ml-1">-</span>
</p>
</div>
@@ -401,7 +648,7 @@
<div class="p-2 bg-gray-800 rounded-lg mr-3">
<i class="fab fa-github text-white text-lg"></i>
</div>
- <h3 class="text-xl font-semibold text-[var(--text-primary)]">Project Links</h3>
+ <h3 class="text-xl font-semibold text-[var(--text-primary)]" data-i18n="aboutPage.projectLinks">Project Links</h3>
</div>
<div class="space-y-3">
@@ -409,8 +656,8 @@
class="flex items-center p-3 bg-gray-800 hover:bg-gray-700 text-white rounded-lg transition-all duration-200 group transform hover:scale-[1.02]">
<i class="fab fa-github text-xl mr-3"></i>
<div class="flex-1">
- <div class="font-medium">GitHub Repository</div>
- <div class="text-sm text-gray-300">Source code, issues, and releases</div>
+ <div class="font-medium" data-i18n="aboutPage.githubRepository">GitHub Repository</div>
+ <div class="text-sm text-gray-300" data-i18n="aboutPage.githubDescription">Source code, issues, and releases</div>
</div>
<i class="fas fa-external-link-alt text-sm opacity-70 group-hover:opacity-100"></i>
</a>
@@ -419,8 +666,8 @@
class="flex items-center p-3 bg-blue-600 hover:bg-blue-500 text-white rounded-lg transition-all duration-200 group transform hover:scale-[1.02]">
<i class="fab fa-docker text-xl mr-3"></i>
<div class="flex-1">
- <div class="font-medium">Docker Hub</div>
- <div class="text-sm text-blue-100">Official Docker images</div>
+ <div class="font-medium" data-i18n="aboutPage.dockerHub">Docker Hub</div>
+ <div class="text-sm text-blue-100" data-i18n="aboutPage.dockerDescription">Official Docker images</div>
</div>
<i class="fas fa-external-link-alt text-sm opacity-70 group-hover:opacity-100"></i>
</a>
@@ -429,8 +676,8 @@
class="flex items-center p-3 bg-green-600 hover:bg-green-500 text-white rounded-lg transition-all duration-200 group transform hover:scale-[1.02]">
<i class="fas fa-book text-xl mr-3"></i>
<div class="flex-1">
- <div class="font-medium">Documentation</div>
- <div class="text-sm text-green-100">Setup guides and user manual</div>
+ <div class="font-medium" data-i18n="aboutPage.documentation">Documentation</div>
+ <div class="text-sm text-green-100" data-i18n="aboutPage.documentationDescription">Setup guides and user manual</div>
</div>
<i class="fas fa-external-link-alt text-sm opacity-70 group-hover:opacity-100"></i>
</a>
@@ -439,7 +686,7 @@
<div class="mt-6 p-3 bg-[var(--bg-tertiary)] rounded-lg border border-[var(--border-secondary)]">
<p class="text-sm text-[var(--text-secondary)] leading-relaxed">
<i class="fas fa-info-circle text-[var(--text-accent)] mr-2"></i>
- Transform your audio recordings into organized, searchable notes with AI-powered transcription, summarization, and interactive chat features.
+ <span data-i18n="aboutPage.projectDescription">Transform your audio recordings into organized, searchable notes with AI-powered transcription, summarization, and interactive chat features.</span>
</p>
</div>
</div>
@@ -451,7 +698,7 @@
<div class="p-2 bg-purple-600 rounded-lg mr-3">
<i class="fas fa-star text-white text-lg"></i>
</div>
- <h3 class="text-xl font-semibold text-[var(--text-primary)]">Key Features</h3>
+ <h3 class="text-xl font-semibold text-[var(--text-primary)]" data-i18n="aboutPage.keyFeatures">Key Features</h3>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
@@ -460,8 +707,8 @@
<i class="fas fa-microphone text-blue-600 dark:text-blue-400"></i>
</div>
<div>
- <h4 class="font-medium text-[var(--text-primary)] mb-1">Audio Transcription</h4>
- <p class="text-sm text-[var(--text-secondary)]">Whisper API and custom ASR support with high accuracy</p>
+ <h4 class="font-medium text-[var(--text-primary)] mb-1" data-i18n="aboutPage.audioTranscription">Audio Transcription</h4>
+ <p class="text-sm text-[var(--text-secondary)]" data-i18n="aboutPage.audioTranscriptionDesc">Whisper API and custom ASR support with high accuracy</p>
</div>
</div>
@@ -470,8 +717,8 @@
<i class="fas fa-robot text-purple-600 dark:text-purple-400"></i>
</div>
<div>
- <h4 class="font-medium text-[var(--text-primary)] mb-1">AI Summarization</h4>
- <p class="text-sm text-[var(--text-secondary)]">OpenRouter and Ollama integration with custom prompts</p>
+ <h4 class="font-medium text-[var(--text-primary)] mb-1" data-i18n="aboutPage.aiSummarization">AI Summarization</h4>
+ <p class="text-sm text-[var(--text-secondary)]" data-i18n="aboutPage.aiSummarizationDesc">OpenRouter and Ollama integration with custom prompts</p>
</div>
</div>
@@ -480,8 +727,8 @@
<i class="fas fa-users text-green-600 dark:text-green-400"></i>
</div>
<div>
- <h4 class="font-medium text-[var(--text-primary)] mb-1">Speaker Diarization</h4>
- <p class="text-sm text-[var(--text-secondary)]">Identify and label different speakers automatically</p>
+ <h4 class="font-medium text-[var(--text-primary)] mb-1" data-i18n="aboutPage.speakerDiarization">Speaker Diarization</h4>
+ <p class="text-sm text-[var(--text-secondary)]" data-i18n="aboutPage.speakerDiarizationDesc">Identify and label different speakers automatically</p>
</div>
</div>
@@ -490,8 +737,8 @@
<i class="fas fa-comments text-orange-600 dark:text-orange-400"></i>
</div>
<div>
- <h4 class="font-medium text-[var(--text-primary)] mb-1">Interactive Chat</h4>
- <p class="text-sm text-[var(--text-secondary)]">Chat with your transcriptions using AI</p>
+ <h4 class="font-medium text-[var(--text-primary)] mb-1" data-i18n="aboutPage.interactiveChat">Interactive Chat</h4>
+ <p class="text-sm text-[var(--text-secondary)]" data-i18n="aboutPage.interactiveChatDesc">Chat with your transcriptions using AI</p>
</div>
</div>
@@ -500,8 +747,8 @@
<i class="fas fa-search text-indigo-600 dark:text-indigo-400"></i>
</div>
<div>
- <h4 class="font-medium text-[var(--text-primary)] mb-1">Inquire Mode</h4>
- <p class="text-sm text-[var(--text-secondary)]">Semantic search across all your recordings</p>
+ <h4 class="font-medium text-[var(--text-primary)] mb-1" data-i18n="aboutPage.inquireMode">Inquire Mode</h4>
+ <p class="text-sm text-[var(--text-secondary)]" data-i18n="aboutPage.inquireModeDesc">Semantic search across all your recordings</p>
</div>
</div>
@@ -510,8 +757,8 @@
<i class="fas fa-share-alt text-teal-600 dark:text-teal-400"></i>
</div>
<div>
- <h4 class="font-medium text-[var(--text-primary)] mb-1">Sharing & Export</h4>
- <p class="text-sm text-[var(--text-secondary)]">Share recordings and export to various formats</p>
+ <h4 class="font-medium text-[var(--text-primary)] mb-1" data-i18n="aboutPage.sharingExport">Sharing & Export</h4>
+ <p class="text-sm text-[var(--text-secondary)]" data-i18n="aboutPage.sharingExportDesc">Share recordings and export to various formats</p>
</div>
</div>
</div>
@@ -523,29 +770,29 @@
<div class="p-2 bg-red-500 rounded-lg mr-3">
<i class="fas fa-code text-white text-lg"></i>
</div>
- <h3 class="text-xl font-semibold text-[var(--text-primary)]">Technology Stack</h3>
+ <h3 class="text-xl font-semibold text-[var(--text-primary)]" data-i18n="aboutPage.technologyStack">Technology Stack</h3>
</div>
<div class="grid grid-cols-2 md:grid-cols-4 gap-4">
<div class="text-center p-3 bg-[var(--bg-tertiary)] rounded-lg">
<i class="fab fa-python text-3xl text-blue-500 mb-2"></i>
<p class="text-sm font-medium text-[var(--text-primary)]">Python Flask</p>
- <p class="text-xs text-[var(--text-muted)]">Backend</p>
+ <p class="text-xs text-[var(--text-muted)]" data-i18n="aboutPage.backend">Backend</p>
</div>
<div class="text-center p-3 bg-[var(--bg-tertiary)] rounded-lg">
<i class="fab fa-vuejs text-3xl text-green-500 mb-2"></i>
<p class="text-sm font-medium text-[var(--text-primary)]">Vue.js</p>
- <p class="text-xs text-[var(--text-muted)]">Frontend</p>
+ <p class="text-xs text-[var(--text-muted)]" data-i18n="aboutPage.frontend">Frontend</p>
</div>
<div class="text-center p-3 bg-[var(--bg-tertiary)] rounded-lg">
<i class="fas fa-database text-3xl text-purple-500 mb-2"></i>
<p class="text-sm font-medium text-[var(--text-primary)]">SQLite</p>
- <p class="text-xs text-[var(--text-muted)]">Database</p>
+ <p class="text-xs text-[var(--text-muted)]" data-i18n="aboutPage.database">Database</p>
</div>
<div class="text-center p-3 bg-[var(--bg-tertiary)] rounded-lg">
<i class="fab fa-docker text-3xl text-blue-600 mb-2"></i>
<p class="text-sm font-medium text-[var(--text-primary)]">Docker</p>
- <p class="text-xs text-[var(--text-muted)]">Deployment</p>
+ <p class="text-xs text-[var(--text-muted)]" data-i18n="aboutPage.deployment">Deployment</p>
</div>
</div>
</div>
@@ -563,27 +810,27 @@
<div id="changePasswordModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
<div class="bg-[var(--bg-secondary)] p-6 rounded-lg shadow-xl w-full max-w-md">
<div class="flex justify-between items-center mb-4">
- <h3 class="text-xl font-semibold text-[var(--text-primary)]">Change Password</h3>
+ <h3 class="text-xl font-semibold text-[var(--text-primary)]" data-i18n="account.changePassword">Change Password</h3>
<button id="closeModalBtn" class="text-[var(--text-light)] hover:text-[var(--text-muted)] text-2xl leading-none">&times;</button>
</div>
<form id="changePasswordForm" method="POST" action="{{ url_for('change_password') }}">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
<div class="mb-4">
- <label for="current_password" class="block text-sm font-medium text-[var(--text-secondary)] mb-1">Current Password</label>
+ <label for="current_password" class="block text-sm font-medium text-[var(--text-secondary)] mb-1" data-i18n="changePasswordModal.currentPassword">Current Password</label>
<input type="password" id="current_password" name="current_password" required class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]">
</div>
<div class="mb-4">
- <label for="new_password" class="block text-sm font-medium text-[var(--text-secondary)] mb-1">New Password</label>
+ <label for="new_password" class="block text-sm font-medium text-[var(--text-secondary)] mb-1" data-i18n="changePasswordModal.newPassword">New Password</label>
<input type="password" id="new_password" name="new_password" required minlength="8" class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]">
- <p class="text-xs text-[var(--text-muted)] mt-1">Password must be at least 8 characters long</p>
+ <p class="text-xs text-[var(--text-muted)] mt-1" data-i18n="changePasswordModal.passwordRequirement">Password must be at least 8 characters long</p>
</div>
<div class="mb-6">
- <label for="confirm_password" class="block text-sm font-medium text-[var(--text-secondary)] mb-1">Confirm New Password</label>
+ <label for="confirm_password" class="block text-sm font-medium text-[var(--text-secondary)] mb-1" data-i18n="changePasswordModal.confirmPassword">Confirm New Password</label>
<input type="password" id="confirm_password" name="confirm_password" required class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]">
</div>
<div class="flex justify-end space-x-3">
<button type="button" id="cancelBtn" 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" class="px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-md hover:bg-[var(--bg-button-hover)]">Change Password</button>
+ <button type="submit" class="px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-md hover:bg-[var(--bg-button-hover)]" data-i18n="account.changePassword">Change Password</button>
</div>
</form>
</div>
@@ -593,32 +840,32 @@
<div id="manageSpeakersModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
<div class="bg-[var(--bg-secondary)] p-6 rounded-lg shadow-xl w-full max-w-2xl max-h-[80vh] overflow-hidden">
<div class="flex justify-between items-center mb-4">
- <h3 class="text-xl font-semibold text-[var(--text-primary)]">Manage Speakers</h3>
+ <h3 class="text-xl font-semibold text-[var(--text-primary)]" data-i18n="account.manageSpeakers">Manage Speakers</h3>
<button id="closeSpeakersModalBtn" class="text-[var(--text-light)] hover:text-[var(--text-muted)] text-2xl leading-none">&times;</button>
</div>
<div class="mb-4">
<p class="text-sm text-[var(--text-muted)] mb-4">
- Manage your saved speakers. These are automatically saved when you use speaker names in your recordings.
+ <span data-i18n="manageSpeakersModal.description">Manage your saved speakers. These are automatically saved when you use speaker names in your recordings.</span>
</p>
<!-- Loading state -->
<div id="speakersLoading" class="text-center py-8 hidden">
<i class="fas fa-spinner fa-spin text-2xl text-[var(--text-muted)]"></i>
- <p class="text-[var(--text-muted)] mt-2">Loading speakers...</p>
+ <p class="text-[var(--text-muted)] mt-2" data-i18n="manageSpeakersModal.loadingSpeakers">Loading speakers...</p>
</div>
<!-- Error state -->
<div id="speakersError" class="hidden bg-[var(--bg-danger-light)] text-[var(--text-danger-strong)] p-3 rounded-lg mb-4">
<i class="fas fa-exclamation-triangle mr-2"></i>
- <span id="speakersErrorMessage">Failed to load speakers</span>
+ <span id="speakersErrorMessage" data-i18n="manageSpeakersModal.failedToLoad">Failed to load speakers</span>
</div>
<!-- Empty state -->
<div id="speakersEmpty" class="text-center py-8 hidden">
<i class="fas fa-users text-4xl text-[var(--text-light)] mb-4"></i>
- <p class="text-[var(--text-muted)]">No speakers saved yet</p>
- <p class="text-sm text-[var(--text-light)]">Speakers will appear here when you use speaker names in your recordings</p>
+ <p class="text-[var(--text-muted)]" data-i18n="manageSpeakersModal.noSpeakersYet">No speakers saved yet</p>
+ <p class="text-sm text-[var(--text-light)]" data-i18n="manageSpeakersModal.speakersWillAppear">Speakers will appear here when you use speaker names in your recordings</p>
</div>
<!-- Speakers list -->
@@ -629,14 +876,14 @@
<div class="flex justify-between items-center pt-4 border-t border-[var(--border-primary)]">
<div class="text-sm text-[var(--text-muted)]">
- <span id="speakersCount">0</span> speakers saved
+ <span><span id="speakersCount">0</span> <span data-i18n="manageSpeakersModal.speakersSaved">speakers saved</span></span>
</div>
<div class="flex space-x-3">
<button id="deleteAllSpeakersBtn" class="px-4 py-2 bg-[var(--bg-danger)] text-[var(--text-button)] rounded-md hover:bg-[var(--bg-danger-hover)] disabled:opacity-50 disabled:cursor-not-allowed" disabled>
- <i class="fas fa-trash mr-2"></i> Delete All
+ <i class="fas fa-trash mr-2"></i> <span data-i18n="buttons.deleteAll">Delete All</span>
</button>
<button id="closeSpeakersBtn" class="px-4 py-2 bg-[var(--bg-tertiary)] text-[var(--text-secondary)] rounded-md hover:bg-[var(--border-secondary)]">
- Close
+ <span data-i18n="buttons.close">Close</span>
</button>
</div>
</div>
@@ -648,14 +895,14 @@
<div class="bg-[var(--bg-secondary)] p-6 rounded-lg shadow-xl w-full max-w-md">
<div class="flex items-center mb-4">
<i class="fas fa-exclamation-triangle text-[var(--text-danger)] text-2xl mr-3"></i>
- <h3 class="text-xl font-semibold text-[var(--text-primary)]">Delete All Speakers</h3>
+ <h3 class="text-xl font-semibold text-[var(--text-primary)]" data-i18n="buttons.deleteAll">Delete All Speakers</h3>
</div>
<p class="text-[var(--text-secondary)] mb-6">
- Are you sure you want to delete all saved speakers? This action cannot be undone.
+ <span data-i18n="deleteAllSpeakersModal.confirmMessage">Are you sure you want to delete all saved speakers? This action cannot be undone.</span>
</p>
<div class="flex justify-end space-x-3">
<button id="cancelDeleteAllBtn" class="px-4 py-2 bg-[var(--bg-tertiary)] text-[var(--text-secondary)] rounded-md hover:bg-[var(--border-secondary)]">
- Cancel
+ <span data-i18n="buttons.cancel">Cancel</span>
</button>
<button id="confirmDeleteAllBtn" class="px-4 py-2 bg-[var(--bg-danger)] text-[var(--text-button)] rounded-md hover:bg-[var(--bg-danger-hover)]">
<i class="fas fa-trash mr-2"></i> Delete All
@@ -668,7 +915,7 @@
<div id="tagModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
<div class="bg-[var(--bg-secondary)] p-6 rounded-lg shadow-xl w-full max-w-lg max-h-[90vh] overflow-y-auto">
<div class="flex justify-between items-center mb-4">
- <h3 id="tagModalTitle" class="text-xl font-semibold text-[var(--text-primary)]">Create Tag</h3>
+ <h3 id="tagModalTitle" class="text-xl font-semibold text-[var(--text-primary)]" data-i18n="editTagModal.createTitle">Create Tag</h3>
<button id="closeTagModalBtn" class="text-[var(--text-light)] hover:text-[var(--text-muted)] text-2xl leading-none">&times;</button>
</div>
@@ -677,43 +924,43 @@
<input type="hidden" id="tagId" name="tag_id">
<div>
- <label for="tagName" class="block text-sm font-medium text-[var(--text-secondary)] mb-1">Tag Name *</label>
+ <label for="tagName" class="block text-sm font-medium text-[var(--text-secondary)] mb-1" data-i18n="editTagModal.tagName">Tag Name *</label>
<input type="text" id="tagName" name="name" required maxlength="50" class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]" placeholder="e.g., Meetings, Interviews">
</div>
<div>
- <label for="tagColor" class="block text-sm font-medium text-[var(--text-secondary)] mb-1">Color</label>
+ <label for="tagColor" class="block text-sm font-medium text-[var(--text-secondary)] mb-1" data-i18n="editTagModal.color">Color</label>
<div class="flex items-center space-x-3">
<input type="color" id="tagColor" name="color" value="#3B82F6" class="w-12 h-10 rounded border border-[var(--border-secondary)]">
- <span class="text-sm text-[var(--text-muted)]">Choose a color for easy identification</span>
+ <span class="text-sm text-[var(--text-muted)]" data-i18n="editTagModal.colorDescription">Choose a color for easy identification</span>
</div>
</div>
<div>
- <label for="tagCustomPrompt" class="block text-sm font-medium text-[var(--text-secondary)] mb-1">Custom Summary Prompt</label>
- <textarea id="tagCustomPrompt" name="custom_prompt" rows="4" class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]" placeholder="Optional: Custom prompt for generating summaries for recordings with this tag"></textarea>
- <p class="text-xs text-[var(--text-light)] mt-1">Leave blank to use your default summary prompt</p>
+ <label for="tagCustomPrompt" class="block text-sm font-medium text-[var(--text-secondary)] mb-1" data-i18n="editTagModal.customPrompt">Custom Summary Prompt</label>
+ <textarea id="tagCustomPrompt" name="custom_prompt" rows="4" class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]" placeholder="Optional: Custom prompt for generating summaries for recordings with this tag" data-i18n-placeholder="editTagModal.customPromptPlaceholder"></textarea>
+ <p class="text-xs text-[var(--text-light)] mt-1" data-i18n="editTagModal.leaveBlankPrompt">Leave blank to use your default summary prompt</p>
</div>
{% if use_asr_endpoint %}
<div class="border-t border-[var(--border-primary)] pt-4">
- <h4 class="text-sm font-medium text-[var(--text-secondary)] mb-3">ASR Default Settings</h4>
- <p class="text-xs text-[var(--text-light)] mb-3">These settings will be applied by default when using this tag with ASR transcription</p>
+ <h4 class="text-sm font-medium text-[var(--text-secondary)] mb-3" data-i18n="editTagModal.asrDefaultSettings">ASR Default Settings</h4>
+ <p class="text-xs text-[var(--text-light)] mb-3" data-i18n="editTagModal.asrSettingsDescription">These settings will be applied by default when using this tag with ASR transcription</p>
<div class="space-y-3">
<div>
- <label for="tagLanguage" class="block text-sm font-medium text-[var(--text-muted)] mb-1">Default Language</label>
+ <label for="tagLanguage" class="block text-sm font-medium text-[var(--text-muted)] mb-1" data-i18n="editTagModal.defaultLanguage">Default Language</label>
<input type="text" id="tagLanguage" name="default_language" maxlength="10" class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]" placeholder="e.g., en, es, zh">
</div>
<div class="grid grid-cols-2 gap-3">
<div>
- <label for="tagMinSpeakers" class="block text-sm font-medium text-[var(--text-muted)] mb-1">Min Speakers</label>
+ <label for="tagMinSpeakers" class="block text-sm font-medium text-[var(--text-muted)] mb-1" data-i18n="editTagModal.minSpeakers">Min Speakers</label>
<input type="number" id="tagMinSpeakers" name="default_min_speakers" min="1" class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]"
</div>
<div>
- <label for="tagMaxSpeakers" class="block text-sm font-medium text-[var(--text-muted)] mb-1">Max Speakers</label>
+ <label for="tagMaxSpeakers" class="block text-sm font-medium text-[var(--text-muted)] mb-1" data-i18n="editTagModal.maxSpeakers">Max Speakers</label>
<input type="number" id="tagMaxSpeakers" name="default_max_speakers" min="1" class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]">
</div>
</div>
@@ -722,9 +969,9 @@
{% endif %}
<div class="flex justify-end space-x-3 pt-4 border-t border-[var(--border-primary)]">
- <button type="button" id="cancelTagBtn" class="px-4 py-2 bg-[var(--bg-tertiary)] text-[var(--text-secondary)] rounded-md hover:bg-[var(--border-secondary)]">Cancel</button>
+ <button type="button" id="cancelTagBtn" class="px-4 py-2 bg-[var(--bg-tertiary)] text-[var(--text-secondary)] rounded-md hover:bg-[var(--border-secondary)]" data-i18n="buttons.cancel">Cancel</button>
<button type="submit" id="saveTagBtn" class="px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-md hover:bg-[var(--bg-button-hover)]">
- <i class="fas fa-save mr-2"></i> Save Tag
+ <i class="fas fa-save mr-2"></i> <span data-i18n="buttons.createTag">Save Tag</span>
</button>
</div>
</form>
@@ -733,7 +980,9 @@
<script>
- document.addEventListener('DOMContentLoaded', function() {
+ document.addEventListener('DOMContentLoaded', async function() {
+ // Initialize i18n
+ await initializeI18n();
const tabAccount = document.getElementById('tab-account');
const tabPrompts = document.getElementById('tab-prompts');
const tabShares = document.getElementById('tab-shares');
@@ -742,16 +991,20 @@
const contentAccount = document.getElementById('content-account');
const contentPrompts = document.getElementById('content-prompts');
const contentShares = document.getElementById('content-shares');
+ const contentSpeakers = document.getElementById('content-speakers');
const contentTags = document.getElementById('content-tags');
const contentAbout = document.getElementById('content-about');
const sharesContainer = document.getElementById('shares-container');
// Simplified tab switching
+ const tabSpeakers = document.getElementById('tab-speakers');
+
const tabs = [
{ tab: tabAccount, content: contentAccount, name: 'account' },
{ tab: tabPrompts, content: contentPrompts, name: 'prompts' },
{ tab: tabShares, content: contentShares, name: 'shares' },
+ { tab: tabSpeakers, content: contentSpeakers, name: 'speakers' },
{ tab: tabTags, content: contentTags, name: 'tags' },
{ tab: tabAbout, content: contentAbout, name: 'about' }
];
@@ -772,7 +1025,9 @@
});
// Load content when switching tabs
- if (targetName === 'shares') {
+ if (targetName === 'speakers') {
+ loadSpeakersTab();
+ } else if (targetName === 'shares') {
loadShares();
} else if (targetName === 'tags') {
loadTags();
@@ -793,6 +1048,10 @@
switchToTab('shares');
}
+ function showSpeakersTab() {
+ switchToTab('speakers');
+ }
+
function showTagsTab() {
switchToTab('tags');
}
@@ -816,6 +1075,11 @@
showSharesTab();
});
+ tabSpeakers.addEventListener('click', (e) => {
+ e.preventDefault();
+ showSpeakersTab();
+ });
+
tabTags.addEventListener('click', (e) => {
e.preventDefault();
showTagsTab();
@@ -826,6 +1090,204 @@
showAboutTab();
});
+ // Load speakers for the Speakers Management tab
+ let speakersTabData = [];
+ let speakersTabLoaded = false;
+
+ async function loadSpeakersTab() {
+ // Don't reload if already loaded
+ if (speakersTabLoaded) return;
+
+ const speakersTabLoading = document.getElementById('speakersTabLoading');
+ const speakersTabError = document.getElementById('speakersTabError');
+ const speakersTabErrorMessage = document.getElementById('speakersTabErrorMessage');
+ const speakersTabEmpty = document.getElementById('speakersTabEmpty');
+ const speakersTabGrid = document.getElementById('speakersTabGrid');
+ const speakersTabCount = document.getElementById('speakersTabCount');
+ const deleteAllSpeakersTabBtn = document.getElementById('deleteAllSpeakersTabBtn');
+
+ // Show loading state
+ speakersTabLoading.classList.remove('hidden');
+ speakersTabError.classList.add('hidden');
+ speakersTabEmpty.classList.add('hidden');
+ speakersTabGrid.classList.add('hidden');
+
+ try {
+ const response = await fetch('/speakers');
+ if (!response.ok) {
+ throw new Error(`HTTP ${response.status}: ${response.statusText}`);
+ }
+
+ speakersTabData = await response.json();
+ speakersTabLoaded = true;
+
+ // Hide loading state
+ speakersTabLoading.classList.add('hidden');
+
+ if (speakersTabData.length === 0) {
+ speakersTabEmpty.classList.remove('hidden');
+ speakersTabGrid.classList.add('hidden');
+ deleteAllSpeakersTabBtn.disabled = true;
+ } else {
+ speakersTabEmpty.classList.add('hidden');
+ speakersTabGrid.classList.remove('hidden');
+ deleteAllSpeakersTabBtn.disabled = false;
+ renderSpeakersTabGrid();
+ }
+
+ // Update count
+ speakersTabCount.textContent = speakersTabData.length;
+
+ } catch (error) {
+ console.error('Error loading speakers:', error);
+ speakersTabLoading.classList.add('hidden');
+ speakersTabError.classList.remove('hidden');
+ speakersTabEmpty.classList.add('hidden');
+ speakersTabGrid.classList.add('hidden');
+ speakersTabErrorMessage.textContent = error.message;
+ speakersTabCount.textContent = '0';
+ }
+ }
+
+ function renderSpeakersTabGrid() {
+ const speakersTabGrid = document.getElementById('speakersTabGrid');
+ speakersTabGrid.innerHTML = '';
+
+ speakersTabData.forEach(speaker => {
+ const createdDate = new Date(speaker.created_at).toLocaleDateString();
+ const lastUsedDate = new Date(speaker.last_used).toLocaleDateString();
+
+ const speakerCard = document.createElement('div');
+ speakerCard.className = 'bg-[var(--bg-tertiary)] rounded-lg border border-[var(--border-primary)] p-4 hover:border-[var(--border-accent)] transition-colors duration-200';
+
+ speakerCard.innerHTML = `
+ <div class="flex flex-col h-full">
+ <div class="flex items-start justify-between mb-3">
+ <div class="flex items-center flex-1 min-w-0">
+ <i class="fas fa-user text-[var(--text-accent)] mr-2 flex-shrink-0"></i>
+ <h3 class="font-medium text-base text-[var(--text-primary)] truncate">${escapeHtml(speaker.name)}</h3>
+ </div>
+ <button class="delete-speaker-tab-btn ml-2 p-1.5 text-[var(--text-danger)] hover:bg-[var(--bg-danger-light)] rounded-md transition-colors duration-200 flex-shrink-0"
+ data-speaker-id="${speaker.id}"
+ data-speaker-name="${escapeHtml(speaker.name)}"
+ data-i18n-title="buttons.deleteSpeaker">
+ <i class="fas fa-trash text-sm"></i>
+ </button>
+ </div>
+ <div class="space-y-1 text-xs text-[var(--text-muted)]">
+ <p class="flex items-center">
+ <i class="fas fa-chart-line mr-1.5 text-xs opacity-60"></i>
+ <span>Used ${speaker.use_count} time${speaker.use_count !== 1 ? 's' : ''}</span>
+ </p>
+ <p class="flex items-center">
+ <i class="fas fa-clock mr-1.5 text-xs opacity-60"></i>
+ <span>Last: ${lastUsedDate}</span>
+ </p>
+ <p class="flex items-center">
+ <i class="fas fa-calendar-plus mr-1.5 text-xs opacity-60"></i>
+ <span>Added: ${createdDate}</span>
+ </p>
+ </div>
+ </div>
+ `;
+
+ // Add delete functionality
+ const deleteBtn = speakerCard.querySelector('.delete-speaker-tab-btn');
+ deleteBtn.addEventListener('click', () => deleteSpeakerFromTab(speaker.id, speaker.name));
+
+ speakersTabGrid.appendChild(speakerCard);
+ });
+ }
+
+ async function deleteSpeakerFromTab(speakerId, speakerName) {
+ if (!confirm(`Are you sure you want to delete "${speakerName}"?`)) {
+ return;
+ }
+
+ try {
+ // Get CSRF token
+ const csrfToken = document.querySelector('meta[name=csrf-token]')?.getAttribute('content');
+
+ const headers = {};
+ if (csrfToken) {
+ headers['X-CSRFToken'] = csrfToken;
+ }
+
+ const response = await fetch(`/speakers/${speakerId}`, {
+ method: 'DELETE',
+ headers: headers
+ });
+
+ if (!response.ok) {
+ const errorData = await response.json();
+ throw new Error(errorData.error || `HTTP ${response.status}: ${response.statusText}`);
+ }
+
+ // Remove from local array and re-render
+ speakersTabData = speakersTabData.filter(s => s.id !== speakerId);
+
+ if (speakersTabData.length === 0) {
+ document.getElementById('speakersTabEmpty').classList.remove('hidden');
+ document.getElementById('speakersTabGrid').classList.add('hidden');
+ document.getElementById('deleteAllSpeakersTabBtn').disabled = true;
+ } else {
+ renderSpeakersTabGrid();
+ }
+
+ document.getElementById('speakersTabCount').textContent = speakersTabData.length;
+ showToast(`Speaker "${speakerName}" deleted successfully`);
+ } catch (error) {
+ console.error('Error deleting speaker:', error);
+ showToast(`Failed to delete speaker: ${error.message}`, 'error');
+ }
+ }
+
+ // Delete all speakers from tab
+ document.getElementById('deleteAllSpeakersTabBtn')?.addEventListener('click', async () => {
+ if (!confirm('Are you sure you want to delete all speakers? This action cannot be undone.')) {
+ return;
+ }
+
+ try {
+ // Get CSRF token
+ const csrfToken = document.querySelector('meta[name=csrf-token]')?.getAttribute('content');
+
+ const headers = {};
+ if (csrfToken) {
+ headers['X-CSRFToken'] = csrfToken;
+ }
+
+ // Delete all speakers one by one
+ const deletePromises = speakersTabData.map(speaker =>
+ fetch(`/speakers/${speaker.id}`, {
+ method: 'DELETE',
+ headers: headers
+ })
+ );
+
+ const results = await Promise.allSettled(deletePromises);
+
+ // Check for any failures
+ const failures = results.filter(result => result.status === 'rejected');
+ if (failures.length > 0) {
+ console.error('Some speakers failed to delete:', failures);
+ showToast(`${failures.length} speaker(s) failed to delete`, 'error');
+ }
+
+ // Reset the tab state
+ speakersTabLoaded = false;
+ await loadSpeakersTab();
+
+ const successCount = results.length - failures.length;
+ if (successCount > 0) {
+ showToast(`${successCount} speaker(s) deleted successfully`);
+ }
+ } catch (error) {
+ console.error('Error deleting all speakers:', error);
+ showToast(`Failed to delete speakers: ${error.message}`, 'error');
+ }
+ });
+
async function loadSystemInfo() {
try {
const response = await fetch('/api/system/info');
@@ -867,7 +1329,7 @@
if (!response.ok) throw new Error(shares.error || 'Failed to load');
if (shares.length === 0) {
- sharesContainer.innerHTML = '<p class="text-center text-[var(--text-muted)]">You have not shared any transcripts yet.</p>';
+ sharesContainer.innerHTML = `<p class="text-center text-[var(--text-muted)]">${t('sharedTranscriptsPage.noSharedTranscripts')}</p>`;
return;
}
@@ -908,7 +1370,7 @@
});
} catch (error) {
- sharesContainer.innerHTML = `<p class="text-center text-red-500">Error loading shares: ${error.message}</p>`;
+ sharesContainer.innerHTML = `<p class="text-center text-red-500">${t('errors.loadingShares')}: ${error.message}</p>`;
}
}
@@ -1078,7 +1540,7 @@
}
});
- // Manage Speakers Modal functionality
+ // Keep the modal functionality for backward compatibility if button still exists
const manageSpeakersBtn = document.getElementById('manageSpeakersBtn');
const manageSpeakersModal = document.getElementById('manageSpeakersModal');
const closeSpeakersModalBtn = document.getElementById('closeSpeakersModalBtn');
@@ -1097,11 +1559,13 @@
let speakers = [];
- // Open speakers modal
- manageSpeakersBtn.addEventListener('click', () => {
- manageSpeakersModal.classList.remove('hidden');
- loadSpeakers();
- });
+ // Open speakers modal only if button exists
+ if (manageSpeakersBtn) {
+ manageSpeakersBtn.addEventListener('click', () => {
+ manageSpeakersModal.classList.remove('hidden');
+ loadSpeakers();
+ });
+ }
// Close speakers modal functions
function closeSpeakersModal() {
@@ -1205,7 +1669,7 @@
</div>
<button class="delete-speaker-btn ml-3 p-2 text-[var(--text-danger)] hover:bg-[var(--bg-danger-light)] rounded-md transition-colors duration-200"
data-speaker-id="${speaker.id}"
- title="Delete speaker">
+ data-i18n-title="buttons.deleteSpeaker">
<i class="fas fa-trash text-sm"></i>
</button>
`;
@@ -1445,11 +1909,11 @@
</div>
<div class="flex space-x-1">
<button class="edit-tag-btn p-1 text-[var(--text-muted)] hover:text-[var(--text-accent)] rounded"
- data-tag-id="${tag.id}" title="Edit tag">
+ data-tag-id="${tag.id}" data-i18n-title="buttons.editTag">
<i class="fas fa-edit text-sm"></i>
</button>
<button class="delete-tag-btn p-1 text-[var(--text-muted)] hover:text-[var(--text-danger)] rounded"
- data-tag-id="${tag.id}" title="Delete tag">
+ data-tag-id="${tag.id}" data-i18n-title="buttons.deleteTag">
<i class="fas fa-trash text-sm"></i>
</button>
</div>
@@ -1458,14 +1922,14 @@
<div class="space-y-2 text-sm text-[var(--text-muted)]">
${tag.custom_prompt ? `
<div>
- <span class="font-medium">Custom Prompt:</span>
+ <span class="font-medium" data-i18n="tagManagement.customPrompt">Custom Prompt:</span>
<span class="text-xs">${escapeHtml(tag.custom_prompt.substring(0, 60))}${tag.custom_prompt.length > 60 ? '...' : ''}</span>
</div>
` : ''}
${tag.default_language || tag.default_min_speakers || tag.default_max_speakers ? `
<div class="pt-2 border-t border-[var(--border-secondary)]">
- <span class="font-medium text-xs">ASR Defaults:</span>
+ <span class="font-medium text-xs" data-i18n="tagManagement.asrDefaults">ASR Defaults:</span>
<div class="flex flex-wrap gap-2 mt-1">
${tag.default_language ? `<span class="inline-flex items-center px-2 py-1 rounded-full text-xs bg-[var(--bg-accent)] text-[var(--text-accent)]">Lang: ${escapeHtml(tag.default_language)}</span>` : ''}
${tag.default_min_speakers ? `<span class="inline-flex items-center px-2 py-1 rounded-full text-xs bg-[var(--bg-accent)] text-[var(--text-accent)]">Min: ${tag.default_min_speakers}</span>` : ''}
@@ -1699,6 +2163,12 @@
});
}
+ // Check for stored tab preference (from language change reload)
+ const storedTab = localStorage.getItem('activeAccountTab');
+ if (storedTab) {
+ localStorage.removeItem('activeAccountTab'); // Clean up after use
+ }
+
// Check for URL hash and show appropriate tab
const urlHash = window.location.hash.substring(1); // Remove the '#' symbol
if (urlHash === 'prompts') {
@@ -1709,10 +2179,50 @@
showSharesTab();
} else if (urlHash === 'about') {
showAboutTab();
+ } else if (storedTab) {
+ // Restore previously active tab after language change
+ if (storedTab === 'prompts') {
+ showPromptsTab();
+ } else if (storedTab === 'tags') {
+ showTagsTab();
+ } else if (storedTab === 'shares') {
+ showSharesTab();
+ } else if (storedTab === 'about') {
+ showAboutTab();
+ } else {
+ showAccountTab();
+ }
} else {
// Default to account tab
showAccountTab();
}
+
+ // Track original UI language to detect changes
+ let currentUILanguage = document.getElementById('ui_language').value;
+ const originalUILanguage = currentUILanguage;
+
+ // Add immediate language change listener to the UI language dropdown
+ const uiLanguageSelect = document.getElementById('ui_language');
+ if (uiLanguageSelect) {
+ uiLanguageSelect.addEventListener('change', async function(e) {
+ const newLanguage = e.target.value;
+ if (newLanguage !== currentUILanguage) {
+ await changeLanguageImmediately(newLanguage);
+ // Update the current language tracker
+ currentUILanguage = newLanguage;
+ }
+ });
+ }
+
+ // Add event listener to the account info form
+ document.getElementById('accountInfoForm').addEventListener('submit', function(e) {
+ const newUILanguage = document.getElementById('ui_language').value;
+ if (newUILanguage !== originalUILanguage) {
+ // Language has changed, store flag to reload main app
+ localStorage.setItem('ui_language_changed', 'true');
+ localStorage.setItem('preferredLanguage', newUILanguage);
+ }
+ });
});
</script>
</body>
diff --git a/templates/admin.html b/templates/admin.html
index 0eeb4fea..a3b84446 100644
--- a/templates/admin.html
+++ b/templates/admin.html
@@ -6,11 +6,42 @@
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>Admin Dashboard - Speakr</title>
<link rel="icon" href="{{ url_for('static', filename='img/favicon.ico') }}" type="image/svg+xml">
- <script src="https://cdn.tailwindcss.com"></script>
- <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
- <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
+ <!-- All dependencies bundled locally for offline support -->
+<script src="{{ url_for('static', filename='vendor/js/tailwind.min.js') }}"></script>
+ <!-- All dependencies bundled locally for offline support -->
+<script src="{{ url_for('static', filename='vendor/js/vue.global.js') }}"></script>
+ <!-- All dependencies bundled locally for offline support -->
+<link rel="stylesheet" href="{{ url_for('static', filename='vendor/css/fontawesome.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
+ <script src="{{ url_for('static', filename='js/i18n.js') }}"></script>
<script>
+ // Initialize i18n
+ let t = (key) => key; // Default fallback
+
+ async function initializeI18n() {
+ const userLanguage = "{{ user_language }}";
+
+ // Initialize the global i18n instance
+ if (window.i18n) {
+ await window.i18n.init(userLanguage);
+
+ // Create a shorthand translation function
+ t = (key, params) => window.i18n.t(key, params);
+
+ // Update all elements with data-i18n attribute
+ document.querySelectorAll('[data-i18n]').forEach(el => {
+ const key = el.getAttribute('data-i18n');
+ el.textContent = t(key);
+ });
+
+ // Update all elements with data-i18n-placeholder attribute
+ document.querySelectorAll('[data-i18n-placeholder]').forEach(el => {
+ const key = el.getAttribute('data-i18n-placeholder');
+ el.placeholder = t(key);
+ });
+ }
+ }
+
// Function to apply the theme based on localStorage
function applyTheme() {
// Apply dark mode
@@ -63,16 +94,16 @@
</button>
<div v-if="isUserMenuOpen" class="absolute right-0 mt-2 w-48 bg-[var(--bg-secondary)] border border-[var(--border-primary)] rounded-lg shadow-lg z-10">
<a href="{{ url_for('index') }}" class="block px-4 py-2 text-[var(--text-secondary)] hover:bg-[var(--bg-tertiary)] hover:text-[var(--text-accent)]">
- <i class="fas fa-home mr-2"></i> Home
+ <i class="fas fa-home mr-2"></i> ${t('nav.home')}
</a>
<a href="{{ url_for('account') }}" class="block px-4 py-2 text-[var(--text-secondary)] hover:bg-[var(--bg-tertiary)] hover:text-[var(--text-accent)]">
- <i class="fas fa-user mr-2"></i> Account
+ <i class="fas fa-user mr-2"></i> ${t('nav.account')}
</a>
<a href="{{ url_for('admin') }}" class="block px-4 py-2 text-[var(--text-accent)] bg-[var(--bg-accent)]">
- <i class="fas fa-user-shield mr-2"></i> Admin
+ <i class="fas fa-user-shield mr-2"></i> ${t('nav.admin')}
</a>
<a href="{{ url_for('logout') }}" class="block px-4 py-2 text-[var(--text-secondary)] hover:bg-[var(--bg-tertiary)] hover:text-[var(--text-danger)]">
- <i class="fas fa-sign-out-alt mr-2"></i> Logout
+ <i class="fas fa-sign-out-alt mr-2"></i> ${t('nav.signOut')}
</a>
</div>
</div>
@@ -99,28 +130,28 @@
<button @click="activeTab = 'users'"
:class="activeTab === 'users' ? 'border-[var(--border-focus)] text-[var(--text-accent)] bg-[var(--bg-tertiary)] sm:bg-transparent' : 'border-transparent text-[var(--text-muted)] hover:text-[var(--text-secondary)] hover:border-[var(--border-secondary)] hover:bg-[var(--bg-tertiary)] sm:hover:bg-transparent'"
class="flex items-center whitespace-nowrap py-3 sm:py-4 px-3 sm:px-1 border-b sm:border-b-2 border-l-4 sm:border-l-0 font-medium text-sm">
- <i class="fas fa-users mr-2"></i><span>User Management</span>
+ <i class="fas fa-users mr-2"></i><span>${t('adminDashboard.userManagement')}</span>
</button>
<button @click="activeTab = 'stats'"
:class="activeTab === 'stats' ? 'border-[var(--border-focus)] text-[var(--text-accent)] bg-[var(--bg-tertiary)] sm:bg-transparent' : 'border-transparent text-[var(--text-muted)] hover:text-[var(--text-secondary)] hover:border-[var(--border-secondary)] hover:bg-[var(--bg-tertiary)] sm:hover:bg-transparent'"
class="flex items-center whitespace-nowrap py-3 sm:py-4 px-3 sm:px-1 border-b sm:border-b-2 border-l-4 sm:border-l-0 font-medium text-sm">
- <i class="fas fa-chart-bar mr-2"></i><span>System Statistics</span>
+ <i class="fas fa-chart-bar mr-2"></i><span>${t('adminDashboard.systemStatistics')}</span>
</button>
<button @click="activeTab = 'settings'"
:class="activeTab === 'settings' ? 'border-[var(--border-focus)] text-[var(--text-accent)] bg-[var(--bg-tertiary)] sm:bg-transparent' : 'border-transparent text-[var(--text-muted)] hover:text-[var(--text-secondary)] hover:border-[var(--border-secondary)] hover:bg-[var(--bg-tertiary)] sm:hover:bg-transparent'"
class="flex items-center whitespace-nowrap py-3 sm:py-4 px-3 sm:px-1 border-b sm:border-b-2 border-l-4 sm:border-l-0 font-medium text-sm">
- <i class="fas fa-cogs mr-2"></i><span>System Settings</span>
+ <i class="fas fa-cogs mr-2"></i><span>${t('adminDashboard.systemSettings')}</span>
</button>
<button @click="activeTab = 'prompts'"
:class="activeTab === 'prompts' ? 'border-[var(--border-focus)] text-[var(--text-accent)] bg-[var(--bg-tertiary)] sm:bg-transparent' : 'border-transparent text-[var(--text-muted)] hover:text-[var(--text-secondary)] hover:border-[var(--border-secondary)] hover:bg-[var(--bg-tertiary)] sm:hover:bg-transparent'"
class="flex items-center whitespace-nowrap py-3 sm:py-4 px-3 sm:px-1 border-b sm:border-b-2 border-l-4 sm:border-l-0 font-medium text-sm">
- <i class="fas fa-file-alt mr-2"></i><span>Default Prompts</span>
+ <i class="fas fa-file-alt mr-2"></i><span>${t('adminDashboard.defaultPrompts')}</span>
</button>
<button @click="activeTab = 'vectorstore'"
:class="activeTab === 'vectorstore' ? 'border-[var(--border-focus)] text-[var(--text-accent)] bg-[var(--bg-tertiary)] sm:bg-transparent' : 'border-transparent text-[var(--text-muted)] hover:text-[var(--text-secondary)] hover:border-[var(--border-secondary)] hover:bg-[var(--bg-tertiary)] sm:hover:bg-transparent'"
class="flex items-center whitespace-nowrap py-3 sm:py-4 px-3 sm:px-1 border-b sm:border-b-2 border-l-4 sm:border-l-0 font-medium text-sm"
v-if="inquireModeEnabled">
- <i class="fas fa-database mr-2"></i><span>Vector Store</span>
+ <i class="fas fa-database mr-2"></i><span>${t('adminDashboard.vectorStore')}</span>
</button>
</nav>
</div>
@@ -128,16 +159,16 @@
<!-- User Management Tab -->
<div v-show="activeTab === 'users'">
<div class="flex justify-between items-center mb-4">
- <h3 class="text-lg font-medium text-[var(--text-secondary)]">User Management</h3>
+ <h3 class="text-lg font-medium text-[var(--text-secondary)]">${t('adminDashboard.userManagement')}</h3>
<button @click="showAddUserModal = true" class="px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-lg shadow hover:bg-[var(--bg-button-hover)] focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] focus:ring-offset-2 transition duration-150 ease-in-out">
- <i class="fas fa-user-plus mr-2"></i> Add User
+ <i class="fas fa-user-plus mr-2"></i> ${t('adminDashboard.addUser')}
</button>
</div>
<!-- Search and Filter -->
<div class="mb-4 flex">
<div class="relative flex-grow">
- <input type="text" v-model="userSearchQuery" placeholder="Search users..." class="w-full px-4 py-2 border border-[var(--border-secondary)] rounded-lg focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]">
+ <input type="text" v-model="userSearchQuery" :placeholder="t('adminDashboard.searchUsers')" class="w-full px-4 py-2 border border-[var(--border-secondary)] rounded-lg focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]">
<button v-if="userSearchQuery" @click="userSearchQuery = ''" class="absolute right-3 top-2.5 text-[var(--text-muted)] hover:text-[var(--text-secondary)]">
<i class="fas fa-times"></i>
</button>
@@ -149,13 +180,13 @@
<table class="min-w-full divide-y divide-[var(--border-primary)]">
<thead class="bg-[var(--bg-tertiary)]">
<tr>
- <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-[var(--text-muted)] uppercase tracking-wider">ID</th>
- <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-[var(--text-muted)] uppercase tracking-wider">Username</th>
- <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-[var(--text-muted)] uppercase tracking-wider">Email</th>
- <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-[var(--text-muted)] uppercase tracking-wider">Admin</th>
- <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-[var(--text-muted)] uppercase tracking-wider">Recordings</th>
- <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-[var(--text-muted)] uppercase tracking-wider">Storage Used</th>
- <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-[var(--text-muted)] uppercase tracking-wider">Actions</th>
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-[var(--text-muted)] uppercase tracking-wider">${t('adminDashboard.id')}</th>
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-[var(--text-muted)] uppercase tracking-wider">${t('adminDashboard.username')}</th>
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-[var(--text-muted)] uppercase tracking-wider">${t('adminDashboard.email')}</th>
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-[var(--text-muted)] uppercase tracking-wider">${t('adminDashboard.admin')}</th>
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-[var(--text-muted)] uppercase tracking-wider">${t('adminDashboard.recordings')}</th>
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-[var(--text-muted)] uppercase tracking-wider">${t('adminDashboard.storageUsed')}</th>
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-[var(--text-muted)] uppercase tracking-wider">${t('adminDashboard.actions')}</th>
</tr>
</thead>
<tbody class="bg-[var(--bg-secondary)] divide-y divide-[var(--border-primary)]">
@@ -171,13 +202,13 @@
<td class="px-6 py-4 whitespace-nowrap text-sm text-[var(--text-secondary)]">${ formatFileSize(user.storage_used) }</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-[var(--text-secondary)]">
<div class="flex space-x-2">
- <button @click="editUser(user)" class="text-[var(--text-accent)] hover:text-[var(--text-accent-hover)]" title="Edit User">
+ <button @click="editUser(user)" class="text-[var(--text-accent)] hover:text-[var(--text-accent-hover)]" :title="t('buttons.editUser')">
<i class="fas fa-edit"></i>
</button>
<button @click="toggleAdminStatus(user)" :class="user.is_admin ? 'text-[var(--text-warn-strong)]' : 'text-[var(--text-info-strong)]'" :title="user.is_admin ? 'Remove Admin' : 'Make Admin'">
<i class="fas" :class="user.is_admin ? 'fa-user-minus' : 'fa-user-shield'"></i>
</button>
- <button @click="confirmDeleteUser(user)" class="text-[var(--text-danger)] hover:text-[var(--text-danger-hover)]" title="Delete User">
+ <button @click="confirmDeleteUser(user)" class="text-[var(--text-danger)] hover:text-[var(--text-danger-hover)]" :title="t('buttons.deleteUser')">
<i class="fas fa-trash"></i>
</button>
</div>
@@ -200,7 +231,7 @@
<!-- System Statistics Tab -->
<div v-show="activeTab === 'stats'">
- <h3 class="text-lg font-medium text-[var(--text-secondary)] mb-4">System Statistics</h3>
+ <h3 class="text-lg font-medium text-[var(--text-secondary)] mb-4">${t('adminDashboard.systemStatistics')}</h3>
<!-- Summary Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6">
@@ -210,7 +241,7 @@
<i class="fas fa-users text-xl"></i>
</div>
<div class="ml-4">
- <p class="text-sm font-medium text-[var(--text-muted)]">Total Users</p>
+ <p class="text-sm font-medium text-[var(--text-muted)]">${t('adminDashboard.totalUsers')}</p>
<p class="text-2xl font-semibold text-[var(--text-primary)]">${ stats.total_users }</p>
</div>
</div>
@@ -222,7 +253,7 @@
<i class="fas fa-file-audio text-xl"></i>
</div>
<div class="ml-4">
- <p class="text-sm font-medium text-[var(--text-muted)]">Total Recordings</p>
+ <p class="text-sm font-medium text-[var(--text-muted)]">${t('adminDashboard.totalRecordings')}</p>
<p class="text-2xl font-semibold text-[var(--text-primary)]">${ stats.total_recordings }</p>
</div>
</div>
@@ -234,7 +265,7 @@
<i class="fas fa-database text-xl"></i>
</div>
<div class="ml-4">
- <p class="text-sm font-medium text-[var(--text-muted)]">Total Storage Used</p>
+ <p class="text-sm font-medium text-[var(--text-muted)]">${t('adminDashboard.totalStorage')}</p>
<p class="text-2xl font-semibold text-[var(--text-primary)]">${ formatFileSize(stats.total_storage) }</p>
</div>
</div>
@@ -246,7 +277,7 @@
<i class="fas fa-comments text-xl"></i>
</div>
<div class="ml-4">
- <p class="text-sm font-medium text-[var(--text-muted)]">Total Queries</p>
+ <p class="text-sm font-medium text-[var(--text-muted)]">${t('adminDashboard.totalQueries')}</p>
<p class="text-2xl font-semibold text-[var(--text-primary)]">${ stats.total_queries }</p>
</div>
</div>
@@ -256,29 +287,29 @@
<!-- Status Distribution -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6">
<div class="bg-[var(--bg-tertiary)] p-4 rounded-lg border border-[var(--border-primary)] shadow-sm">
- <h4 class="text-md font-medium text-[var(--text-secondary)] mb-3">Recording Status Distribution</h4>
+ <h4 class="text-md font-medium text-[var(--text-secondary)] mb-3">${t('adminDashboard.recordingStatusDistribution')}</h4>
<div class="grid grid-cols-2 gap-4">
<div class="text-center p-3 bg-[var(--bg-secondary)] rounded-lg border border-[var(--border-primary)] shadow-sm">
<span class="block text-2xl font-bold text-[var(--text-success-strong)]">${ stats.completed_recordings }</span>
- <span class="block text-sm text-[var(--text-muted)]">Completed</span>
+ <span class="block text-sm text-[var(--text-muted)]">${t('adminDashboard.completedRecordings')}</span>
</div>
<div class="text-center p-3 bg-[var(--bg-secondary)] rounded-lg border border-[var(--border-primary)] shadow-sm">
<span class="block text-2xl font-bold text-[var(--text-warn-strong)]">${ stats.processing_recordings }</span>
- <span class="block text-sm text-[var(--text-muted)]">Processing</span>
+ <span class="block text-sm text-[var(--text-muted)]">${t('adminDashboard.processingRecordings')}</span>
</div>
<div class="text-center p-3 bg-[var(--bg-secondary)] rounded-lg border border-[var(--border-primary)] shadow-sm">
<span class="block text-2xl font-bold text-[var(--text-pending-strong)]">${ stats.pending_recordings }</span>
- <span class="block text-sm text-[var(--text-muted)]">Pending</span>
+ <span class="block text-sm text-[var(--text-muted)]">${t('adminDashboard.pendingRecordings')}</span>
</div>
<div class="text-center p-3 bg-[var(--bg-secondary)] rounded-lg border border-[var(--border-primary)] shadow-sm">
<span class="block text-2xl font-bold text-[var(--text-danger-strong)]">${ stats.failed_recordings }</span>
- <span class="block text-sm text-[var(--text-muted)]">Failed</span>
+ <span class="block text-sm text-[var(--text-muted)]">${t('adminDashboard.failedRecordings')}</span>
</div>
</div>
</div>
<div class="bg-[var(--bg-tertiary)] p-4 rounded-lg border border-[var(--border-primary)] shadow-sm">
- <h4 class="text-md font-medium text-[var(--text-secondary)] mb-3">Top Users by Storage</h4>
+ <h4 class="text-md font-medium text-[var(--text-secondary)] mb-3">${t('adminDashboard.topUsersByStorage')}</h4>
<div class="space-y-3">
<div v-for="user in stats.top_users" :key="user.id" class="flex justify-between items-center p-2 bg-[var(--bg-secondary)] rounded-lg border border-[var(--border-primary)]">
<div class="flex items-center">
@@ -301,9 +332,9 @@
<!-- System Settings Tab -->
<div v-show="activeTab === 'settings'">
<div class="flex justify-between items-center mb-4">
- <h3 class="text-lg font-medium text-[var(--text-secondary)]">System Settings</h3>
+ <h3 class="text-lg font-medium text-[var(--text-secondary)]">${t('adminDashboard.systemSettings')}</h3>
<button @click="loadSettings" class="px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-lg shadow hover:bg-[var(--bg-button-hover)] focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] focus:ring-offset-2 transition duration-150 ease-in-out">
- <i class="fas fa-sync-alt mr-2"></i> Refresh
+ <i class="fas fa-sync-alt mr-2"></i> ${t('buttons.refresh')}
</button>
</div>
@@ -313,10 +344,10 @@
<div class="flex justify-between items-start">
<div class="flex-grow">
<h4 class="text-md font-medium text-[var(--text-primary)] mb-1">${ setting.key }</h4>
- <p class="text-sm text-[var(--text-muted)] mb-2">${ setting.description || 'No description available' }</p>
+ <p class="text-sm text-[var(--text-muted)] mb-2">${ getSettingDescription(setting) }</p>
<div class="flex items-center space-x-2">
<span class="text-xs px-2 py-1 bg-[var(--bg-accent)] text-[var(--text-accent)] rounded">${ setting.setting_type }</span>
- <span class="text-xs text-[var(--text-muted)]">Last updated: ${ formatDate(setting.updated_at) }</span>
+ <span class="text-xs text-[var(--text-muted)]">${t('adminDashboard.lastUpdated')}: ${ formatDate(setting.updated_at) }</span>
</div>
</div>
<div class="ml-4 flex items-center space-x-2">
@@ -331,21 +362,21 @@
</span>
</span>
<span v-else-if="setting.key === 'transcript_length_limit' && setting.value === '-1'" class="text-[var(--text-info-strong)]">
- <i class="fas fa-infinity mr-1"></i> No Limit
+ <i class="fas fa-infinity mr-1"></i> ${t('adminDashboard.noLimit')}
</span>
<span v-else-if="setting.key === 'transcript_length_limit'" class="text-[var(--text-primary)]">
- ${ Number(setting.value).toLocaleString() } characters
+ ${ Number(setting.value).toLocaleString() } ${t('adminDashboard.characters')}
</span>
<span v-else-if="setting.key === 'max_file_size_mb'" class="text-[var(--text-primary)]">
- ${ Number(setting.value).toLocaleString() } MB
+ ${ Number(setting.value).toLocaleString() } ${t('adminDashboard.megabytes')}
</span>
<span v-else-if="setting.key === 'asr_timeout_seconds'" class="text-[var(--text-primary)]">
- ${ Number(setting.value).toLocaleString() } seconds
+ ${ Number(setting.value).toLocaleString() } ${t('adminDashboard.seconds')}
</span>
- <span v-else>${ setting.value || 'Not set' }</span>
+ <span v-else>${ setting.value || t('adminDashboard.notSet') }</span>
</div>
</div>
- <button @click="editSetting(setting)" class="text-[var(--text-accent)] hover:text-[var(--text-accent-hover)] p-1" title="Edit Setting">
+ <button @click="editSetting(setting)" class="text-[var(--text-accent)] hover:text-[var(--text-accent-hover)] p-1" :title="t('buttons.editSetting')">
<i class="fas fa-edit"></i>
</button>
</div>
@@ -366,26 +397,26 @@
<!-- Default Prompts Tab -->
<div v-show="activeTab === 'prompts'">
<div class="mb-6">
- <h3 class="text-lg font-medium text-[var(--text-secondary)] mb-4">Default Prompts</h3>
+ <h3 class="text-lg font-medium text-[var(--text-secondary)] mb-4">${t('adminDashboard.defaultPrompts')}</h3>
<div class="bg-[var(--bg-info-light)] text-[var(--text-info-strong)] p-4 rounded-lg mb-4">
<i class="fas fa-info-circle mr-2"></i>
- This default prompt will be used for all users who haven't set their own custom prompt in their account settings.
+ ${t('adminDashboard.defaultPromptInfo')}
</div>
</div>
<div class="bg-[var(--bg-tertiary)] p-6 rounded-lg border border-[var(--border-primary)]">
<div class="mb-4">
<label class="block text-sm font-medium text-[var(--text-secondary)] mb-2">
- Default Summarization Prompt
+ ${t('adminDashboard.defaultSummarizationPrompt')}
</label>
<p class="text-sm text-[var(--text-muted)] mb-3">
- This prompt will be used to generate summaries for all recordings when users haven't set their own prompt.
+ ${t('adminDashboard.promptDescription')}
</p>
<textarea
v-model="defaultSummaryPrompt"
rows="8"
class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]"
- placeholder="Enter the default summarization prompt...">
+ :placeholder="t('form.summaryPromptPlaceholder')">
</textarea>
</div>
@@ -393,7 +424,7 @@
<div>
<button @click="resetDefaultPrompt"
class="px-4 py-2 border border-[var(--border-secondary)] text-[var(--text-secondary)] rounded-md hover:bg-[var(--bg-tertiary)]">
- <i class="fas fa-undo mr-2"></i> Reset to Default
+ <i class="fas fa-undo mr-2"></i> ${t('adminDashboard.resetToDefault')}
</button>
</div>
<div>
@@ -402,7 +433,7 @@
class="px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-md hover:bg-[var(--bg-button-hover)] disabled:opacity-50 disabled:cursor-not-allowed">
<i v-if="isSavingPrompt" class="fas fa-spinner fa-spin mr-2"></i>
<i v-else class="fas fa-save mr-2"></i>
- ${ isSavingPrompt ? 'Saving...' : 'Save Changes' }
+ ${ isSavingPrompt ? t('adminDashboard.saving') : t('buttons.saveChanges') }
</button>
</div>
</div>
@@ -416,15 +447,15 @@
</div>
<div class="mt-6 bg-[var(--bg-tertiary)] p-6 rounded-lg border border-[var(--border-primary)]">
- <h4 class="text-md font-medium text-[var(--text-secondary)] mb-3">Prompt Hierarchy</h4>
+ <h4 class="text-md font-medium text-[var(--text-secondary)] mb-3">${t('adminDashboard.promptHierarchy')}</h4>
<p class="text-sm text-[var(--text-muted)] mb-3">
- The system uses the following priority order when selecting which prompt to use:
+ ${t('adminDashboard.promptPriorityDescription')}
</p>
<ol class="list-decimal list-inside space-y-2 text-sm text-[var(--text-secondary)]">
- <li><strong>Tag Custom Prompt:</strong> If a recording has tags with custom prompts</li>
- <li><strong>User Custom Prompt:</strong> If the user has set their own prompt in account settings</li>
- <li><strong>Admin Default Prompt:</strong> The prompt configured above (shown on this page)</li>
- <li><strong>System Fallback:</strong> A hardcoded default if none of the above are set</li>
+ <li><strong>${t('adminDashboard.tagCustomPrompt')}:</strong> ${t('adminDashboard.tagCustomPromptDesc')}</li>
+ <li><strong>${t('adminDashboard.userCustomPrompt')}:</strong> ${t('adminDashboard.userCustomPromptDesc')}</li>
+ <li><strong>${t('adminDashboard.adminDefaultPrompt')}:</strong> ${t('adminDashboard.adminDefaultPromptDesc')}</li>
+ <li><strong>${t('adminDashboard.systemFallback')}:</strong> ${t('adminDashboard.systemFallbackDesc')}</li>
</ol>
</div>
@@ -434,7 +465,7 @@
class="w-full p-6 flex justify-between items-center hover:bg-[var(--bg-quaternary)] transition-colors duration-200">
<h4 class="text-md font-medium text-[var(--text-secondary)]">
<i class="fas fa-code mr-2"></i>
- View Full LLM Prompt Structure
+ ${t('adminDashboard.viewFullPromptStructure')}
</h4>
<i :class="showFullPromptStructure ? 'fas fa-chevron-up' : 'fas fa-chevron-down'"
class="text-[var(--text-muted)]"></i>
@@ -443,21 +474,21 @@
<div v-show="showFullPromptStructure" class="border-t border-[var(--border-primary)]">
<div class="p-6 space-y-6">
<div>
- <h5 class="text-sm font-semibold text-[var(--text-accent)] mb-2">System Prompt:</h5>
+ <h5 class="text-sm font-semibold text-[var(--text-accent)] mb-2">${t('adminDashboard.systemPrompt')}:</h5>
<div class="bg-[var(--bg-secondary)] p-4 rounded-md border border-[var(--border-secondary)]">
<pre class="text-xs text-[var(--text-secondary)] whitespace-pre-wrap font-mono">You are an AI assistant that generates comprehensive summaries for meeting transcripts. Respond only with the summary in Markdown format. Do NOT use markdown code blocks (```markdown). Provide raw markdown content directly.<span v-if="defaultSummaryPrompt || originalDefaultPrompt">
-Summarization Instructions:
+${t('adminDashboard.summarizationInstructions')}:
${ defaultSummaryPrompt || originalDefaultPrompt }</span></pre>
</div>
<p class="text-xs text-[var(--text-muted)] mt-2">
<i class="fas fa-info-circle mr-1"></i>
- Note: If the user has set an output language preference, " Ensure your response is in {language}." will be added.
+ ${t('adminDashboard.languagePreferenceNote')}
</p>
</div>
<div>
- <h5 class="text-sm font-semibold text-[var(--text-accent)] mb-2">User Message Template:</h5>
+ <h5 class="text-sm font-semibold text-[var(--text-accent)] mb-2">${t('adminDashboard.userMessageTemplate')}:</h5>
<div class="bg-[var(--bg-secondary)] p-4 rounded-md border border-[var(--border-secondary)]">
<pre class="text-xs text-[var(--text-secondary)] whitespace-pre-wrap font-mono">Context:
- Current date: {current_date}
@@ -473,18 +504,18 @@ Please analyze the above transcription and generate a summary following the prov
</div>
<p class="text-xs text-[var(--text-muted)] mt-2">
<i class="fas fa-info-circle mr-1"></i>
- Placeholders are replaced with actual values when processing a recording.
+ ${t('adminDashboard.placeholdersNote')}
</p>
</div>
<div>
- <h5 class="text-sm font-semibold text-[var(--text-accent)] mb-2">Additional Context:</h5>
+ <h5 class="text-sm font-semibold text-[var(--text-accent)] mb-2">${t('adminDashboard.additionalContext')}:</h5>
<div class="bg-[var(--bg-info-light)] p-4 rounded-md">
<ul class="text-xs text-[var(--text-info-strong)] space-y-2">
- <li><i class="fas fa-check-circle mr-1"></i> Transcripts are limited to a configurable character count (default: 30,000)</li>
- <li><i class="fas fa-check-circle mr-1"></i> JSON transcripts are converted to clean text format before sending</li>
- <li><i class="fas fa-check-circle mr-1"></i> If multiple tag prompts exist, they are merged in the order tags were added</li>
- <li><i class="fas fa-check-circle mr-1"></i> The model used is configured via TEXT_MODEL_NAME environment variable</li>
+ <li><i class="fas fa-check-circle mr-1"></i> ${t('adminDashboard.contextNotes.transcriptLimit')}</li>
+ <li><i class="fas fa-check-circle mr-1"></i> ${t('adminDashboard.contextNotes.jsonConversion')}</li>
+ <li><i class="fas fa-check-circle mr-1"></i> ${t('adminDashboard.contextNotes.tagPrompts')}</li>
+ <li><i class="fas fa-check-circle mr-1"></i> ${t('adminDashboard.contextNotes.modelConfig')}</li>
</ul>
</div>
</div>
@@ -496,36 +527,35 @@ Please analyze the above transcription and generate a summary following the prov
<!-- Vector Store Tab -->
<div v-show="activeTab === 'vectorstore'" v-if="inquireModeEnabled">
<div class="flex justify-between items-center mb-6">
- <h3 class="text-lg font-medium text-[var(--text-secondary)]">Vector Store Management</h3>
+ <h3 class="text-lg font-medium text-[var(--text-secondary)]">${t('adminDashboard.vectorStoreManagement')}</h3>
<button @click="loadInquireStatus" class="px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-lg shadow hover:bg-[var(--bg-button-hover)] focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] focus:ring-offset-2 transition duration-150 ease-in-out">
- <i class="fas fa-sync-alt mr-2"></i> Refresh Status
+ <i class="fas fa-sync-alt mr-2"></i> ${t('adminDashboard.refreshStatus')}
</button>
</div>
<!-- Vector Store Info -->
<div class="bg-[var(--bg-tertiary)] p-6 rounded-lg border border-[var(--border-primary)] mb-6">
<h4 class="text-md font-semibold text-[var(--text-primary)] mb-4">
- <i class="fas fa-info-circle mr-2"></i>About Inquire Mode
+ <i class="fas fa-info-circle mr-2"></i>${t('adminDashboard.aboutInquireMode')}
</h4>
<p class="text-sm text-[var(--text-secondary)] mb-3">
- Inquire Mode allows users to search across multiple transcriptions using natural language questions.
- It works by breaking transcriptions into chunks and creating searchable embeddings using AI models.
+ ${t('adminDashboard.inquireModeDescription')}
</p>
<div class="grid grid-cols-2 gap-4 text-sm">
<div>
- <span class="text-[var(--text-muted)]">Chunk Size:</span>
- <span class="ml-2 text-[var(--text-primary)]">500 characters</span>
+ <span class="text-[var(--text-muted)]">${t('adminDashboard.chunkSize')}:</span>
+ <span class="ml-2 text-[var(--text-primary)]">500 ${t('adminDashboard.characters')}</span>
</div>
<div>
- <span class="text-[var(--text-muted)]">Overlap:</span>
- <span class="ml-2 text-[var(--text-primary)]">50 characters</span>
+ <span class="text-[var(--text-muted)]">${t('adminDashboard.overlap')}:</span>
+ <span class="ml-2 text-[var(--text-primary)]">50 ${t('adminDashboard.characters')}</span>
</div>
<div>
- <span class="text-[var(--text-muted)]">Embedding Model:</span>
+ <span class="text-[var(--text-muted)]">${t('adminDashboard.embeddingModel')}:</span>
<span class="ml-2 text-[var(--text-primary)]">all-MiniLM-L6-v2</span>
</div>
<div>
- <span class="text-[var(--text-muted)]">Vector Dimensions:</span>
+ <span class="text-[var(--text-muted)]">${t('adminDashboard.vectorDimensions')}:</span>
<span class="ml-2 text-[var(--text-primary)]">384</span>
</div>
</div>
@@ -536,7 +566,7 @@ Please analyze the above transcription and generate a summary following the prov
<div class="bg-[var(--bg-secondary)] p-6 rounded-lg border border-[var(--border-primary)] shadow-sm">
<div class="flex items-center justify-between">
<div>
- <p class="text-sm text-[var(--text-muted)]">Total Recordings</p>
+ <p class="text-sm text-[var(--text-muted)]">${t('adminDashboard.totalRecordings')}</p>
<p class="text-2xl font-semibold text-[var(--text-primary)]">${ inquireStatus.total_completed_recordings || 0 }</p>
</div>
<i class="fas fa-file-audio text-3xl text-[var(--text-accent)] opacity-50"></i>
@@ -546,7 +576,7 @@ Please analyze the above transcription and generate a summary following the prov
<div class="bg-[var(--bg-secondary)] p-6 rounded-lg border border-[var(--border-primary)] shadow-sm">
<div class="flex items-center justify-between">
<div>
- <p class="text-sm text-[var(--text-muted)]">Processed for Inquire</p>
+ <p class="text-sm text-[var(--text-muted)]">${t('adminDashboard.processedForInquire')}</p>
<p class="text-2xl font-semibold text-[var(--text-success-strong)]">${ inquireStatus.processed_for_inquire || 0 }</p>
</div>
<i class="fas fa-check-circle text-3xl text-[var(--text-success-strong)] opacity-50"></i>
@@ -556,7 +586,7 @@ Please analyze the above transcription and generate a summary following the prov
<div class="bg-[var(--bg-secondary)] p-6 rounded-lg border border-[var(--border-primary)] shadow-sm">
<div class="flex items-center justify-between">
<div>
- <p class="text-sm text-[var(--text-muted)]">Need Processing</p>
+ <p class="text-sm text-[var(--text-muted)]">${t('adminDashboard.needProcessing')}</p>
<p class="text-2xl font-semibold" :class="inquireStatus.need_processing > 0 ? 'text-[var(--text-warning-strong)]' : 'text-[var(--text-primary)]'">
${ inquireStatus.need_processing || 0 }
</p>
@@ -568,7 +598,7 @@ Please analyze the above transcription and generate a summary following the prov
<div class="bg-[var(--bg-secondary)] p-6 rounded-lg border border-[var(--border-primary)] shadow-sm">
<div class="flex items-center justify-between">
<div>
- <p class="text-sm text-[var(--text-muted)]">Total Chunks</p>
+ <p class="text-sm text-[var(--text-muted)]">${t('adminDashboard.totalChunks')}</p>
<p class="text-2xl font-semibold text-[var(--text-primary)]">${ inquireStatus.total_chunks || 0 }</p>
</div>
<i class="fas fa-th text-3xl text-[var(--text-accent)] opacity-50"></i>
@@ -578,10 +608,10 @@ Please analyze the above transcription and generate a summary following the prov
<div class="bg-[var(--bg-secondary)] p-6 rounded-lg border border-[var(--border-primary)] shadow-sm">
<div class="flex items-center justify-between">
<div>
- <p class="text-sm text-[var(--text-muted)]">Embeddings Status</p>
+ <p class="text-sm text-[var(--text-muted)]">${t('adminDashboard.embeddingsStatus')}</p>
<p class="text-lg font-semibold" :class="inquireStatus.embeddings_available ? 'text-[var(--text-success-strong)]' : 'text-[var(--text-warning-strong)]'">
<i :class="inquireStatus.embeddings_available ? 'fas fa-check-circle' : 'fas fa-exclamation-triangle'" class="mr-2"></i>
- ${ inquireStatus.embeddings_available ? 'Available' : 'Text Search Only' }
+ ${ inquireStatus.embeddings_available ? t('adminDashboard.available') : t('adminDashboard.textSearchOnly') }
</p>
</div>
<i class="fas fa-brain text-3xl opacity-50" :class="inquireStatus.embeddings_available ? 'text-[var(--text-success-strong)]' : 'text-[var(--text-warning-strong)]'"></i>
@@ -591,12 +621,12 @@ Please analyze the above transcription and generate a summary following the prov
<div class="bg-[var(--bg-secondary)] p-6 rounded-lg border border-[var(--border-primary)] shadow-sm">
<div class="flex items-center justify-between">
<div>
- <p class="text-sm text-[var(--text-muted)]">Processing Progress</p>
+ <p class="text-sm text-[var(--text-muted)]">${t('adminDashboard.processingProgress')}</p>
<div class="mt-2">
<div class="w-full bg-[var(--bg-tertiary)] rounded-full h-2.5">
<div class="bg-[var(--text-accent)] h-2.5 rounded-full" :style="{width: getProcessingProgress() + '%'}"></div>
</div>
- <p class="text-xs text-[var(--text-muted)] mt-1">${ getProcessingProgress() }% complete</p>
+ <p class="text-xs text-[var(--text-muted)] mt-1">${ getProcessingProgress() }% ${t('adminDashboard.complete')}</p>
</div>
</div>
<i class="fas fa-tasks text-3xl text-[var(--text-accent)] opacity-50"></i>
@@ -607,12 +637,12 @@ Please analyze the above transcription and generate a summary following the prov
<!-- Processing Actions -->
<div class="bg-[var(--bg-tertiary)] p-6 rounded-lg border border-[var(--border-primary)]">
<h4 class="text-md font-semibold text-[var(--text-primary)] mb-4">
- <i class="fas fa-cog mr-2"></i>Processing Actions
+ <i class="fas fa-cog mr-2"></i>${t('adminDashboard.processingActions')}
</h4>
<div v-if="inquireStatus.need_processing > 0" class="mb-4">
<p class="text-sm text-[var(--text-secondary)] mb-4">
- There are <span class="font-semibold text-[var(--text-warning-strong)]">${ inquireStatus.need_processing }</span> recordings that need to be processed for Inquire Mode.
+ ${t('adminDashboard.recordingsNeedProcessing').replace('{{count}}', inquireStatus.need_processing)}
</p>
<div class="flex flex-wrap gap-3">
@@ -620,14 +650,14 @@ Please analyze the above transcription and generate a summary following the prov
:disabled="isProcessingRecordings"
class="px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-lg shadow hover:bg-[var(--bg-button-hover)] focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] focus:ring-offset-2 transition duration-150 ease-in-out disabled:opacity-50 disabled:cursor-not-allowed">
<i :class="isProcessingRecordings ? 'fas fa-spinner fa-spin' : 'fas fa-play'" class="mr-2"></i>
- ${ isProcessingRecordings ? 'Processing...' : 'Process All Recordings' }
+ ${ isProcessingRecordings ? t('adminDashboard.processing') : t('adminDashboard.processAllRecordings') }
</button>
<button @click="processBatchRecordings(10)"
:disabled="isProcessingRecordings"
class="px-4 py-2 bg-[var(--bg-secondary)] text-[var(--text-secondary)] border border-[var(--border-secondary)] rounded-lg shadow hover:bg-[var(--bg-tertiary)] focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] focus:ring-offset-2 transition duration-150 ease-in-out disabled:opacity-50 disabled:cursor-not-allowed">
<i class="fas fa-forward mr-2"></i>
- Process Next 10
+ ${t('adminDashboard.processNext10')}
</button>
</div>
@@ -647,8 +677,8 @@ Please analyze the above transcription and generate a summary following the prov
<div v-else class="text-center py-4">
<i class="fas fa-check-circle text-4xl text-[var(--text-success-strong)] mb-3"></i>
- <p class="text-[var(--text-success-strong)] font-medium">All recordings are processed!</p>
- <p class="text-sm text-[var(--text-muted)] mt-1">The vector store is up to date.</p>
+ <p class="text-[var(--text-success-strong)] font-medium">${t('adminDashboard.allRecordingsProcessed')}</p>
+ <p class="text-sm text-[var(--text-muted)] mt-1">${t('adminDashboard.vectorStoreUpToDate')}</p>
</div>
</div>
</div>
@@ -660,75 +690,81 @@ Please analyze the above transcription and generate a summary following the prov
</footer>
<!-- Add User Modal -->
- <div v-if="showAddUserModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4">
+ <div v-if="showAddUserModal" @click.self="showAddUserModal = false" class="fixed inset-0 bg-black bg-opacity-70 backdrop-blur-sm flex items-center justify-center z-50 p-4">
<div class="bg-[var(--bg-secondary)] p-6 rounded-lg shadow-xl w-full max-w-md">
<div class="flex justify-between items-center mb-4">
- <h3 class="text-xl font-semibold text-[var(--text-primary)]">Add New User</h3>
+ <h3 class="text-xl font-semibold text-[var(--text-primary)]">${t('adminDashboard.addNewUser')}</h3>
<button @click="showAddUserModal = false" class="text-[var(--text-muted)] hover:text-[var(--text-secondary)]">&times;</button>
</div>
<form @submit.prevent="addUser">
<div class="mb-4">
- <label class="block text-sm font-medium text-[var(--text-secondary)] mb-1">Username</label>
+ <label class="block text-sm font-medium text-[var(--text-secondary)] mb-1">${t('adminDashboard.usernameLabel')}</label>
<input v-model="newUser.username" type="text" required class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]">
</div>
<div class="mb-4">
- <label class="block text-sm font-medium text-[var(--text-secondary)] mb-1">Email</label>
+ <label class="block text-sm font-medium text-[var(--text-secondary)] mb-1">${t('adminDashboard.emailLabel')}</label>
<input v-model="newUser.email" type="email" required class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]">
</div>
<div class="mb-4">
- <label class="block text-sm font-medium text-[var(--text-secondary)] mb-1">Password</label>
+ <label class="block text-sm font-medium text-[var(--text-secondary)] mb-1">${t('adminDashboard.passwordLabel')}</label>
<input v-model="newUser.password" type="password" required class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]">
</div>
<div class="mb-4">
- <label class="block text-sm font-medium text-[var(--text-secondary)] mb-1">Confirm Password</label>
+ <label class="block text-sm font-medium text-[var(--text-secondary)] mb-1">${t('adminDashboard.confirmPasswordLabel')}</label>
<input v-model="newUser.confirmPassword" type="password" required class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]">
</div>
- <div class="mb-4 flex items-center">
- <input v-model="newUser.isAdmin" type="checkbox" id="isAdmin" class="rounded border-[var(--border-secondary)] text-[var(--text-accent)] focus:ring-[var(--border-focus)]">
- <label for="isAdmin" class="ml-2 text-sm text-[var(--text-secondary)]">Admin User</label>
+ <div class="mb-4">
+ <label class="flex items-center cursor-pointer">
+ <input v-model="newUser.isAdmin" type="checkbox" class="sr-only peer">
+ <div class="relative w-11 h-6 bg-gray-600 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-[var(--text-accent)]"></div>
+ <span class="ml-3 text-sm text-[var(--text-secondary)]">${t('adminDashboard.adminUser')}</span>
+ </label>
</div>
<div class="flex justify-end space-x-3">
- <button type="button" @click="showAddUserModal = false" class="px-4 py-2 border border-[var(--border-secondary)] text-[var(--text-secondary)] rounded-md hover:bg-[var(--bg-tertiary)]">Cancel</button>
- <button type="submit" class="px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-md hover:bg-[var(--bg-button-hover)]">Add User</button>
+ <button type="button" @click="showAddUserModal = false" class="px-4 py-2 border border-[var(--border-secondary)] text-[var(--text-secondary)] rounded-md hover:bg-[var(--bg-tertiary)]">${t('buttons.cancel')}</button>
+ <button type="submit" class="px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-md hover:bg-[var(--bg-button-hover)]">${t('adminDashboard.addUser')}</button>
</div>
</form>
</div>
</div>
<!-- Edit User Modal -->
- <div v-if="showEditUserModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4">
+ <div v-if="showEditUserModal" @click.self="showEditUserModal = false" class="fixed inset-0 bg-black bg-opacity-70 backdrop-blur-sm flex items-center justify-center z-50 p-4">
<div class="bg-[var(--bg-secondary)] p-6 rounded-lg shadow-xl w-full max-w-md">
<div class="flex justify-between items-center mb-4">
- <h3 class="text-xl font-semibold text-[var(--text-primary)]">Edit User</h3>
+ <h3 class="text-xl font-semibold text-[var(--text-primary)]">${t('adminDashboard.editUser')}</h3>
<button @click="showEditUserModal = false" class="text-[var(--text-muted)] hover:text-[var(--text-secondary)]">&times;</button>
</div>
<form @submit.prevent="updateUser">
<div class="mb-4">
- <label class="block text-sm font-medium text-[var(--text-secondary)] mb-1">Username</label>
+ <label class="block text-sm font-medium text-[var(--text-secondary)] mb-1">${t('adminDashboard.usernameLabel')}</label>
<input v-model="editingUser.username" type="text" required class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]">
</div>
<div class="mb-4">
- <label class="block text-sm font-medium text-[var(--text-secondary)] mb-1">Email</label>
+ <label class="block text-sm font-medium text-[var(--text-secondary)] mb-1">${t('adminDashboard.emailLabel')}</label>
<input v-model="editingUser.email" type="email" required class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]">
</div>
<div class="mb-4">
- <label class="block text-sm font-medium text-[var(--text-secondary)] mb-1">New Password (leave blank to keep current)</label>
+ <label class="block text-sm font-medium text-[var(--text-secondary)] mb-1">${t('adminDashboard.newPasswordLabel')}</label>
<input v-model="editingUser.password" type="password" class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]">
</div>
- <div class="mb-4 flex items-center">
- <input v-model="editingUser.is_admin" type="checkbox" id="editIsAdmin" class="rounded border-[var(--border-secondary)] text-[var(--text-accent)] focus:ring-[var(--border-focus)]">
- <label for="editIsAdmin" class="ml-2 text-sm text-[var(--text-secondary)]">Admin User</label>
+ <div class="mb-4">
+ <label class="flex items-center cursor-pointer">
+ <input v-model="editingUser.is_admin" type="checkbox" class="sr-only peer">
+ <div class="relative w-11 h-6 bg-gray-600 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-[var(--text-accent)]"></div>
+ <span class="ml-3 text-sm text-[var(--text-secondary)]">${t('adminDashboard.adminUser')}</span>
+ </label>
</div>
<div class="flex justify-end space-x-3">
<button type="button" @click="showEditUserModal = false" class="px-4 py-2 border border-[var(--border-secondary)] text-[var(--text-secondary)] rounded-md hover:bg-[var(--bg-tertiary)]">Cancel</button>
- <button type="submit" class="px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-md hover:bg-[var(--bg-button-hover)]">Update User</button>
+ <button type="submit" class="px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-md hover:bg-[var(--bg-button-hover)]">${t('adminDashboard.updateUser')}</button>
</div>
</form>
</div>
</div>
<!-- Delete User Confirmation Modal -->
- <div v-if="showDeleteUserModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4">
+ <div v-if="showDeleteUserModal" @click.self="showDeleteUserModal = false" class="fixed inset-0 bg-black bg-opacity-70 backdrop-blur-sm flex items-center justify-center z-50 p-4">
<div class="bg-[var(--bg-secondary)] p-6 rounded-lg shadow-xl w-full max-w-md">
<div class="flex justify-between items-center mb-4">
<h3 class="text-xl font-semibold text-[var(--text-primary)]">Confirm Delete</h3>
@@ -776,18 +812,18 @@ Please analyze the above transcription and generate a summary following the prov
<label class="block text-sm font-medium text-[var(--text-secondary)] mb-1">Current Value</label>
<div class="px-3 py-2 bg-[var(--bg-tertiary)] text-[var(--text-muted)] rounded-md">
<span v-if="editingSetting.key === 'transcript_length_limit' && editingSetting.value === '-1'">
- No Limit
+ ${t('adminDashboard.noLimit')}
</span>
<span v-else-if="editingSetting.key === 'transcript_length_limit'">
- ${ Number(editingSetting.value).toLocaleString() } characters
+ ${ Number(editingSetting.value).toLocaleString() } ${t('adminDashboard.characters')}
</span>
<span v-else-if="editingSetting.key === 'max_file_size_mb'">
- ${ Number(editingSetting.value).toLocaleString() } MB
+ ${ Number(editingSetting.value).toLocaleString() } ${t('adminDashboard.megabytes')}
</span>
<span v-else-if="editingSetting.key === 'asr_timeout_seconds'">
- ${ Number(editingSetting.value).toLocaleString() } seconds (${ Math.round(Number(editingSetting.value) / 60) } minutes)
+ ${ Number(editingSetting.value).toLocaleString() } ${t('adminDashboard.seconds')} (${ Math.round(Number(editingSetting.value) / 60) } ${t('adminDashboard.minutes')})
</span>
- <span v-else>${ editingSetting.value || 'Not set' }</span>
+ <span v-else>${ editingSetting.value || t('adminDashboard.notSet') }</span>
</div>
</div>
@@ -816,7 +852,7 @@ Please analyze the above transcription and generate a summary following the prov
</div>
<input v-if="!settingUseNoLimit" v-model.number="settingNewValue" type="number" min="1000" step="1000"
class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]"
- placeholder="Enter character limit (e.g., 30000)">
+ :placeholder="t('form.placeholderCharacterLimit')">
<small v-if="!settingUseNoLimit" class="text-[var(--text-muted)]">Recommended: 30000-50000 characters for most LLMs</small>
</div>
@@ -824,8 +860,8 @@ Please analyze the above transcription and generate a summary following the prov
<div v-else-if="editingSetting.key === 'max_file_size_mb'" class="space-y-2">
<input v-model.number="settingNewValue" type="number" min="1" max="10000" step="50"
class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]"
- placeholder="Enter size in MB">
- <small class="text-[var(--text-muted)]">Maximum file size in megabytes (1-10000 MB)</small>
+ :placeholder="t('form.placeholderSizeMB')">
+ <small class="text-[var(--text-muted)]">${t('adminDashboard.maxFileSizeHelp')}</small>
</div>
<!-- Special input for asr_timeout_seconds -->
@@ -834,20 +870,20 @@ Please analyze the above transcription and generate a summary following the prov
<div class="flex-1">
<input v-model.number="settingTimeoutMinutes" type="number" min="1" max="600" step="1"
class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]"
- placeholder="Minutes">
- <small class="text-[var(--text-muted)]">Minutes</small>
+ :placeholder="t('form.placeholderMinutes')">
+ <small class="text-[var(--text-muted)]">${t('adminDashboard.minutes')}</small>
</div>
<div class="flex-1">
<input v-model.number="settingTimeoutSeconds" type="number" min="0" max="59" step="1"
class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]"
- placeholder="Seconds">
- <small class="text-[var(--text-muted)]">Seconds</small>
+ :placeholder="t('form.placeholderSeconds')">
+ <small class="text-[var(--text-muted)]">${t('adminDashboard.seconds')}</small>
</div>
</div>
<div class="text-sm text-[var(--text-muted)]">
- Total: <span class="font-medium text-[var(--text-primary)]">${ (settingTimeoutMinutes * 60 + settingTimeoutSeconds).toLocaleString() } seconds</span>
+ ${t('adminDashboard.total')}: <span class="font-medium text-[var(--text-primary)]">${ (settingTimeoutMinutes * 60 + settingTimeoutSeconds).toLocaleString() } ${t('adminDashboard.seconds')}</span>
</div>
- <small class="text-[var(--text-muted)]">Recommended: 30-120 minutes for long audio files</small>
+ <small class="text-[var(--text-muted)]">${t('adminDashboard.timeoutRecommendation')}</small>
</div>
<!-- Default number input -->
@@ -874,7 +910,7 @@ Please analyze the above transcription and generate a summary following the prov
</button>
<button @click="saveSettingValue"
class="px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-md hover:bg-[var(--bg-button-hover)]">
- Save Changes
+ ${t('buttons.saveChanges')}
</button>
</div>
</div>
@@ -884,8 +920,14 @@ Please analyze the above transcription and generate a summary following the prov
<script>
const { createApp, ref, computed, onMounted, watch } = Vue
- createApp({
+ // Initialize i18n before Vue app creation
+ initializeI18n().then(() => {
+ // Get the i18n instance to properly bind the t function
+ const i18nInstance = window.i18n;
+
+ createApp({
setup() {
+
// State
const activeTab = ref('users');
const users = ref([]);
@@ -990,6 +1032,9 @@ Please analyze the above transcription and generate a summary following the prov
isLoadingSettings.value = true;
try {
const response = await fetch('/admin/settings');
+ if (response.status === 429) {
+ throw new Error('Rate limit exceeded. Please wait a moment and try again.');
+ }
if (!response.ok) throw new Error('Failed to load settings');
const data = await response.json();
@@ -1139,11 +1184,25 @@ Please analyze the above transcription and generate a summary following the prov
};
const formatDate = (dateString) => {
- if (!dateString) return 'Never';
+ if (!dateString) return t('adminDashboard.never');
const date = new Date(dateString);
return date.toLocaleDateString() + ' ' + date.toLocaleTimeString();
};
+ const getSettingDescription = (setting) => {
+ // Map setting keys to translation keys
+ const descriptionKeys = {
+ 'transcript_length_limit': 'adminDashboard.settings.transcriptLengthLimitDesc',
+ 'max_file_size_mb': 'adminDashboard.settings.maxFileSizeDesc',
+ 'asr_timeout_seconds': 'adminDashboard.settings.asrTimeoutDesc',
+ 'admin_default_summary_prompt': 'adminDashboard.settings.defaultSummaryPromptDesc',
+ 'recording_disclaimer': 'adminDashboard.settings.recordingDisclaimerDesc'
+ };
+
+ const key = descriptionKeys[setting.key];
+ return key ? t(key) : setting.description || t('adminDashboard.noDescriptionAvailable');
+ };
+
const addUser = async () => {
if (newUser.value.password !== newUser.value.confirmPassword) {
alert('Passwords do not match');
@@ -1354,18 +1413,26 @@ Please analyze the above transcription and generate a summary following the prov
// Default Prompts methods
const loadDefaultPrompt = async () => {
try {
- // Load the admin_default_summary_prompt from settings
- const response = await fetch('/admin/settings');
- if (!response.ok) throw new Error('Failed to load settings');
+ // Use already loaded settings if available, otherwise load them
+ let settingsData = settings.value;
+
+ if (!settingsData || settingsData.length === 0) {
+ const response = await fetch('/admin/settings');
+ if (response.status === 429) {
+ throw new Error('Rate limit exceeded. Please wait a moment and try again.');
+ }
+ if (!response.ok) throw new Error('Failed to load settings');
+ settingsData = await response.json();
+ settings.value = settingsData;
+ }
- const settings = await response.json();
- const promptSetting = settings.find(s => s.key === 'admin_default_summary_prompt');
+ const promptSetting = settingsData.find(s => s.key === 'admin_default_summary_prompt');
if (promptSetting) {
defaultSummaryPrompt.value = promptSetting.value || '';
}
} catch (error) {
console.error('Error loading default prompt:', error);
- promptSaveMessage.value = 'Failed to load default prompt';
+ promptSaveMessage.value = t('adminDashboard.errors.failedToLoadPrompt');
promptSaveError.value = true;
}
};
@@ -1392,7 +1459,7 @@ Please analyze the above transcription and generate a summary following the prov
if (!response.ok) throw new Error('Failed to save prompt');
- promptSaveMessage.value = 'Default prompt saved successfully!';
+ promptSaveMessage.value = t('adminDashboard.promptSavedSuccessfully');
promptSaveError.value = false;
// Clear message after 3 seconds
@@ -1401,7 +1468,7 @@ Please analyze the above transcription and generate a summary following the prov
}, 3000);
} catch (error) {
console.error('Error saving default prompt:', error);
- promptSaveMessage.value = 'Failed to save default prompt. Please try again.';
+ promptSaveMessage.value = t('adminDashboard.errors.failedToSavePrompt');
promptSaveError.value = true;
} finally {
isSavingPrompt.value = false;
@@ -1410,7 +1477,7 @@ Please analyze the above transcription and generate a summary following the prov
const resetDefaultPrompt = () => {
defaultSummaryPrompt.value = originalDefaultPrompt;
- promptSaveMessage.value = 'Prompt reset to system default. Click "Save Changes" to apply.';
+ promptSaveMessage.value = t('adminDashboard.promptResetMessage');
promptSaveError.value = false;
};
@@ -1500,26 +1567,36 @@ Please analyze the above transcription and generate a summary following the prov
return Math.round((inquireStatus.value.processed_for_inquire / total) * 100);
};
- // Lifecycle hooks
- onMounted(() => {
+ // Lifecycle hooks - MUST be registered before any await statements
+ onMounted(async () => {
loadUsers();
loadStats();
initializeDarkMode();
+
+ // Load settings first, then default prompt can use that data
+ if (activeTab.value === 'settings' || activeTab.value === 'prompts') {
+ await loadSettings();
+ }
loadDefaultPrompt();
+
if (inquireModeEnabled.value) {
loadInquireStatus();
}
});
// Watch for tab changes to reload data
- watch(activeTab, (newTab) => {
+ watch(activeTab, async (newTab) => {
if (newTab === 'users') {
loadUsers();
} else if (newTab === 'stats') {
loadStats();
} else if (newTab === 'settings') {
- loadSettings();
+ await loadSettings();
} else if (newTab === 'prompts') {
+ // If settings aren't loaded, load them first
+ if (!settings.value || settings.value.length === 0) {
+ await loadSettings();
+ }
loadDefaultPrompt();
} else if (newTab === 'vectorstore' && inquireModeEnabled.value) {
loadInquireStatus();
@@ -1527,6 +1604,9 @@ Please analyze the above transcription and generate a summary following the prov
});
return {
+ // i18n - bind to i18n instance to maintain context
+ t: (key, params) => i18nInstance ? i18nInstance.t(key, params) : key,
+
// State
activeTab,
users,
@@ -1581,6 +1661,7 @@ Please analyze the above transcription and generate a summary following the prov
saveSettingValue,
updateSetting,
formatDate,
+ getSettingDescription,
addUser,
editUser,
updateUser,
@@ -1603,6 +1684,7 @@ Please analyze the above transcription and generate a summary following the prov
},
delimiters: ['${', '}'] // Use different delimiters to avoid conflict with Flask's Jinja2
}).mount('#app');
+ }); // End of initializeI18n().then()
</script>
</body>
</html>
diff --git a/templates/index.html b/templates/index.html
index e1073539..f86e7b10 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -5,13 +5,13 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>Speakr - Audio Transcription & Summarization</title>
- <script src="https://cdn.tailwindcss.com"></script>
- <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
- <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
- <!-- EasyMDE Markdown Editor -->
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/easymde/dist/easymde.min.css">
- <script src="https://cdn.jsdelivr.net/npm/easymde/dist/easymde.min.js"></script>
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
+ <!-- All dependencies bundled locally for offline support -->
+ <script src="{{ url_for('static', filename='vendor/js/tailwind.min.js') }}"></script>
+ <script src="{{ url_for('static', filename='vendor/js/vue.global.js') }}"></script>
+ <script src="{{ url_for('static', filename='vendor/js/marked.min.js') }}"></script>
+ <link rel="stylesheet" href="{{ url_for('static', filename='vendor/css/easymde.min.css') }}">
+ <script src="{{ url_for('static', filename='vendor/js/easymde.min.js') }}"></script>
+ <link rel="stylesheet" href="{{ url_for('static', filename='vendor/css/fontawesome.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
<link rel="icon" href="{{ url_for('static', filename='img/favicon.ico') }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ url_for('static', filename='img/icon-32x32.png') }}">
@@ -40,11 +40,12 @@
</head>
<body class="h-full bg-[var(--bg-primary)] text-[var(--text-primary)] transition-colors duration-300">
<div id="loader" class="fixed inset-0 bg-gray-800 flex items-center justify-center z-50">
- <div class="text-white text-lg">Loading...</div>
+ <div class="text-white text-lg" v-text="t('common.loading')"></div>
</div>
<div id="app" v-cloak
data-use-asr-endpoint="{{ use_asr_endpoint }}"
data-current-user-name="{{ current_user.name if current_user.is_authenticated else '' }}"
+ data-user-language="{{ user_language }}"
class="h-full flex flex-col opacity-0 transition-opacity duration-500">
<!-- Header -->
@@ -71,15 +72,14 @@
<a href="/inquire"
class="px-2 py-1.5 bg-[var(--bg-accent)] text-[var(--text-accent)] rounded-lg hover:opacity-80 transition-opacity text-sm sm:px-4 sm:py-2 sm:min-w-[120px] sm:flex sm:items-center sm:gap-2 sm:justify-center">
<i class="fas fa-search"></i>
- <span class="hidden sm:inline">Inquire</span>
+ <span class="hidden sm:inline" v-text="t('inquire.title')"></span>
</a>
{% endif %}
<!-- New Recording Button -->
<button @click="switchToUploadView"
class="px-3 py-1.5 bg-[var(--bg-button)] text-[var(--text-button)] rounded-lg hover:bg-[var(--bg-button-hover)] transition-colors text-sm sm:px-4 sm:py-2 sm:min-w-[120px] sm:flex sm:items-center sm:gap-2 sm:justify-center">
- <i class="fas fa-plus mr-1"></i>New
- <span class="hidden sm:inline">Recording</span>
+ <i class="fas fa-plus mr-1"></i><span v-text="t('nav.newRecording')"></span>
</button>
<!-- User menu -->
@@ -87,7 +87,7 @@
<div class="relative">
<button @click="isUserMenuOpen = !isUserMenuOpen"
class="flex items-center gap-1 sm:gap-2 p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors duration-200"
- title="User Menu">
+ :title="t('admin.userMenu')">
<i class="fas fa-user-circle text-lg"></i>
<span class="hidden lg:inline text-sm">{{ current_user.name if current_user.is_authenticated else 'User' }}</span>
<i class="fas fa-chevron-down text-xs hidden sm:inline"></i>
@@ -97,31 +97,31 @@
<div v-if="isUserMenuOpen"
class="absolute right-0 mt-2 w-56 bg-[var(--bg-secondary)] border border-[var(--border-primary)] rounded-lg shadow-lg z-50">
<a href="/account" class="block px-4 py-2 hover:bg-[var(--bg-tertiary)] transition-colors">
- <i class="fas fa-cog mr-2 w-4 text-center"></i>Account Settings
+ <i class="fas fa-cog mr-2 w-4 text-center"></i><span v-text="t('nav.settings')"></span>
</a>
<a href="/account#tags" class="block px-4 py-2 hover:bg-[var(--bg-tertiary)] transition-colors">
- <i class="fas fa-tags mr-2 w-4 text-center"></i>Tag Management
+ <i class="fas fa-tags mr-2 w-4 text-center"></i><span v-text="t('help.tagManagement')"></span>
</a>
<button @click="openSharesList" class="w-full text-left px-4 py-2 hover:bg-[var(--bg-tertiary)] transition-colors flex items-center">
- <i class="fas fa-share-alt mr-2 w-4 text-center"></i>Shared Transcripts
+ <i class="fas fa-share-alt mr-2 w-4 text-center"></i><span v-text="t('modal.sharedTranscripts')"></span>
</button>
{% if current_user.is_admin %}
<a href="/admin" class="block px-4 py-2 hover:bg-[var(--bg-tertiary)] transition-colors">
- <i class="fas fa-user-shield mr-2 w-4 text-center"></i>Admin
+ <i class="fas fa-user-shield mr-2 w-4 text-center"></i><span v-text="t('admin.title')"></span>
</a>
{% endif %}
<div class="border-t border-[var(--border-primary)] my-1"></div>
<button @click="toggleDarkMode" class="w-full text-left px-4 py-2 hover:bg-[var(--bg-tertiary)] transition-colors flex items-center">
<i :class="isDarkMode ? 'fas fa-sun' : 'fas fa-moon'" class="mr-2 w-4 text-center"></i>
- <span>${ isDarkMode ? 'Light Mode' : 'Dark Mode' }</span>
+ <span v-text="isDarkMode ? t('nav.lightMode') : t('nav.darkMode')"></span>
</button>
<button @click="openColorSchemeModal" class="w-full text-left px-4 py-2 hover:bg-[var(--bg-tertiary)] transition-colors flex items-center">
<i class="fas fa-palette mr-2 w-4 text-center"></i>
- <span>Color Scheme</span>
+ <span v-text="t('modal.colorScheme')"></span>
</button>
<div class="border-t border-[var(--border-primary)] my-1"></div>
<a href="/logout" class="block px-4 py-2 hover:bg-[var(--bg-tertiary)] transition-colors">
- <i class="fas fa-sign-out-alt mr-2 w-4 text-center"></i>Logout
+ <i class="fas fa-sign-out-alt mr-2 w-4 text-center"></i><span v-text="t('nav.signOut')"></span>
</a>
</div>
</div>
@@ -142,7 +142,7 @@
<!-- Sidebar Header -->
<div class="p-4 border-b border-[var(--border-primary)] flex-shrink-0">
<div class="flex items-center justify-between mb-4">
- <h2 class="text-lg font-semibold">Recordings</h2>
+ <h2 class="text-lg font-semibold" v-text="t('nav.recording')"></h2>
<div class="flex gap-2">
{% if inquire_mode_enabled %}
<a href="/inquire"
@@ -152,51 +152,121 @@
{% endif %}
<button @click="switchToUploadView"
class="px-3 py-1.5 bg-[var(--bg-button)] text-[var(--text-button)] rounded-lg hover:bg-[var(--bg-button-hover)] transition-colors text-sm">
- <i class="fas fa-plus mr-1"></i>New
+ <i class="fas fa-plus mr-1"></i><span v-text="t('common.new')"></span>
</button>
</div>
</div>
<!-- Search and Sort Controls -->
<div class="space-y-3">
- <!-- Search Input -->
- <div class="relative">
- <input v-model="searchQuery"
- type="text"
- placeholder="Search recordings... (try: date:today, tag:meeting)"
- class="w-full px-3 py-2 pl-9 pr-8 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-[var(--ring-focus)]">
- <i class="fas fa-search absolute left-3 top-1/2 transform -translate-y-1/2 text-[var(--text-muted)] text-sm"></i>
- <button v-if="searchQuery"
- @click="searchQuery = ''"
- class="absolute right-2 top-1/2 transform -translate-y-1/2 text-[var(--text-muted)] hover:text-[var(--text-primary)] text-sm">
- <i class="fas fa-times"></i>
+ <!-- Filter Toggle Button -->
+ <div class="flex items-center space-x-2">
+ <button @click="showAdvancedFilters = !showAdvancedFilters"
+ class="flex-1 flex items-center justify-between px-3 py-2 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-lg text-sm hover:bg-[var(--bg-tertiary)] transition-colors">
+ <span class="flex items-center">
+ <i class="fas fa-filter mr-2 text-[var(--text-muted)]"></i>
+ <span v-if="!searchQuery && filterTags.length === 0 && !filterDatePreset && !filterDateRange.start && !filterDateRange.end && !filterTextQuery"
+ v-text="t('sidebar.searchRecordings')">
+ </span>
+ <span v-else class="text-[var(--text-accent)]">
+ Active filters (${ (filterTags.length > 0 ? 1 : 0) + (filterDatePreset || filterDateRange.start || filterDateRange.end ? 1 : 0) + (filterTextQuery ? 1 : 0) })
+ </span>
+ </span>
+ <i :class="['fas fa-chevron-down transition-transform text-[var(--text-muted)]', showAdvancedFilters ? 'rotate-180' : '']"></i>
+ </button>
+ <button v-if="searchQuery || filterTags.length > 0 || filterDatePreset || filterDateRange.start || filterDateRange.end || filterTextQuery"
+ @click="clearAllFilters"
+ class="px-3 py-2 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-lg text-sm hover:bg-[var(--bg-tertiary)] hover:text-[var(--text-primary)] transition-colors"
+ :title="t('buttons.clearAllFilters')">
+ <i class="fas fa-times text-[var(--text-muted)]"></i>
</button>
</div>
+ <!-- Advanced Filters Panel -->
+ <div v-show="showAdvancedFilters" class="p-3 bg-[var(--bg-tertiary)] border border-[var(--border-secondary)] rounded-lg space-y-3">
+ <!-- Text Search -->
+ <div>
+ <label class="block text-xs font-medium text-[var(--text-muted)] mb-1" v-text="t('sidebar.filters')"></label>
+ <div class="relative">
+ <input v-model="filterTextQuery"
+ type="text"
+ :placeholder="t('sidebar.searchRecordings')"
+ class="w-full px-3 py-1.5 pl-8 pr-8 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-md text-sm focus:outline-none focus:ring-1 focus:ring-[var(--ring-focus)]">
+ <i class="fas fa-search absolute left-2.5 top-1/2 transform -translate-y-1/2 text-[var(--text-muted)] text-xs"></i>
+ <button v-if="filterTextQuery"
+ @click="filterTextQuery = ''"
+ class="absolute right-2.5 top-1/2 transform -translate-y-1/2 text-[var(--text-muted)] hover:text-[var(--text-primary)] text-xs"
+ :title="t('buttons.clearSearchText')">
+ <i class="fas fa-times"></i>
+ </button>
+ </div>
+ </div>
+
+ <!-- Tag Filter -->
+ <div>
+ <label class="block text-xs font-medium text-[var(--text-muted)] mb-1" v-text="t('tags.filterByTag')"></label>
+ <div class="flex flex-wrap gap-1.5">
+ <button v-for="tag in availableTags"
+ :key="tag.id"
+ @click="filterTags.includes(tag.id) ? filterTags = filterTags.filter(id => id !== tag.id) : filterTags.push(tag.id)"
+ :class="[
+ 'px-2 py-1 rounded-full text-xs font-medium transition-all',
+ filterTags.includes(tag.id)
+ ? 'bg-[var(--bg-accent)] text-[var(--text-accent)] ring-1 ring-[var(--border-accent)]'
+ : 'bg-[var(--bg-secondary)] text-[var(--text-secondary)] hover:bg-[var(--bg-input)]'
+ ]">
+ <span class="inline-block w-2 h-2 rounded-full mr-1" :style="{ backgroundColor: tag.color || '#6B7280' }"></span>
+ ${ tag.name }
+ </button>
+ </div>
+ <p v-if="availableTags.length === 0" class="text-xs text-[var(--text-muted)] italic" v-text="t('tags.noTags')"></p>
+ </div>
+
+ <!-- Date Filter -->
+ <div>
+ <label class="block text-xs font-medium text-[var(--text-muted)] mb-1" v-text="t('sidebar.dateRange')"></label>
+ <div class="grid grid-cols-3 gap-1.5 mb-2">
+ <button v-for="preset in datePresetOptions"
+ :key="preset.value"
+ @click="filterDatePreset = filterDatePreset === preset.value ? '' : preset.value; filterDateRange = { start: '', end: '' }"
+ :class="[
+ 'px-2 py-1 rounded-md text-xs transition-all',
+ filterDatePreset === preset.value
+ ? 'bg-[var(--bg-accent)] text-[var(--text-accent)]'
+ : 'bg-[var(--bg-secondary)] text-[var(--text-secondary)] hover:bg-[var(--bg-input)]'
+ ]"
+ :title="preset.label">
+ ${ preset.label }
+ </button>
+ </div>
+ <div class="grid grid-cols-2 gap-2">
+ <div>
+ <input v-model="filterDateRange.start"
+ @change="filterDatePreset = ''"
+ type="date"
+ class="w-full px-2 py-1 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-md text-xs focus:outline-none focus:ring-1 focus:ring-[var(--ring-focus)]"
+ :placeholder="t('form.dateFrom')">
+ </div>
+ <div>
+ <input v-model="filterDateRange.end"
+ @change="filterDatePreset = ''"
+ type="date"
+ class="w-full px-2 py-1 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-md text-xs focus:outline-none focus:ring-1 focus:ring-[var(--ring-focus)]"
+ :placeholder="t('form.dateTo')">
+ </div>
+ </div>
+ </div>
+ </div>
+
<!-- Sort Toggle -->
<button @click="sortBy = sortBy === 'created_at' ? 'meeting_date' : 'created_at'"
class="w-full flex items-center justify-between px-3 py-2 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-lg text-sm hover:bg-[var(--bg-tertiary)] transition-colors">
<span class="flex items-center">
<i :class="['fas mr-2 text-[var(--text-muted)]', sortBy === 'meeting_date' ? 'fa-calendar' : 'fa-upload']"></i>
- Sort by: ${sortBy === 'meeting_date' ? 'Meeting Date' : 'Upload Date'}
+ <span v-text="t('sidebar.sortBy')"></span>: <span v-text="sortBy === 'meeting_date' ? t('sidebar.sortByMeetingDate') : t('sidebar.sortByDate')"></span>
</span>
<i class="fas fa-exchange-alt text-[var(--text-muted)]"></i>
</button>
-
- <!-- Search Help -->
- <div class="text-xs text-[var(--text-muted)] space-y-1">
- <button @click="searchTipsExpanded = !searchTipsExpanded" class="flex items-center justify-between w-full text-left">
- <span>Search tips:</span>
- <i :class="['fas', 'fa-chevron-down', 'transition-transform', { 'rotate-180': searchTipsExpanded }]"></i>
- </button>
- <div v-if="searchTipsExpanded" class="pl-2 space-y-0.5 pt-1">
- <div>• <code class="bg-[var(--bg-tertiary)] px-1 rounded">date:today</code> - Today's recordings</div>
- <div>• <code class="bg-[var(--bg-tertiary)] px-1 rounded">date:2025-01</code> - January 2025</div>
- <div>• <code class="bg-[var(--bg-tertiary)] px-1 rounded">date:thisweek</code> - This week</div>
- <div>• <code class="bg-[var(--bg-tertiary)] px-1 rounded">tag:meeting</code> - Search by tag name</div>
- <div>• Click any tag to filter recordings</div>
- </div>
- </div>
</div>
</div>
@@ -211,14 +281,14 @@
}">
<div v-if="isLoadingRecordings && recordings.length === 0" class="text-center py-8">
<i class="fas fa-spinner fa-spin text-2xl text-[var(--text-muted)]"></i>
- <p class="mt-2 text-[var(--text-muted)]">Loading recordings...</p>
+ <p class="mt-2 text-[var(--text-muted)]" v-text="t('help.loadingRecordings')"></p>
</div>
<div v-else-if="recordings.length === 0 && !isLoadingRecordings" class="text-center py-8">
<i class="fas fa-microphone-slash text-3xl text-[var(--text-muted)] mb-3"></i>
- <p class="text-[var(--text-muted)]">No recordings found</p>
+ <p class="text-[var(--text-muted)]" v-text="t('sidebar.noRecordings')"></p>
<p v-if="searchQuery.trim()" class="text-sm text-[var(--text-muted)] mt-1">
- Try adjusting your search or <button @click="searchQuery = ''" class="text-[var(--text-accent)] hover:underline">clear filters</button>
+ <span v-text="t('help.tryAdjustingSearch')"></span> <button @click="clearAllFilters()" class="text-[var(--text-accent)] hover:underline" v-text="t('help.clearFilters')"></button>
</p>
</div>
@@ -240,14 +310,14 @@
<!-- Title and Status Row -->
<div class="flex items-center justify-between mb-1">
<h4 class="font-medium text-sm truncate flex-1 mr-2" :class="selectedRecording?.id === recording.id ? 'text-[var(--text-accent)]' : 'text-[var(--text-primary)]'">
- ${recording.title || 'Untitled Recording'}
+ ${ recording.title || t('common.untitled') }
</h4>
<div class="flex items-center gap-1 flex-shrink-0">
<!-- Show Failed status for failed recordings -->
<span v-if="recording.status === 'FAILED'"
class="status-badge status-failed">
<i class="fas fa-exclamation-circle mr-1"></i>
- Failed
+ ${ t('common.failed') }
</span>
<!-- Show Processing status for non-completed recordings -->
@@ -262,13 +332,13 @@
<span v-if="recording.is_highlighted"
@click.stop="toggleHighlight(recording)"
class="status-badge status-highlighted clickable-badge"
- title="Remove from starred">
+ :title="t('sidebar.removeFromHighlighted')">
<i class="fas fa-star"></i>
</span>
<span v-if="recording.is_inbox"
@click.stop="toggleInbox(recording)"
class="status-badge status-inbox clickable-badge"
- title="Mark as read">
+ :title="t('sidebar.markAsRead')">
<i class="fas fa-inbox"></i>
</span>
</template>
@@ -311,13 +381,13 @@
<!-- Load More Indicator -->
<div v-if="isLoadingMore" class="text-center py-4">
<i class="fas fa-spinner fa-spin text-lg text-[var(--text-muted)]"></i>
- <p class="text-sm text-[var(--text-muted)] mt-1">Loading more recordings...</p>
+ <p class="text-sm text-[var(--text-muted)] mt-1" v-text="t('help.loadingMore')"></p>
</div>
<!-- End of Results Indicator -->
<div v-else-if="!hasNextPage && totalRecordings > 0" class="text-center py-4 text-xs text-[var(--text-muted)]">
<i class="fas fa-check-circle mr-1"></i>
- All recordings loaded
+ <span v-text="t('help.allRecordingsLoaded')"></span>
</div>
</div>
</div>
@@ -334,8 +404,8 @@
<div class="max-w-lg w-full my-auto">
<div class="text-center mb-8">
<i class="fas fa-microphone text-5xl md:text-6xl text-[var(--text-accent)] mb-4"></i>
- <h2 class="text-2xl md:text-3xl font-bold mb-2">Upload or Record Audio</h2>
- <p class="text-[var(--text-muted)]">Drag and drop an audio file, click to browse, or start a new recording.</p>
+ <h2 class="text-2xl md:text-3xl font-bold mb-2" v-text="t('upload.title')"></h2>
+ <p class="text-[var(--text-muted)]" v-text="t('upload.dropzone')"></p>
</div>
<div class="bg-[var(--bg-secondary)] p-6 rounded-xl border border-[var(--border-primary)]">
@@ -343,27 +413,27 @@
<div @drop="handleDrop" @dragover="handleDragOver" @dragleave="handleDragLeave" @click="$refs.fileInput.click()"
:class="['border-2 border-dashed rounded-xl p-8 text-center cursor-pointer transition-all duration-300', dragover ? 'border-[var(--border-accent)] bg-[var(--bg-accent)]' : 'border-[var(--border-secondary)] hover:border-[var(--border-accent)]']">
<i class="fas fa-cloud-upload-alt text-3xl text-[var(--text-muted)] mb-3"></i>
- <p class="text-[var(--text-secondary)] mb-2">Click to upload or drag and drop</p>
- <p class="text-xs text-[var(--text-muted)]">Supports MP3, WAV, M4A, MP4, MOV, AVI, AMR, and more</p>
+ <p class="text-[var(--text-secondary)] mb-2" v-text="t('upload.dropzone')"></p>
+ <p class="text-xs text-[var(--text-muted)]" v-text="t('upload.supportedFormats')"></p>
</div>
<input ref="fileInput" type="file" @change="handleFileSelect" accept="audio/*,video/mp4,video/quicktime,video/x-msvideo,video/webm,.mp4,.mov,.avi,.mkv,.webm" multiple class="hidden">
<!-- Divider -->
<div class="my-6 flex items-center">
<div class="flex-grow border-t border-[var(--border-secondary)]"></div>
- <span class="flex-shrink mx-4 text-xs text-[var(--text-muted)] uppercase">Or</span>
+ <span class="flex-shrink mx-4 text-xs text-[var(--text-muted)] uppercase" v-text="t('common.or')"></span>
<div class="flex-grow border-t border-[var(--border-secondary)]"></div>
</div>
<!-- Audio Recording Options -->
<div class="space-y-3">
- <h3 class="text-sm font-medium text-[var(--text-secondary)] text-center">Recording Options</h3>
+ <h3 class="text-sm font-medium text-[var(--text-secondary)] text-center" v-text="t('recording.title')"></h3>
<!-- Microphone Recording -->
<button @click="startRecording('microphone')"
class="w-full px-4 py-3 bg-red-600 text-white rounded-lg hover:bg-red-700 transition-colors flex items-center justify-center gap-2">
<i class="fas fa-microphone"></i>
- <span>Record Microphone</span>
+ <span v-text="t('recording.microphone')"></span>
</button>
<!-- System Audio Recording -->
@@ -371,7 +441,7 @@
v-if="canRecordSystemAudio"
class="w-full px-4 py-3 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors flex items-center justify-center gap-2">
<i class="fas fa-desktop"></i>
- <span>Record System Audio</span>
+ <span v-text="t('recording.systemAudio')"></span>
</button>
<!-- Both Audio Sources -->
@@ -380,21 +450,21 @@
class="w-full px-4 py-3 bg-purple-600 text-white rounded-lg hover:bg-purple-700 transition-colors flex items-center justify-center gap-2">
<i class="fas fa-microphone"></i>
<i class="fas fa-desktop ml-1"></i>
- <span>Record Both</span>
+ <span v-text="t('recording.microphoneAndSystem')"></span>
</button>
<!-- Help Text -->
<div class="text-xs text-[var(--text-muted)] space-y-1 mt-3">
<div class="flex items-center justify-between">
- <span><strong>Microphone:</strong> Records your voice only</span>
+ <span><strong v-text="t('recording.microphone') + ':'"></strong> <span v-text="t('help.microphoneDesc')"></span></span>
<i class="fas fa-microphone text-red-500 flex-shrink-0"></i>
</div>
<div v-if="canRecordSystemAudio" class="flex items-center justify-between">
- <span><strong>System Audio:</strong> Records meeting participants and system sounds</span>
+ <span><strong v-text="t('recording.systemAudio') + ':'"></strong> <span v-text="t('help.systemAudioDesc')"></span></span>
<i class="fas fa-desktop text-blue-500 flex-shrink-0"></i>
</div>
<div v-if="canRecordSystemAudio" class="flex items-center justify-between">
- <span><strong>Both:</strong> Records your voice + meeting participants (recommended for online meetings)</span>
+ <span><strong v-text="t('recording.microphoneAndSystem') + ':'"></strong> <span v-text="t('help.bothAudioDesc')"></span></span>
<div class="flex items-center gap-1 flex-shrink-0">
<i class="fas fa-microphone text-purple-500"></i>
<i class="fas fa-desktop text-purple-500"></i>
@@ -402,9 +472,9 @@
</div>
<div v-if="!canRecordSystemAudio" class="text-amber-600 dark:text-amber-400">
<i class="fas fa-exclamation-triangle mr-1"></i>
- System audio recording not supported in this browser
+ ${ t('recording.systemAudioNotSupported') }
<button @click="showSystemAudioHelp = true" class="ml-2 text-blue-500 hover:text-blue-600 underline text-sm">
- Help
+ <span v-text="t('buttons.help')"></span>
</button>
</div>
</div>
@@ -414,37 +484,89 @@
<div class="mt-4">
<label class="block text-sm font-medium text-[var(--text-secondary)] mb-2">
<i class="fas fa-tags mr-1 text-[var(--text-muted)]"></i>
- Tags (Optional)
+ ${ t('tags.title') }
</label>
- <!-- Selected Tags Display -->
- <div v-if="selectedTags.length > 0" class="mb-2 p-2 bg-[var(--bg-tertiary)] rounded-md border border-[var(--border-secondary)]">
- <div class="flex flex-wrap gap-1">
- <span v-for="(tag, index) in selectedTags" :key="tag.id"
- class="inline-flex items-center px-2 py-1 rounded-full text-xs font-medium text-white"
- :style="{ backgroundColor: tag.color }">
- <span class="mr-1">${index + 1}.</span>
- <span>${tag.name}</span>
- <button @click="removeTagFromSelection(tag.id)"
- class="ml-1 hover:bg-black hover:bg-opacity-20 rounded-full w-4 h-4 flex items-center justify-center">
- <i class="fas fa-times text-xs"></i>
- </button>
- </span>
+ <!-- Selected Tags Display - Compact -->
+ <div v-if="selectedTags.length > 0" class="mb-2">
+ <div class="p-1.5 bg-[var(--bg-tertiary)] rounded-md border border-[var(--border-secondary)] max-h-16 overflow-y-auto">
+ <div class="flex flex-wrap gap-1">
+ <span v-for="(tag, index) in selectedTags" :key="tag.id"
+ class="inline-flex items-center px-1.5 py-0.5 rounded-full text-[11px] font-medium text-white"
+ :style="{ backgroundColor: tag.color }">
+ <span class="opacity-75 mr-0.5 text-[9px]">${index + 1}.</span>
+ <span>${tag.name}</span>
+ <button @click="removeTagFromSelection(tag.id)"
+ class="ml-1 hover:opacity-100 opacity-70">
+ <i class="fas fa-times" style="font-size: 9px;"></i>
+ </button>
+ </span>
+ </div>
</div>
- <p class="text-xs text-[var(--text-muted)] mt-1">
- <i class="fas fa-info-circle mr-1"></i>
- Tags are ordered by priority - first tag's settings take precedence
+ <p class="text-[10px] text-[var(--text-muted)] mt-0.5">
+ <i class="fas fa-info-circle mr-0.5" style="font-size: 9px;"></i>
+ Tags ordered by priority
</p>
</div>
- <!-- Tag Selection Dropdown -->
- <select @change="(e) => { if(e.target.value) { addTagToSelection(parseInt(e.target.value)); e.target.value = ''; } }"
- class="w-full px-3 py-2 text-sm bg-[var(--bg-primary)] text-[var(--text-primary)] border border-[var(--border-primary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--ring-focus)]">
- <option value="">Select tag to add...</option>
- <option v-for="tag in availableTags.filter(tag => !selectedTagIds.includes(tag.id))"
- :key="tag.id" :value="tag.id" v-text="tag.name">
- </option>
- </select>
+ <!-- Tag Selection Container - Compact -->
+ <div v-if="availableTags.filter(tag => !selectedTagIds.includes(tag.id)).length > 0"
+ class="border border-[var(--border-secondary)] rounded-md bg-[var(--bg-tertiary)] p-2">
+ <!-- Search Filter (always visible if tags available) -->
+ <div class="mb-1.5">
+ <div class="relative">
+ <input v-model="uploadTagSearchFilter"
+ type="text"
+ :placeholder="t('tagsModal.searchTags')"
+ class="w-full px-2 py-1 pl-6 text-xs 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)]">
+ <i class="fas fa-search absolute left-2 top-1/2 transform -translate-y-1/2 text-[var(--text-muted)]" style="font-size: 9px;"></i>
+ <button v-if="uploadTagSearchFilter"
+ @click="uploadTagSearchFilter = ''"
+ class="absolute right-2 top-1/2 transform -translate-y-1/2 text-[var(--text-muted)] hover:text-[var(--text-primary)]">
+ <i class="fas fa-times" style="font-size: 9px;"></i>
+ </button>
+ </div>
+ </div>
+
+ <!-- Available Tags Grid - Fixed Height -->
+ <div v-if="filteredAvailableTagsForUpload.length > 0"
+ class="overflow-y-auto"
+ style="max-height: 100px;">
+ <div class="grid grid-cols-2 gap-1">
+ <button v-for="tag in filteredAvailableTagsForUpload"
+ :key="tag.id"
+ @click="addTagToSelection(tag.id)"
+ class="group flex items-center justify-between px-1.5 py-1 rounded border border-[var(--border-secondary)] hover:border-[var(--border-focus)] bg-[var(--bg-primary)] hover:bg-[var(--bg-secondary)] transition-all">
+ <div class="flex items-center gap-1 min-w-0">
+ <span class="w-2 h-2 rounded-full flex-shrink-0"
+ :style="{ backgroundColor: tag.color || '#6B7280' }"></span>
+ <span class="text-[11px] text-[var(--text-primary)] truncate" v-text="tag.name"></span>
+ </div>
+ <i class="fas fa-plus text-[var(--text-muted)] group-hover:text-[var(--text-accent)] transition-colors" style="font-size: 9px;"></i>
+ </button>
+ </div>
+ </div>
+ <div v-else class="py-2 text-center">
+ <p class="text-[11px] text-[var(--text-muted)]">
+ <i class="fas fa-search mr-1" style="font-size: 9px;"></i>
+ No matching tags
+ </p>
+ </div>
+ </div>
+ <!-- Empty States -->
+ <div v-else-if="availableTags.length === 0"
+ class="p-2 bg-[var(--bg-tertiary)] rounded-md border border-[var(--border-secondary)]">
+ <p class="text-xs text-[var(--text-muted)] text-center">
+ <i class="fas fa-info-circle mr-1" style="font-size: 10px;"></i>
+ <span v-text="t('help.noTagsCreated')"></span> <a href="/account#tags" class="text-[var(--text-accent)] hover:underline" v-text="t('help.createTags')"></a>
+ </p>
+ </div>
+ <div v-else class="p-2 bg-[var(--bg-tertiary)] rounded-md border border-[var(--border-secondary)]">
+ <p class="text-xs text-[var(--text-muted)] text-center">
+ <i class="fas fa-check-circle mr-1" style="font-size: 10px;"></i>
+ All tags selected
+ </p>
+ </div>
<p v-if="selectedTags.some(tag => tag.custom_prompt)" class="text-xs text-[var(--text-muted)] mt-1">
<i class="fas fa-info-circle mr-1 text-[var(--text-accent)]"></i>
@@ -463,7 +585,7 @@
class="w-full 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-cog text-[var(--text-muted)]"></i>
- <span>Advanced ASR Options</span>
+ <span v-text="t('help.advancedAsrOptions')"></span>
</span>
<i :class="['fas text-[var(--text-muted)]', showAdvancedOptions ? 'fa-chevron-up' : 'fa-chevron-down']"></i>
</button>
@@ -476,28 +598,14 @@
</label>
<select v-model="uploadLanguage"
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="">Auto-detect</option>
- <option value="en">English</option>
- <option value="es">Spanish</option>
- <option value="fr">French</option>
- <option value="de">German</option>
- <option value="it">Italian</option>
- <option value="pt">Portuguese</option>
- <option value="nl">Dutch</option>
- <option value="ru">Russian</option>
- <option value="zh">Chinese</option>
- <option value="ja">Japanese</option>
- <option value="ko">Korean</option>
- <option value="ar">Arabic</option>
- <option value="hi">Hindi</option>
+ <option v-for="lang in languageOptions" :key="lang.value" :value="lang.value" v-text="lang.label"></option>
</select>
</div>
<!-- Speaker Settings -->
<div class="grid grid-cols-2 gap-3">
<div>
- <label class="block text-xs font-medium text-[var(--text-secondary)] mb-1">
- Min Speakers
+ <label class="block text-xs font-medium text-[var(--text-secondary)] mb-1" v-text="t('form.minSpeakers')">
</label>
<input v-model.number="uploadMinSpeakers"
type="number"
@@ -506,8 +614,7 @@
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)]">
</div>
<div>
- <label class="block text-xs font-medium text-[var(--text-secondary)] mb-1">
- Max Speakers
+ <label class="block text-xs font-medium text-[var(--text-secondary)] mb-1" v-text="t('form.maxSpeakers')">
</label>
<input v-model.number="uploadMaxSpeakers"
type="number"
@@ -535,29 +642,33 @@
<div v-if="isRecording" class="w-full mx-auto mb-4">
<!-- Dual visualizer for 'both' mode -->
<div v-if="recordingMode === 'both'" class="max-w-4xl mx-auto flex gap-4">
- <div class="w-1/2 h-32 md:h-40 flex flex-col bg-[var(--bg-primary)] rounded-lg p-2">
- <div class="flex-1 w-full overflow-hidden rounded-md">
+ <div class="w-1/2 min-h-[12rem] h-48 md:h-40 flex flex-col bg-[var(--bg-primary)] rounded-lg p-2">
+ <div class="flex-1 w-full overflow-hidden rounded-md" style="min-height: 10rem;">
<canvas ref="micVisualizer" class="w-full h-full"></canvas>
</div>
- <p class="text-xs text-[var(--text-muted)] pt-1">Microphone</p>
+ <p class="text-xs text-[var(--text-muted)] pt-1" v-text="t('recording.microphone')"></p>
</div>
- <div class="w-1/2 h-32 md:h-40 flex flex-col bg-[var(--bg-primary)] rounded-lg p-2">
- <div class="flex-1 w-full overflow-hidden rounded-md">
+ <div class="w-1/2 min-h-[12rem] h-48 md:h-40 flex flex-col bg-[var(--bg-primary)] rounded-lg p-2">
+ <div class="flex-1 w-full overflow-hidden rounded-md" style="min-height: 10rem;">
<canvas ref="systemVisualizer" class="w-full h-full"></canvas>
</div>
- <p class="text-xs text-[var(--text-muted)] pt-1">System Audio</p>
+ <p class="text-xs text-[var(--text-muted)] pt-1" v-text="t('recording.systemAudio')"></p>
</div>
</div>
<!-- Single visualizer for other modes -->
- <div v-else class="h-32 md:h-40 max-w-2xl mx-auto bg-[var(--bg-primary)] rounded-lg p-2 flex flex-col">
- <div class="flex-1 w-full overflow-hidden rounded-md">
+ <div v-else class="min-h-[12rem] h-48 md:h-40 max-w-2xl mx-auto bg-[var(--bg-primary)] rounded-lg p-2 flex flex-col">
+ <div class="flex-1 w-full overflow-hidden rounded-md" style="min-height: 10rem;">
<canvas ref="visualizer" class="w-full h-full"></canvas>
</div>
<p class="text-xs text-[var(--text-muted)] pt-1 capitalize">${recordingMode}</p>
</div>
</div>
- <div v-if="!isRecording && audioBlobURL" class="h-24 md:h-32 w-full flex items-center justify-center mb-4">
- <audio :src="audioBlobURL" controls class="w-full max-w-md"></audio>
+ <div v-if="!isRecording && audioBlobURL" class="w-full mb-4">
+ <div class="audio-player-container">
+ <audio :src="audioBlobURL" controls class="w-full">
+ Your browser does not support the audio element.
+ </audio>
+ </div>
</div>
<div>
<div class="text-2xl font-mono text-[var(--text-accent)]">${formatTime(recordingTime)}</div>
@@ -574,7 +685,7 @@
<div v-if="estimatedFileSize > (maxRecordingMB * 1024 * 1024 * 0.8)" class="mt-1">
<div class="flex items-center text-xs text-amber-600 dark:text-amber-400">
<i class="fas fa-exclamation-triangle mr-1"></i>
- <span>Approaching ${maxRecordingMB}MB limit</span>
+ <span v-text="t('help.approachingLimit', { limit: maxRecordingMB })"></span>
</div>
</div>
</div>
@@ -590,7 +701,7 @@
<div class="flex-1 min-h-0 recording-notes-editor">
<textarea ref="recordingNotesEditor" v-model="recordingNotes"
class="w-full h-full bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-lg p-3 text-sm focus:outline-none focus:ring-2 focus:ring-[var(--ring-focus)] resize-none"
- placeholder="Type your notes in Markdown format..."
+ :placeholder="t('form.notesPlaceholder')"
rows="10"></textarea>
</div>
</div>
@@ -611,30 +722,81 @@
Select Tags (optional, in priority order)
</label>
- <!-- Selected Tags Display -->
- <div v-if="selectedTags.length > 0" class="mb-2 p-2 bg-[var(--bg-tertiary)] rounded-md border border-[var(--border-secondary)]">
- <div class="flex flex-wrap gap-1">
- <span v-for="(tag, index) in selectedTags" :key="tag.id"
- class="inline-flex items-center px-2 py-1 rounded-full text-xs font-medium text-white"
- :style="{ backgroundColor: tag.color }">
- <span class="mr-1">${index + 1}.</span>
- <span>${tag.name}</span>
- <button @click="removeTagFromSelection(tag.id)"
- class="ml-1 hover:bg-black hover:bg-opacity-20 rounded-full w-4 h-4 flex items-center justify-center">
- <i class="fas fa-times text-xs"></i>
- </button>
- </span>
+ <!-- Selected Tags Display - Compact -->
+ <div v-if="selectedTags.length > 0" class="mb-2">
+ <div class="p-1.5 bg-[var(--bg-tertiary)] rounded-md border border-[var(--border-secondary)] max-h-16 overflow-y-auto">
+ <div class="flex flex-wrap gap-1">
+ <span v-for="(tag, index) in selectedTags" :key="tag.id"
+ class="inline-flex items-center px-1.5 py-0.5 rounded-full text-[11px] font-medium text-white"
+ :style="{ backgroundColor: tag.color }">
+ <span class="opacity-75 mr-0.5 text-[9px]">${index + 1}.</span>
+ <span>${tag.name}</span>
+ <button @click="removeTagFromSelection(tag.id)"
+ class="ml-1 hover:opacity-100 opacity-70">
+ <i class="fas fa-times" style="font-size: 9px;"></i>
+ </button>
+ </span>
+ </div>
</div>
</div>
- <!-- Tag Dropdown -->
- <select @change="(e) => { if(e.target.value) { addTagToSelection(parseInt(e.target.value)); e.target.value = ''; } }"
- class="w-full px-3 py-2 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-[var(--ring-focus)] text-sm">
- <option value="">Select tag to add...</option>
- <option v-for="tag in availableTags.filter(tag => !selectedTagIds.includes(tag.id))"
- :key="tag.id" :value="tag.id" v-text="tag.name">
- </option>
- </select>
+ <!-- Tag Selection Container - Compact -->
+ <div v-if="availableTags.filter(tag => !selectedTagIds.includes(tag.id)).length > 0"
+ class="border border-[var(--border-secondary)] rounded-md bg-[var(--bg-tertiary)] p-2">
+ <!-- Search Filter -->
+ <div class="mb-1.5">
+ <div class="relative">
+ <input v-model="uploadTagSearchFilter"
+ type="text"
+ :placeholder="t('tagsModal.searchTags')"
+ class="w-full px-2 py-1 pl-6 text-xs 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)]">
+ <i class="fas fa-search absolute left-2 top-1/2 transform -translate-y-1/2 text-[var(--text-muted)]" style="font-size: 9px;"></i>
+ <button v-if="uploadTagSearchFilter"
+ @click="uploadTagSearchFilter = ''"
+ class="absolute right-2 top-1/2 transform -translate-y-1/2 text-[var(--text-muted)] hover:text-[var(--text-primary)]">
+ <i class="fas fa-times" style="font-size: 9px;"></i>
+ </button>
+ </div>
+ </div>
+ <!-- Available Tags Grid -->
+ <div v-if="filteredAvailableTagsForUpload.length > 0"
+ class="overflow-y-auto"
+ style="max-height: 100px;">
+ <div class="grid grid-cols-2 gap-1">
+ <button v-for="tag in filteredAvailableTagsForUpload"
+ :key="tag.id"
+ @click="addTagToSelection(tag.id)"
+ class="group flex items-center justify-between px-1.5 py-1 rounded border border-[var(--border-secondary)] hover:border-[var(--border-focus)] bg-[var(--bg-primary)] hover:bg-[var(--bg-secondary)] transition-all">
+ <div class="flex items-center gap-1 min-w-0">
+ <span class="w-2 h-2 rounded-full flex-shrink-0"
+ :style="{ backgroundColor: tag.color || '#6B7280' }"></span>
+ <span class="text-[11px] text-[var(--text-primary)] truncate" v-text="tag.name"></span>
+ </div>
+ <i class="fas fa-plus text-[var(--text-muted)] group-hover:text-[var(--text-accent)] transition-colors" style="font-size: 9px;"></i>
+ </button>
+ </div>
+ </div>
+ <div v-else class="py-2 text-center">
+ <p class="text-[11px] text-[var(--text-muted)]">
+ <i class="fas fa-search mr-1" style="font-size: 9px;"></i>
+ No matching tags
+ </p>
+ </div>
+ </div>
+ <!-- Empty States -->
+ <div v-else-if="availableTags.length === 0"
+ class="p-2 bg-[var(--bg-tertiary)] rounded-md border border-[var(--border-secondary)]">
+ <p class="text-xs text-[var(--text-muted)] text-center">
+ <i class="fas fa-info-circle mr-1" style="font-size: 10px;"></i>
+ <span v-text="t('help.noTagsCreated')"></span> <a href="/account#tags" class="text-[var(--text-accent)] hover:underline" v-text="t('help.createTags')"></a>
+ </p>
+ </div>
+ <div v-else class="p-2 bg-[var(--bg-tertiary)] rounded-md border border-[var(--border-secondary)]">
+ <p class="text-xs text-[var(--text-muted)] text-center">
+ <i class="fas fa-check-circle mr-1" style="font-size: 10px;"></i>
+ All tags selected
+ </p>
+ </div>
<p v-if="selectedTags.some(tag => tag.custom_prompt)" class="text-xs text-[var(--text-muted)] mt-1">
<i class="fas fa-info-circle mr-1 text-[var(--text-accent)]"></i>
@@ -653,7 +815,7 @@
class="w-full 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-cog text-[var(--text-muted)]"></i>
- <span>Advanced ASR Options</span>
+ <span v-text="t('help.advancedAsrOptions')"></span>
</span>
<i :class="['fas text-[var(--text-muted)]', showAdvancedOptions ? 'fa-chevron-up' : 'fa-chevron-down']"></i>
</button>
@@ -665,37 +827,26 @@
</label>
<select id="recordingAsrLanguage" v-model="asrLanguage"
class="w-full px-2 py-1 bg-[var(--bg-primary)] text-[var(--text-primary)] border border-[var(--border-secondary)] rounded-md shadow-sm focus:outline-none focus:ring-1 focus:ring-[var(--ring-focus)] text-xs">
- <option value="">Auto-detect</option>
- <option value="en">English</option>
- <option value="es">Spanish</option>
- <option value="fr">French</option>
- <option value="de">German</option>
- <option value="it">Italian</option>
- <option value="pt">Portuguese</option>
- <option value="nl">Dutch</option>
- <option value="ru">Russian</option>
- <option value="zh">Chinese</option>
- <option value="ja">Japanese</option>
- <option value="ko">Korean</option>
+ <option v-for="lang in languageOptions" :key="lang.value" :value="lang.value" v-text="lang.label"></option>
</select>
</div>
<div class="grid grid-cols-2 gap-3">
<div>
<label for="recordingAsrMinSpeakers" class="block text-xs font-medium text-[var(--text-secondary)] mb-1">
- Min Speakers
+ {% raw %}{{ t('form.minSpeakers') }}{% endraw %}
</label>
<input type="number" id="recordingAsrMinSpeakers" v-model="asrMinSpeakers"
- min="1" max="20" placeholder="Auto"
+ min="1" max="20" :placeholder="t('form.auto')"
class="w-full px-2 py-1 bg-[var(--bg-primary)] text-[var(--text-primary)] border border-[var(--border-secondary)] rounded-md shadow-sm focus:outline-none focus:ring-1 focus:ring-[var(--ring-focus)] text-xs">
</div>
<div>
<label for="recordingAsrMaxSpeakers" class="block text-xs font-medium text-[var(--text-secondary)] mb-1">
- Max Speakers
+ {% raw %}{{ t('form.maxSpeakers') }}{% endraw %}
</label>
<input type="number" id="recordingAsrMaxSpeakers" v-model="asrMaxSpeakers"
- min="1" max="20" placeholder="Auto"
+ min="1" max="20" :placeholder="t('form.auto')"
class="w-full px-2 py-1 bg-[var(--bg-primary)] text-[var(--text-primary)] border border-[var(--border-secondary)] rounded-md shadow-sm focus:outline-none focus:ring-1 focus:ring-[var(--ring-focus)] text-xs">
</div>
</div>
@@ -707,12 +858,12 @@
<button @click="uploadRecordedAudio"
class="flex-1 px-6 py-3 bg-[var(--bg-button)] text-[var(--text-button)] rounded-lg hover:bg-[var(--bg-button-hover)] transition-colors flex items-center justify-center gap-2">
<i class="fas fa-upload"></i>
- <span>Upload Recording & Notes</span>
+ <span v-text="t('help.uploadRecordingNotes')"></span>
</button>
<button @click="discardRecording"
class="px-6 py-3 bg-[var(--bg-danger)] text-white rounded-lg hover:bg-[var(--bg-danger-hover)] transition-colors flex items-center justify-center gap-2">
<i class="fas fa-trash"></i>
- <span>Discard</span>
+ <span v-text="t('help.discard')"></span>
</button>
</div>
</div>
@@ -733,7 +884,7 @@
${selectedRecording.title || 'Untitled Recording'}
</h1>
<p class="text-sm text-[var(--text-muted)] truncate">
- ${selectedRecording.participants || 'No participants'}
+ ${selectedRecording.participants || t('help.noParticipants')}
</p>
<div v-if="getRecordingTags(selectedRecording).length > 0" class="flex flex-wrap gap-1 mt-2">
<button v-for="tag in getRecordingTags(selectedRecording)" :key="tag.id"
@@ -757,10 +908,24 @@
<span>${selectedRecording.meeting_date ? formatDisplayDate(selectedRecording.meeting_date) : 'No date set'}</span>
</div>
<div v-if="activeRecordingMetadata" class="flex flex-wrap items-center gap-x-4 gap-y-2">
- <span v-for="(item, index) in activeRecordingMetadata" :key="index" class="flex items-center gap-1.5">
- <i :class="item.icon"></i>
- <span :title="item.fullText || item.text">${item.text}</span>
- </span>
+ <template v-for="(item, index) in activeRecordingMetadata" :key="index">
+ <!-- Special rendering for tags -->
+ <div v-if="item.isTagItem" class="flex items-center gap-1.5">
+ <i :class="item.icon" class="text-[var(--text-muted)]"></i>
+ <div class="flex flex-wrap items-center gap-1">
+ <span v-for="tag in item.tags" :key="tag.id"
+ class="inline-flex items-center px-2 py-0.5 text-xs font-medium rounded-full text-white"
+ :style="{ backgroundColor: tag.color || '#6B7280' }">
+ ${tag.name}
+ </span>
+ </div>
+ </div>
+ <!-- Regular metadata items -->
+ <span v-else class="flex items-center gap-1.5">
+ <i :class="item.icon"></i>
+ <span :title="item.fullText || item.text">${item.text}</span>
+ </span>
+ </template>
</div>
<div v-if="selectedRecording.status !== 'COMPLETED'" class="flex items-center gap-2">
<span :class="getStatusClass(selectedRecording.status)" class="status-badge">
@@ -770,15 +935,15 @@
</div>
<!-- Action Buttons -->
<div class="flex items-center gap-2 overflow-x-auto pb-2">
- <button @click="toggleInbox(selectedRecording)" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors" :class="selectedRecording.is_inbox ? 'text-blue-500' : ''" :title="selectedRecording.is_inbox ? 'Mark as Read' : 'Move to Inbox'"><i class="fas fa-inbox"></i></button>
- <button @click="toggleHighlight(selectedRecording)" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors" :class="selectedRecording.is_highlighted ? 'text-yellow-500' : ''" :title="selectedRecording.is_highlighted ? 'Remove Highlight' : 'Highlight'"><i class="fas fa-star"></i></button>
- <button @click="editRecording(selectedRecording)" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors" title="Edit Recording"><i class="fas fa-edit"></i></button>
- <button @click="editRecordingTags(selectedRecording)" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors" title="Edit Tags"><i class="fas fa-tags"></i></button>
+ <button @click="toggleInbox(selectedRecording)" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors" :class="selectedRecording.is_inbox ? 'text-blue-500' : ''" :title="selectedRecording.is_inbox ? t('sidebar.markAsRead') : t('sidebar.moveToInbox')"><i class="fas fa-inbox"></i></button>
+ <button @click="toggleHighlight(selectedRecording)" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors" :class="selectedRecording.is_highlighted ? 'text-yellow-500' : ''" :title="selectedRecording.is_highlighted ? t('sidebar.removeFromHighlighted') : t('sidebar.highlighted')"><i class="fas fa-star"></i></button>
+ <button @click="editRecording(selectedRecording)" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors" :title="t('common.edit')"><i class="fas fa-edit"></i></button>
+ <button @click="editRecordingTags(selectedRecording)" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors" :title="t('tags.title')"><i class="fas fa-tags"></i></button>
<button @click="reprocessTranscription(selectedRecording.id)" v-if="selectedRecording && (selectedRecording.status === 'COMPLETED' || selectedRecording.status === 'FAILED')" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors" :title="useAsrEndpoint ? 'Reprocess with ASR' : 'Reprocess transcription'"><i class="fas fa-redo-alt"></i></button>
- <button @click="reprocessSummary(selectedRecording.id)" v-if="selectedRecording && (selectedRecording.status === 'COMPLETED' || selectedRecording.status === 'FAILED')" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors" title="Reprocess summary"><i class="fas fa-sync-alt"></i></button>
- <button @click="confirmReset(selectedRecording)" v-if="['PROCESSING', 'SUMMARIZING', 'FAILED'].includes(selectedRecording.status)" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors text-orange-500" title="Reset stuck processing"><i class="fas fa-undo"></i></button>
- <button @click="openSpeakerModal" v-if="selectedRecording.transcription && useAsrEndpoint" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors" title="Identify Speakers"><i class="fas fa-user-tag"></i></button>
- <button @click="openShareModal(selectedRecording)" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors" title="Share Recording"><i class="fas fa-share-alt"></i></button>
+ <button @click="reprocessSummary(selectedRecording.id)" v-if="selectedRecording && (selectedRecording.status === 'COMPLETED' || selectedRecording.status === 'FAILED')" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors" :title="t('buttons.reprocessSummary')"><i class="fas fa-sync-alt"></i></button>
+ <button @click="confirmReset(selectedRecording)" v-if="['PROCESSING', 'SUMMARIZING', 'FAILED'].includes(selectedRecording.status)" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors text-orange-500" :title="t('buttons.resetStuckProcessing')"><i class="fas fa-undo"></i></button>
+ <button @click="openSpeakerModal" v-if="selectedRecording.transcription && useAsrEndpoint" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors" :title="t('buttons.identifySpeakers')"><i class="fas fa-user-tag"></i></button>
+ <button @click="openShareModal(selectedRecording)" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors" :title="t('buttons.shareRecording')"><i class="fas fa-share-alt"></i></button>
<button @click="confirmDelete(selectedRecording)" class="p-2 rounded-lg hover:bg-[var(--bg-danger-light)] text-[var(--text-danger)] transition-colors"><i class="fas fa-trash"></i></button>
</div>
</div>
@@ -799,10 +964,10 @@
<!-- Mobile Tab Navigation -->
<div class="flex-shrink-0 bg-[var(--bg-tertiary)] border-b border-[var(--border-primary)] flex overflow-x-auto">
- <button @click="mobileTab = 'transcript'" :class="['flex-1 px-4 py-3 text-sm font-medium transition-colors', mobileTab === 'transcript' ? 'bg-[var(--bg-secondary)] text-[var(--text-accent)] border-b-2 border-[var(--border-focus)]' : 'text-[var(--text-muted)] hover:text-[var(--text-secondary)]']">Transcript</button>
- <button @click="mobileTab = 'summary'" :class="['flex-1 px-4 py-3 text-sm font-medium transition-colors', mobileTab === 'summary' ? 'bg-[var(--bg-secondary)] text-[var(--text-accent)] border-b-2 border-[var(--border-focus)]' : 'text-[var(--text-muted)] hover:text-[var(--text-secondary)]']">Summary</button>
- <button @click="mobileTab = 'notes'" :class="['flex-1 px-4 py-3 text-sm font-medium transition-colors', mobileTab === 'notes' ? 'bg-[var(--bg-secondary)] text-[var(--text-accent)] border-b-2 border-[var(--border-focus)]' : 'text-[var(--text-muted)] hover:text-[var(--text-secondary)]']">Notes</button>
- <button @click="mobileTab = 'chat'" :class="['flex-1 px-4 py-3 text-sm font-medium transition-colors', mobileTab === 'chat' ? 'bg-[var(--bg-secondary)] text-[var(--text-accent)] border-b-2 border-[var(--border-focus)]' : 'text-[var(--text-muted)] hover:text-[var(--text-secondary)]']">Chat</button>
+ <button @click="mobileTab = 'transcript'" :class="['flex-1 px-4 py-3 text-sm font-medium transition-colors', mobileTab === 'transcript' ? 'bg-[var(--bg-secondary)] text-[var(--text-accent)] border-b-2 border-[var(--border-focus)]' : 'text-[var(--text-muted)] hover:text-[var(--text-secondary)]']" v-text="t('transcription.title')"></button>
+ <button @click="mobileTab = 'summary'" :class="['flex-1 px-4 py-3 text-sm font-medium transition-colors', mobileTab === 'summary' ? 'bg-[var(--bg-secondary)] text-[var(--text-accent)] border-b-2 border-[var(--border-focus)]' : 'text-[var(--text-muted)] hover:text-[var(--text-secondary)]']" v-text="t('summary.title')"></button>
+ <button @click="mobileTab = 'notes'" :class="['flex-1 px-4 py-3 text-sm font-medium transition-colors', mobileTab === 'notes' ? 'bg-[var(--bg-secondary)] text-[var(--text-accent)] border-b-2 border-[var(--border-focus)]' : 'text-[var(--text-muted)] hover:text-[var(--text-secondary)]']" v-text="t('notes.title')"></button>
+ <button @click="mobileTab = 'chat'" :class="['flex-1 px-4 py-3 text-sm font-medium transition-colors', mobileTab === 'chat' ? 'bg-[var(--bg-secondary)] text-[var(--text-accent)] border-b-2 border-[var(--border-focus)]' : 'text-[var(--text-muted)] hover:text-[var(--text-secondary)]']" v-text="t('chat.title')"></button>
</div>
<!-- Mobile Tab Content -->
@@ -820,11 +985,11 @@
<div class="flex-grow overflow-y-auto mobile-content-box">
<div v-if="selectedRecording.status === 'PROCESSING'" class="text-center py-8">
<i class="fas fa-spinner fa-spin text-2xl text-[var(--text-muted)]"></i>
- <p class="mt-2 text-[var(--text-muted)]">Processing transcription...</p>
+ <p class="mt-2 text-[var(--text-muted)]" v-text="t('help.processingTranscription')"></p>
</div>
<div v-else-if="!selectedRecording.transcription" class="text-center py-8">
<i class="fas fa-file-text text-3xl text-[var(--text-muted)] mb-3"></i>
- <p class="text-[var(--text-muted)]">No transcription available</p>
+ <p class="text-[var(--text-muted)]" v-text="t('transcription.noTranscription')"></p>
</div>
<div v-else>
<div v-if="!processedTranscription.hasDialogue || transcriptionViewMode === 'simple'" class="transcription-simple-view">
@@ -854,9 +1019,9 @@
<!-- Summary Panel -->
<div v-if="mobileTab === 'summary'" class="h-full flex flex-col space-y-4">
<div class="flex items-center justify-end gap-2 flex-shrink-0 pr-3">
- <button @click="copySummary" class="copy-btn" title="Copy Summary"><i class="fas fa-copy"></i></button>
- <button @click="downloadSummary" class="copy-btn" title="Download as Word"><i class="fas fa-download"></i></button>
- <button @click="toggleEditSummary" class="copy-btn" title="Edit Summary"><i class="fas fa-edit"></i></button>
+ <button @click="copySummary" class="copy-btn" :title="t('buttons.copySummary')"><i class="fas fa-copy"></i></button>
+ <button @click="downloadSummary" class="copy-btn" :title="t('buttons.downloadAsWord')"><i class="fas fa-download"></i></button>
+ <button @click="toggleEditSummary" class="copy-btn" :title="t('buttons.editSummary')"><i class="fas fa-edit"></i></button>
</div>
<div class="flex-grow overflow-y-auto mobile-content-box">
<div v-if="editingSummary" class="h-full flex flex-col">
@@ -864,18 +1029,18 @@
<textarea ref="summaryMarkdownEditor" v-model="selectedRecording.summary"></textarea>
</div>
<div class="flex justify-end gap-2 mt-2">
- <button @click="cancelEditSummary" class="px-3 py-1 text-sm bg-[var(--bg-secondary)] text-[var(--text-secondary)] border border-[var(--border-secondary)] rounded hover:bg-[var(--bg-tertiary)]">Cancel</button>
- <button @click="saveEditSummary" class="px-3 py-1 text-sm bg-[var(--bg-button)] text-[var(--text-button)] rounded hover:bg-[var(--bg-button-hover)]">Save</button>
+ <button @click="cancelEditSummary" class="px-3 py-1 text-sm bg-[var(--bg-secondary)] text-[var(--text-secondary)] border border-[var(--border-secondary)] rounded hover:bg-[var(--bg-tertiary)]" v-text="t('common.cancel')"></button>
+ <button @click="saveEditSummary" class="px-3 py-1 text-sm bg-[var(--bg-button)] text-[var(--text-button)] rounded hover:bg-[var(--bg-button-hover)]" v-text="t('common.save')"></button>
</div>
</div>
<div v-else>
<div v-if="selectedRecording.status === 'SUMMARIZING'" class="text-center py-8">
<i class="fas fa-spinner fa-spin text-2xl text-[var(--text-muted)]"></i>
- <p class="mt-2 text-[var(--text-muted)]">Generating summary...</p>
+ <p class="mt-2 text-[var(--text-muted)]" v-text="t('help.generatingSummary')"></p>
</div>
<div v-else-if="!selectedRecording.summary" class="text-center py-8">
<i class="fas fa-file-alt text-3xl text-[var(--text-muted)] mb-3"></i>
- <p class="text-[var(--text-muted)] mb-4">No summary available</p>
+ <p class="text-[var(--text-muted)] mb-4" v-text="t('summary.noSummary')"></p>
<button @click="generateSummary"
class="px-6 py-3 bg-gradient-to-r from-blue-600 to-purple-600 text-white font-medium rounded-lg shadow-lg hover:shadow-xl hover:from-blue-700 hover:to-purple-700 transition-all duration-200 transform hover:scale-105">
<i class="fas fa-magic mr-2"></i>Generate Summary
@@ -888,9 +1053,9 @@
<!-- Notes Panel -->
<div v-if="mobileTab === 'notes'" class="h-full flex flex-col space-y-4">
<div class="flex items-center justify-end gap-2 flex-shrink-0 pr-3">
- <button @click="copyNotes" class="copy-btn" title="Copy Notes"><i class="fas fa-copy"></i></button>
- <button @click="downloadNotes" class="copy-btn" title="Download as Word"><i class="fas fa-download"></i></button>
- <button @click="toggleEditNotes" class="copy-btn" title="Edit Notes"><i class="fas fa-edit"></i></button>
+ <button @click="copyNotes" class="copy-btn" :title="t('buttons.copyNotes')"><i class="fas fa-copy"></i></button>
+ <button @click="downloadNotes" class="copy-btn" :title="t('buttons.downloadAsWord')"><i class="fas fa-download"></i></button>
+ <button @click="toggleEditNotes" class="copy-btn" :title="t('buttons.editNotes')"><i class="fas fa-edit"></i></button>
</div>
<div class="flex-grow overflow-y-auto mobile-content-box">
<div v-if="editingNotes" class="h-full flex flex-col">
@@ -898,14 +1063,14 @@
<textarea ref="notesMarkdownEditor" v-model="selectedRecording.notes"></textarea>
</div>
<div class="flex justify-end gap-2 mt-2">
- <button @click="cancelEditNotes" class="px-3 py-1 text-sm bg-[var(--bg-secondary)] text-[var(--text-secondary)] border border-[var(--border-secondary)] rounded hover:bg-[var(--bg-tertiary)]">Cancel</button>
- <button @click="saveEditNotes" class="px-3 py-1 text-sm bg-[var(--bg-button)] text-[var(--text-button)] rounded hover:bg-[var(--bg-button-hover)]">Save</button>
+ <button @click="cancelEditNotes" class="px-3 py-1 text-sm bg-[var(--bg-secondary)] text-[var(--text-secondary)] border border-[var(--border-secondary)] rounded hover:bg-[var(--bg-tertiary)]" v-text="t('common.cancel')"></button>
+ <button @click="saveEditNotes" class="px-3 py-1 text-sm bg-[var(--bg-button)] text-[var(--text-button)] rounded hover:bg-[var(--bg-button-hover)]" v-text="t('common.save')"></button>
</div>
</div>
- <div v-else>
- <div v-if="!selectedRecording.notes" class="text-center py-8">
+ <div v-else @click="clickToEditNotes">
+ <div v-if="!selectedRecording.notes" class="text-center py-8 cursor-pointer hover:text-[var(--text-secondary)]">
<i class="fas fa-sticky-note text-3xl text-[var(--text-muted)] mb-3"></i>
- <p class="text-[var(--text-muted)]">No notes available</p>
+ <p class="text-[var(--text-muted)]" v-text="t('help.clickToAddNotes')"></p>
</div>
<div v-else class="notes-box h-full" v-html="selectedRecording.notes_html || selectedRecording.notes"></div>
</div>
@@ -916,7 +1081,7 @@
<div ref="chatMessagesRef" class="flex-1 overflow-y-auto p-4 space-y-4 bg-[var(--bg-secondary)]">
<div v-if="chatMessages.length === 0" class="text-center py-8">
<i class="fas fa-robot text-3xl text-[var(--text-muted)] mb-3"></i>
- <p class="text-[var(--text-muted)]">Ask questions about this transcription</p>
+ <p class="text-[var(--text-muted)]" v-text="t('help.askAboutTranscription')"></p>
</div>
<div v-for="(message, index) in chatMessages" :key="index"
:class="['message relative group', message.role === 'user' ? 'user-message ml-auto' : 'ai-message',
@@ -925,7 +1090,7 @@
<button v-if="message.role === 'assistant'"
@click="copyMessage(message.content, $event)"
class="absolute top-2 right-2 p-1 text-[var(--text-muted)] hover:text-[var(--text-primary)] hover:bg-[var(--bg-tertiary)] rounded transition-all duration-200"
- title="Copy message">
+ :title="t('buttons.copyMessage')">
<i class="fas fa-copy text-sm"></i>
</button>
<!-- Show thinking content if available -->
@@ -933,7 +1098,7 @@
<button @click="message.thinkingExpanded = !message.thinkingExpanded"
class="text-xs text-[var(--text-muted)] hover:text-[var(--text-secondary)] flex items-center gap-1">
<i :class="['fas', message.thinkingExpanded ? 'fa-chevron-down' : 'fa-chevron-right']"></i>
- <span>Model Reasoning</span>
+ <span v-text="t('help.modelReasoning')"></span>
<span class="text-[var(--text-muted)]">(${message.thinking.split('\n').length} lines)</span>
</button>
<div v-if="message.thinkingExpanded"
@@ -951,7 +1116,7 @@
</div>
<div class="border-t border-[var(--border-primary)] p-4 bg-[var(--bg-tertiary)]">
<div class="flex gap-2">
- <textarea v-model="chatInput" @keydown="handleChatKeydown" :disabled="isChatLoading || selectedRecording.status !== 'COMPLETED'" placeholder="Ask about this transcription..." class="flex-1 px-3 py-2 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-lg resize-none focus:outline-none focus:ring-2 focus:ring-[var(--ring-focus)] text-sm" rows="2"></textarea>
+ <textarea v-model="chatInput" @keydown="handleChatKeydown" :disabled="isChatLoading || selectedRecording.status !== 'COMPLETED'" :placeholder="t('chat.placeholder')" class="flex-1 px-3 py-2 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-lg resize-none focus:outline-none focus:ring-2 focus:ring-[var(--ring-focus)] text-sm" rows="2"></textarea>
<button @click="sendChatMessage" :disabled="!chatInput.trim() || isChatLoading || selectedRecording.status !== 'COMPLETED'" class="px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-lg hover:bg-[var(--bg-button-hover)] transition-colors disabled:opacity-50 disabled:cursor-not-allowed">
<i class="fas fa-paper-plane"></i>
</button>
@@ -992,7 +1157,7 @@
</button>
<button @click="editRecordingTags(selectedRecording)"
class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors"
- title="Edit Tags">
+ :title="t('buttons.editTags')">
<i class="fas fa-tags"></i>
</button>
<button @click="reprocessTranscription(selectedRecording.id)" v-if="selectedRecording && (selectedRecording.status === 'COMPLETED' || selectedRecording.status === 'FAILED')"
@@ -1002,22 +1167,22 @@
</button>
<button @click="reprocessSummary(selectedRecording.id)" v-if="selectedRecording && (selectedRecording.status === 'COMPLETED' || selectedRecording.status === 'FAILED')"
class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors"
- title="Reprocess summary">
+ :title="t('buttons.reprocessSummary')">
<i class="fas fa-sync-alt"></i>
</button>
<button @click="confirmReset(selectedRecording)" v-if="['PROCESSING', 'SUMMARIZING', 'FAILED'].includes(selectedRecording.status)"
class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors text-orange-500"
- title="Reset stuck processing">
+ :title="t('buttons.resetStuckProcessing')">
<i class="fas fa-undo"></i>
</button>
<button @click="openSpeakerModal" v-if="selectedRecording.transcription && useAsrEndpoint"
class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors"
- title="Identify Speakers">
+ :title="t('buttons.identifySpeakers')">
<i class="fas fa-user-tag"></i>
</button>
<button @click="openShareModal(selectedRecording)"
class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors"
- title="Share Recording">
+ :title="t('buttons.shareRecording')">
<i class="fas fa-share-alt"></i>
</button>
<button @click="confirmDelete(selectedRecording)"
@@ -1035,7 +1200,7 @@
<span v-if="!editingParticipants"
@click="toggleEditParticipants"
class="cursor-pointer hover:text-[var(--text-accent)] transition-colors">
- ${selectedRecording.participants || 'No participants'}
+ ${selectedRecording.participants || t('help.noParticipants')}
</span>
<input v-else
v-model="selectedRecording.participants"
@@ -1062,10 +1227,24 @@
<!-- Other Metadata -->
<div v-if="activeRecordingMetadata" class="flex flex-wrap items-center gap-x-6 gap-y-2">
- <span v-for="(item, index) in activeRecordingMetadata" :key="index" class="flex items-center gap-1.5">
- <i :class="item.icon"></i>
- <span :title="item.fullText || item.text">${item.text}</span>
- </span>
+ <template v-for="(item, index) in activeRecordingMetadata" :key="index">
+ <!-- Special rendering for tags -->
+ <div v-if="item.isTagItem" class="flex items-center gap-1.5">
+ <i :class="item.icon" class="text-[var(--text-muted)]"></i>
+ <div class="flex flex-wrap items-center gap-1">
+ <span v-for="tag in item.tags" :key="tag.id"
+ class="inline-flex items-center px-2 py-0.5 text-xs font-medium rounded-full text-white"
+ :style="{ backgroundColor: tag.color || '#6B7280' }">
+ ${tag.name}
+ </span>
+ </div>
+ </div>
+ <!-- Regular metadata items -->
+ <span v-else class="flex items-center gap-1.5">
+ <i :class="item.icon"></i>
+ <span :title="item.fullText || item.text">${item.text}</span>
+ </span>
+ </template>
</div>
<!-- Status -->
@@ -1086,31 +1265,31 @@
<div class="bg-[var(--bg-tertiary)] px-4 py-3 border-b border-[var(--border-primary)] flex items-center justify-between">
<h3 class="font-semibold flex items-center">
<i class="fas fa-file-text mr-2"></i>
- Transcription
+ <span v-text="t('transcription.title')"></span>
</h3>
<div class="flex items-center gap-2">
<!-- View Mode Toggle -->
<div v-if="processedTranscription.hasDialogue" class="view-mode-toggle">
<button @click="toggleTranscriptionViewMode"
:class="['toggle-button', transcriptionViewMode === 'simple' ? 'active' : '']">
- <i class="fas fa-list"></i>Simple
+ <i class="fas fa-list"></i><span v-text="t('transcription.simple')"></span>
</button>
<button @click="toggleTranscriptionViewMode"
:class="['toggle-button', transcriptionViewMode === 'bubble' ? 'active' : '']">
- <i class="fas fa-comments"></i>Bubble
+ <i class="fas fa-comments"></i><span v-text="t('transcription.bubble')"></span>
</button>
</div>
<!-- Copy Button -->
<button @click="copyTranscription"
class="copy-btn">
- <i class="fas fa-copy mr-1"></i>Copy
+ <i class="fas fa-copy mr-1"></i><span v-text="t('transcription.copy')"></span>
</button>
<!-- Edit Transcription Button -->
<button @click="openTranscriptionEditor"
v-if="selectedRecording && selectedRecording.transcription"
class="copy-btn">
- <i class="fas fa-edit mr-1"></i>Edit
+ <i class="fas fa-edit mr-1"></i><span v-text="t('transcription.edit')"></span>
</button>
</div>
</div>
@@ -1119,12 +1298,12 @@
<div class="flex-1 overflow-y-auto p-4">
<div v-if="selectedRecording.status === 'PROCESSING'" class="text-center py-8">
<i class="fas fa-spinner fa-spin text-2xl text-[var(--text-muted)]"></i>
- <p class="mt-2 text-[var(--text-muted)]">Processing transcription...</p>
+ <p class="mt-2 text-[var(--text-muted)]" v-text="t('help.processingTranscription')"></p>
</div>
<div v-else-if="!selectedRecording.transcription" class="text-center py-8">
<i class="fas fa-file-text text-3xl text-[var(--text-muted)] mb-3"></i>
- <p class="text-[var(--text-muted)]">No transcription available</p>
+ <p class="text-[var(--text-muted)]" v-text="t('transcription.noTranscription')"></p>
</div>
<!-- Speaker Legend (for dialogue transcriptions in bubble view only) -->
@@ -1133,7 +1312,7 @@
<div class="speaker-legend-header" @click="legendExpanded = !legendExpanded">
<div class="speaker-legend-title">
<i class="fas fa-users"></i>
- Speakers
+ <span v-text="t('help.speakers')"></span>
<span class="speaker-count-indicator">(${processedTranscription.speakers.length})</span>
</div>
<i class="fas fa-chevron-down speaker-legend-toggle"></i>
@@ -1233,7 +1412,7 @@
? 'bg-[var(--bg-secondary)] text-[var(--text-accent)] border-b-2 border-[var(--border-focus)]'
: 'text-[var(--text-muted)] hover:text-[var(--text-secondary)]'
]">
- Summary
+ ${ t('summary.title') }
</button>
<button @click="selectedTab = 'notes'"
:class="[
@@ -1242,7 +1421,7 @@
? 'bg-[var(--bg-secondary)] text-[var(--text-accent)] border-b-2 border-[var(--border-focus)]'
: 'text-[var(--text-muted)] hover:text-[var(--text-secondary)]'
]">
- Notes
+ ${ t('notes.title') }
</button>
</div>
@@ -1252,32 +1431,32 @@
<div v-if="selectedTab === 'summary'" class="h-full p-4 overflow-y-auto">
<div v-if="selectedRecording.status === 'SUMMARIZING'" class="text-center py-8">
<i class="fas fa-spinner fa-spin text-2xl text-[var(--text-muted)]"></i>
- <p class="mt-2 text-[var(--text-muted)]">Generating summary...</p>
+ <p class="mt-2 text-[var(--text-muted)]" v-text="t('summary.summaryInProgress')"></p>
</div>
<div v-else-if="!selectedRecording.summary" class="text-center py-8">
<i class="fas fa-file-alt text-3xl text-[var(--text-muted)] mb-3"></i>
- <p class="text-[var(--text-muted)] mb-4">No summary available</p>
+ <p class="text-[var(--text-muted)] mb-4" v-text="t('summary.noSummary')"></p>
<button @click="generateSummary"
class="px-6 py-3 bg-gradient-to-r from-blue-600 to-purple-600 text-white font-medium rounded-lg shadow-lg hover:shadow-xl hover:from-blue-700 hover:to-purple-700 transition-all duration-200 transform hover:scale-105">
- <i class="fas fa-magic mr-2"></i>Generate Summary
+ <i class="fas fa-magic mr-2"></i>${ t('summary.generateSummary') }
</button>
</div>
<div v-else class="content-box relative">
<div v-if="!editingSummary" class="absolute top-2 right-4 flex gap-1 z-10">
<button @click="copySummary"
- title="Copy Summary"
+ :title="t('buttons.copySummary')"
class="w-8 h-8 flex items-center justify-center bg-transparent hover:bg-[var(--bg-secondary)] text-[var(--text-muted)] hover:text-[var(--text-primary)] rounded-md border border-transparent hover:border-[var(--border-secondary)] transition-all duration-200 opacity-60 hover:opacity-100">
<i class="fas fa-copy text-sm"></i>
</button>
<button @click="downloadSummary"
- title="Download Summary as Word Document"
+ :title="t('buttons.downloadSummary')"
class="w-8 h-8 flex items-center justify-center bg-transparent hover:bg-[var(--bg-secondary)] text-[var(--text-muted)] hover:text-[var(--text-primary)] rounded-md border border-transparent hover:border-[var(--border-secondary)] transition-all duration-200 opacity-60 hover:opacity-100">
<i class="fas fa-download text-sm"></i>
</button>
<button @click="toggleEditSummary"
- title="Edit Summary"
+ :title="t('buttons.editSummary')"
class="w-8 h-8 flex items-center justify-center bg-transparent hover:bg-[var(--bg-secondary)] text-[var(--text-muted)] hover:text-[var(--text-primary)] rounded-md border border-transparent hover:border-[var(--border-secondary)] transition-all duration-200 opacity-60 hover:opacity-100">
<i class="fas fa-edit text-sm"></i>
</button>
@@ -1292,7 +1471,7 @@
<textarea ref="summaryMarkdownEditor"
v-model="selectedRecording.summary"
class="w-full h-full p-4 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-lg resize-none focus:outline-none focus:ring-2 focus:ring-[var(--ring-focus)]"
- placeholder="Enter summary in Markdown format...">
+ :placeholder="t('form.enterSummaryMarkdown')">
</textarea>
</div>
<div class="flex justify-end gap-2 mt-2">
@@ -1314,24 +1493,25 @@
<div class="content-box h-full relative">
<div v-if="!editingNotes" class="absolute top-2 right-4 flex gap-1 z-10">
<button @click="copyNotes"
- title="Copy Notes"
+ :title="t('buttons.copyNotes')"
class="w-8 h-8 flex items-center justify-center bg-transparent hover:bg-[var(--bg-secondary)] text-[var(--text-muted)] hover:text-[var(--text-primary)] rounded-md border border-transparent hover:border-[var(--border-secondary)] transition-all duration-200 opacity-60 hover:opacity-100">
<i class="fas fa-copy text-sm"></i>
</button>
<button @click="downloadNotes"
- title="Download Notes as Word Document"
+ :title="t('buttons.downloadNotes')"
class="w-8 h-8 flex items-center justify-center bg-transparent hover:bg-[var(--bg-secondary)] text-[var(--text-muted)] hover:text-[var(--text-primary)] rounded-md border border-transparent hover:border-[var(--border-secondary)] transition-all duration-200 opacity-60 hover:opacity-100">
<i class="fas fa-download text-sm"></i>
</button>
<button @click="toggleEditNotes"
- title="Edit Notes"
+ :title="t('buttons.editNotes')"
class="w-8 h-8 flex items-center justify-center bg-transparent hover:bg-[var(--bg-secondary)] text-[var(--text-muted)] hover:text-[var(--text-primary)] rounded-md border border-transparent hover:border-[var(--border-secondary)] transition-all duration-200 opacity-60 hover:opacity-100">
<i class="fas fa-edit text-sm"></i>
</button>
</div>
<div v-if="!editingNotes"
- class="notes-box h-full">
+ class="notes-box h-full"
+ @click="clickToEditNotes">
<div v-if="selectedRecording.notes_html"
v-html="selectedRecording.notes_html">
</div>
@@ -1339,8 +1519,8 @@
class="whitespace-pre-wrap">
${selectedRecording.notes}
</div>
- <div v-else class="text-[var(--text-muted)] italic">
- Click to add notes...
+ <div v-else class="text-[var(--text-muted)] italic cursor-pointer hover:text-[var(--text-secondary)]">
+ ${ t('help.clickToAddNotes') }
</div>
</div>
@@ -1349,7 +1529,7 @@
<textarea ref="notesMarkdownEditor"
v-model="selectedRecording.notes"
class="w-full h-full p-4 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-lg resize-none focus:outline-none focus:ring-2 focus:ring-[var(--ring-focus)]"
- placeholder="Enter notes in Markdown format...">
+ :placeholder="t('form.enterNotesMarkdown')">
</textarea>
</div>
<div class="flex justify-end gap-2 mt-2">
@@ -1376,14 +1556,14 @@
class="flex-1 text-left flex items-center">
<span class="font-medium flex items-center">
<i class="fas fa-comments mr-2"></i>
- Chat with Transcription
+ ${ t('chat.chatWithTranscription') }
</span>
</button>
<div class="flex items-center gap-2">
<button v-if="chatMessages.length > 0"
@click="downloadChat"
class="p-1 text-[var(--text-muted)] hover:text-[var(--text-primary)] transition-colors"
- title="Download chat as Word document">
+ :title="t('buttons.downloadChat')">
<i class="fas fa-download text-sm"></i>
</button>
<button @click="showChat = !showChat"
@@ -1400,7 +1580,7 @@
class="flex-1 overflow-y-auto p-4 space-y-4 bg-[var(--bg-secondary)]">
<div v-if="chatMessages.length === 0" class="text-center py-8">
<i class="fas fa-robot text-3xl text-[var(--text-muted)] mb-3"></i>
- <p class="text-[var(--text-muted)]">Ask questions about this transcription</p>
+ <p class="text-[var(--text-muted)]" v-text="t('help.askAboutTranscription')"></p>
</div>
<div v-for="(message, index) in chatMessages"
@@ -1414,7 +1594,7 @@
<button v-if="message.role === 'assistant'"
@click="copyMessage(message.content, $event)"
class="absolute top-2 right-2 p-1 text-[var(--text-muted)] hover:text-[var(--text-primary)] hover:bg-[var(--bg-tertiary)] rounded transition-all duration-200"
- title="Copy message">
+ :title="t('buttons.copyMessage')">
<i class="fas fa-copy text-sm"></i>
</button>
<!-- Show thinking content if available -->
@@ -1422,7 +1602,7 @@
<button @click="message.thinkingExpanded = !message.thinkingExpanded"
class="text-xs text-[var(--text-muted)] hover:text-[var(--text-secondary)] flex items-center gap-1">
<i :class="['fas', message.thinkingExpanded ? 'fa-chevron-down' : 'fa-chevron-right']"></i>
- <span>Model Reasoning</span>
+ <span v-text="t('help.modelReasoning')"></span>
<span class="text-[var(--text-muted)]">(${message.thinking.split('\n').length} lines)</span>
</button>
<div v-if="message.thinkingExpanded"
@@ -1437,7 +1617,7 @@
<div v-if="isChatLoading" class="ai-message">
<i class="fas fa-spinner fa-spin mr-2"></i>
- Thinking...
+ ${ t('chat.thinking') }
</div>
</div>
@@ -1447,7 +1627,7 @@
<textarea v-model="chatInput"
@keydown="handleChatKeydown"
:disabled="isChatLoading || selectedRecording.status !== 'COMPLETED'"
- placeholder="Ask about this transcription... (Enter to send, Ctrl+Enter for new line)"
+ :placeholder="t('chat.placeholderWithHint')"
class="flex-1 px-3 py-2 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-lg resize-none focus:outline-none focus:ring-2 focus:ring-[var(--ring-focus)] text-sm"
rows="2">
</textarea>
@@ -1459,7 +1639,7 @@
</div>
<p v-if="selectedRecording.status !== 'COMPLETED'"
class="text-xs text-[var(--text-muted)] mt-2">
- Chat will be available once transcription is complete
+ ${ t('chat.availableAfterTranscription') }
</p>
</div>
</div>
@@ -1473,8 +1653,8 @@
<div v-else-if="currentView === 'detail' && !selectedRecording" class="flex-1 flex items-center justify-center">
<div class="text-center">
<i class="fas fa-microphone text-6xl text-[var(--text-muted)] mb-4"></i>
- <h2 class="text-2xl font-bold mb-2">Select a Recording</h2>
- <p class="text-[var(--text-muted)] mb-6">Choose a recording from the sidebar to view its transcription and summary</p>
+ <h2 class="text-2xl font-bold mb-2" v-text="t('colorScheme.selectRecording')"></h2>
+ <p class="text-[var(--text-muted)] mb-6" v-text="t('colorScheme.chooseRecording')"></p>
<button @click="switchToUploadView"
class="px-6 py-3 bg-[var(--bg-button)] text-[var(--text-button)] rounded-lg hover:bg-[var(--bg-button-hover)] transition-colors">
<i class="fas fa-plus mr-2"></i>Upload New Recording
@@ -1494,68 +1674,75 @@
ring-4 ring-[var(--bg-accent)] ring-opacity-20"
style="box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 0 1px var(--bg-accent), 0 0 20px rgba(var(--bg-accent-rgb), 0.3)">
<!-- Progress Header -->
- <div class="bg-gradient-to-r from-[var(--bg-accent)] to-[var(--bg-accent-hover)] px-3 py-2">
+ <div class="bg-gradient-to-r from-[var(--bg-accent)] to-[var(--bg-accent-hover)] px-4 py-3">
<!-- Top row: Title and buttons -->
- <div class="flex items-center justify-between mb-1">
+ <div class="flex items-center justify-between mb-2">
<div class="flex items-center gap-2 min-w-0">
- <i class="fas fa-upload text-[var(--text-accent)] animate-pulse text-sm"></i>
- <span class="font-semibold text-[var(--text-accent)] text-sm truncate">Upload Progress</span>
+ <i class="fas fa-upload text-gray-800 dark:text-white animate-pulse"></i>
+ <span class="font-semibold text-gray-800 dark:text-white truncate" v-text="t('uploadProgress.title')"></span>
</div>
- <div class="flex items-center gap-1 flex-shrink-0">
+ <div class="flex items-center gap-2 flex-shrink-0">
<button v-if="completedInQueue > 0" @click="clearCompletedUploads()"
- class="px-1.5 py-0.5 text-xs bg-white bg-opacity-20 hover:bg-opacity-30 rounded transition-colors text-[var(--text-accent)] border border-white border-opacity-30"
- title="Clear completed uploads">
- <i class="fas fa-broom"></i>
+ class="px-2 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 duration-200 text-gray-800 dark:text-white font-medium"
+ :title="t('buttons.clearCompleted')">
+ Clear
</button>
<button @click="progressPopupMinimized = !progressPopupMinimized"
- class="p-0.5 rounded hover:bg-white hover:bg-opacity-20 transition-colors text-[var(--text-accent)]">
- <i :class="progressPopupMinimized ? 'fas fa-chevron-up text-xs' : 'fas fa-chevron-down text-xs'"></i>
+ 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">
+ <i :class="progressPopupMinimized ? 'fas fa-chevron-up' : 'fas fa-chevron-down'"></i>
</button>
<button @click="progressPopupClosed = true"
- class="p-0.5 rounded hover:bg-red-500 hover:bg-opacity-20 text-red-200 hover:text-red-100 transition-colors">
- <i class="fas fa-times text-xs"></i>
+ class="p-1 rounded hover:bg-red-600 dark:hover:bg-red-500 hover:bg-opacity-20 dark:hover:bg-opacity-30 text-gray-800 dark:text-white hover:text-white transition-colors">
+ <i class="fas fa-times"></i>
</button>
</div>
</div>
- <!-- Bottom row: Progress count -->
- <div class="flex items-center justify-between">
- <span class="text-xs text-[var(--text-accent)] opacity-80 font-medium">${completedInQueue} of ${totalInQueue} completed</span>
- <div class="w-24 bg-white bg-opacity-20 rounded-full h-1.5">
- <div class="bg-white h-1.5 rounded-full transition-all duration-300"
- :style="{width: (completedInQueue / Math.max(totalInQueue, 1) * 100) + '%'}"></div>
+ <!-- Overall Progress Bar -->
+ <div class="space-y-1">
+ <div class="flex justify-between items-center text-xs text-gray-800 dark:text-white">
+ <span class="font-medium">${completedInQueue} of ${totalInQueue} files</span>
+ <span class="font-bold">${Math.round((completedInQueue / Math.max(totalInQueue, 1)) * 100)}%</span>
+ </div>
+ <div class="w-full bg-black dark:bg-white bg-opacity-10 dark:bg-opacity-20 rounded-full h-2 overflow-hidden">
+ <div class="bg-white dark:bg-white bg-opacity-80 dark:bg-opacity-90 h-full rounded-full transition-all duration-500 ease-out relative overflow-hidden"
+ :style="{width: (completedInQueue / Math.max(totalInQueue, 1) * 100) + '%'}">
+ <div class="absolute inset-0 bg-white opacity-30 animate-pulse"></div>
+ </div>
</div>
</div>
</div>
<!-- Progress Content -->
<div v-if="!progressPopupMinimized" class="p-3 max-h-64 overflow-y-auto">
- <div v-if="currentlyProcessingFile" class="mb-3 p-2.5 bg-[var(--bg-accent)] rounded-lg">
- <div class="flex items-center justify-between mb-1.5">
- <span class="font-medium truncate min-w-0 text-sm">${currentlyProcessingFile.file.name}</span>
- <span class="text-xs flex-shrink-0 ml-2 font-semibold">${processingProgress}%</span>
+ <div v-if="currentlyProcessingFile" class="mb-3 p-3 bg-[var(--bg-accent)] bg-opacity-10 border border-[var(--border-accent)] rounded-lg">
+ <div class="flex items-center justify-between mb-2">
+ <span class="font-semibold truncate min-w-0 text-sm text-[var(--text-primary)]">${currentlyProcessingFile.file.name}</span>
+ <span class="text-sm flex-shrink-0 ml-2 font-bold text-[var(--text-accent)]">${processingProgress}%</span>
</div>
- <div class="w-full bg-[var(--bg-secondary)] rounded-full h-1.5 mb-1.5">
- <div class="bg-[var(--bg-button)] h-1.5 rounded-full transition-all duration-300"
- :style="{width: processingProgress + '%'}"></div>
+ <div class="w-full bg-[var(--bg-tertiary)] rounded-full h-2 mb-2 overflow-hidden">
+ <div class="bg-gradient-to-r from-[var(--bg-accent)] to-[var(--bg-accent-hover)] h-full rounded-full transition-all duration-300 relative"
+ :style="{width: processingProgress + '%'}">
+ <div class="absolute inset-0 bg-white opacity-20 animate-pulse"></div>
+ </div>
</div>
- <p class="text-xs text-[var(--text-muted)]">${processingMessage}</p>
+ <p class="text-xs text-[var(--text-secondary)] font-medium">${processingMessage}</p>
</div>
- <div v-if="finishedFilesInQueue.length > 0" class="space-y-1.5">
- <h4 class="text-xs font-medium text-[var(--text-secondary)] uppercase tracking-wide">Completed</h4>
+ <div v-if="finishedFilesInQueue.length > 0" class="space-y-2">
+ <h4 class="text-xs font-semibold text-[var(--text-secondary)] uppercase tracking-wider opacity-70" v-text="t('help.completedFiles')"></h4>
<div v-for="item in finishedFilesInQueue"
:key="item.clientId"
- class="progress-list-item p-1.5 bg-[var(--bg-tertiary)] rounded flex items-center gap-2">
+ class="progress-list-item p-2 bg-[var(--bg-tertiary)] bg-opacity-50 rounded-lg flex items-center gap-2 hover:bg-opacity-70 transition-all duration-200">
<i :class="[
- 'fas text-xs',
+ 'fas',
item.status === 'completed' ? 'fa-check-circle text-green-500' : 'fa-exclamation-circle text-red-500'
]"></i>
- <span class="truncate text-sm flex-1">${item.file.name}</span>
+ <span class="truncate text-sm flex-1 text-[var(--text-primary)]">${item.file.name}</span>
<span :class="[
- 'text-xs px-1.5 py-0.5 rounded font-medium',
- item.status === 'completed' ? 'bg-green-100 text-green-700' : 'bg-red-100 text-red-700'
+ 'text-xs px-2 py-1 rounded-full font-semibold',
+ item.status === 'completed' ? 'bg-green-500 bg-opacity-20 text-green-600 dark:text-green-400' : 'bg-red-500 bg-opacity-20 text-red-600 dark:text-red-400'
]">
- ${item.status === 'completed' ? 'Done' : 'Failed'}
+ ${item.status === 'completed' ? t('tagsModal.done') : t('status.failed')}
</span>
</div>
</div>
@@ -1565,30 +1752,30 @@
<!-- Modals -->
<!-- Edit Modal -->
- <div v-if="showEditModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4">
+ <div v-if="showEditModal" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
<div class="bg-[var(--bg-secondary)] rounded-lg shadow-xl w-full max-w-lg">
<div class="p-6 border-b border-[var(--border-primary)]">
- <h3 class="text-lg font-semibold">Edit Recording</h3>
+ <h3 class="text-lg font-semibold" v-text="t('modal.editRecording')"></h3>
</div>
<div class="p-6 space-y-4">
<div>
- <label class="block text-sm font-medium mb-2">Title</label>
+ <label class="block text-sm font-medium mb-2" v-text="t('form.title')"></label>
<input v-model="editingRecording.title"
class="w-full px-3 py-2 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-lg focus:outline-none focus:ring-2 focus:ring-[var(--ring-focus)]">
</div>
<div>
- <label class="block text-sm font-medium mb-2">Participants</label>
+ <label class="block text-sm font-medium mb-2" v-text="t('form.participants')"></label>
<input v-model="editingRecording.participants"
class="w-full px-3 py-2 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-lg focus:outline-none focus:ring-2 focus:ring-[var(--ring-focus)]">
</div>
<div>
- <label class="block text-sm font-medium mb-2">Meeting Date</label>
+ <label class="block text-sm font-medium mb-2" v-text="t('form.meetingDate')"></label>
<input v-model="editingRecording.meeting_date"
type="date"
class="w-full px-3 py-2 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-lg focus:outline-none focus:ring-2 focus:ring-[var(--ring-focus)]">
</div>
<div>
- <label class="block text-sm font-medium mb-2">Notes</label>
+ <label class="block text-sm font-medium mb-2" v-text="t('form.notes')"></label>
<textarea v-model="editingRecording.notes"
rows="4"
class="w-full px-3 py-2 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-lg focus:outline-none focus:ring-2 focus:ring-[var(--ring-focus)]">
@@ -1609,14 +1796,14 @@
</div>
<!-- Delete Confirmation Modal -->
- <div v-if="showDeleteModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4">
+ <div v-if="showDeleteModal" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
<div class="bg-[var(--bg-secondary)] rounded-lg shadow-xl w-full max-w-md">
<div class="p-6">
<div class="flex items-center gap-4 mb-4">
<i class="fas fa-exclamation-triangle text-3xl text-[var(--text-danger)]"></i>
<div>
- <h3 class="text-lg font-semibold">Delete Recording</h3>
- <p class="text-[var(--text-muted)]">This action cannot be undone.</p>
+ <h3 class="text-lg font-semibold" v-text="t('modal.deleteRecording')"></h3>
+ <p class="text-[var(--text-muted)]" v-text="t('help.thisActionCannotBeUndone')"></p>
</div>
</div>
<p class="text-[var(--text-secondary)] mb-6">
@@ -1637,52 +1824,104 @@
</div>
<!-- Edit Recording Tags Modal -->
- <div v-if="showEditTagsModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4">
- <div class="bg-[var(--bg-secondary)] rounded-lg shadow-xl w-full max-w-lg">
- <div class="p-6 border-b border-[var(--border-primary)]">
- <h3 class="text-lg font-medium text-[var(--text-primary)]">Edit Recording Tags</h3>
+ <div v-if="showEditTagsModal" @click="closeEditTagsModal" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
+ <div @click.stop class="bg-[var(--bg-secondary)] rounded-lg shadow-xl w-full max-w-lg max-h-[80vh] flex flex-col">
+ <div class="flex-shrink-0 p-6 border-b border-[var(--border-primary)]">
+ <div class="flex items-center justify-between">
+ <h3 class="text-lg font-medium text-[var(--text-primary)]" v-text="t('modal.editTags')"></h3>
+ <button @click="closeEditTagsModal" class="text-[var(--text-muted)] hover:text-[var(--text-primary)] transition-colors">
+ <i class="fas fa-times"></i>
+ </button>
+ </div>
</div>
- <div class="p-6 space-y-4">
+ <div class="flex-1 overflow-y-auto p-6 space-y-4">
+ <!-- Current Tags Section -->
<div>
- <label class="block text-sm font-medium text-[var(--text-secondary)] mb-2">
- Current Tags
+ <label class="block text-sm font-medium text-[var(--text-secondary)] mb-3">
+ <i class="fas fa-tags mr-1 text-[var(--text-muted)]"></i>
+ <span v-text="t('tagsModal.currentTags')"></span>
</label>
- <div v-if="getRecordingTags(editingRecording).length > 0" class="flex flex-wrap gap-2 mb-3">
- <span v-for="tag in getRecordingTags(editingRecording)" :key="tag.id"
- class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium text-white"
- :style="{ backgroundColor: tag.color }">
- <i class="fas fa-tag mr-1"></i>
- <span v-text="tag.name"></span>
- <button @click="removeTagFromRecording(tag.id)"
- class="ml-2 text-white/80 hover:text-white focus:outline-none">
- <i class="fas fa-times text-xs"></i>
- </button>
- </span>
+ <div v-if="getRecordingTags(editingRecording).length > 0" class="p-2 bg-[var(--bg-primary)] rounded-md border border-[var(--border-secondary)] max-h-20 overflow-y-auto">
+ <div class="flex flex-wrap gap-1">
+ <span v-for="tag in getRecordingTags(editingRecording)" :key="tag.id"
+ class="group inline-flex items-center px-1.5 py-0.5 rounded-full text-[11px] font-medium text-white transition-all"
+ :style="{ backgroundColor: tag.color }">
+ <span v-text="tag.name"></span>
+ <button @click="removeTagFromRecording(tag.id)"
+ class="ml-1 opacity-70 hover:opacity-100 transition-opacity">
+ <i class="fas fa-times" style="font-size: 9px;"></i>
+ </button>
+ </span>
+ </div>
+ </div>
+ <div v-else class="p-4 bg-[var(--bg-tertiary)] rounded-lg border border-[var(--border-secondary)]">
+ <p class="text-sm text-[var(--text-muted)] text-center">
+ <i class="fas fa-inbox mr-1"></i>
+ <span v-text="t('tagsModal.noTagsAssigned')"></span>
+ </p>
</div>
- <p v-else class="text-sm text-[var(--text-muted)]">No tags assigned</p>
</div>
+ <!-- Add Tags Section -->
<div>
- <label class="block text-sm font-medium text-[var(--text-secondary)] mb-2">
- Add Tag
+ <label class="block text-sm font-medium text-[var(--text-secondary)] mb-3">
+ <i class="fas fa-plus-circle mr-1 text-[var(--text-muted)]"></i>
+ <span v-text="t('tagsModal.addTags')"></span>
</label>
- <select v-model="selectedNewTagId"
- class="w-full px-3 py-2 text-sm bg-[var(--bg-primary)] text-[var(--text-primary)] border border-[var(--border-primary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--ring-focus)]">
- <option value="">Select a tag to add...</option>
- <option v-for="tag in getAvailableTagsForRecording(editingRecording)" :key="tag.id" :value="tag.id" v-text="tag.name">
- </option>
- </select>
- <button @click="addTagToRecording"
- :disabled="!selectedNewTagId"
- class="mt-2 w-full px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-md hover:bg-[var(--bg-button-hover)] disabled:opacity-50 disabled:cursor-not-allowed">
- <i class="fas fa-plus mr-2"></i>
- Add Tag
- </button>
+
+ <!-- Search Filter (always visible if tags available) -->
+ <div v-if="getAvailableTagsForRecording(editingRecording).length > 0" class="mb-2">
+ <div class="relative">
+ <input v-model="tagSearchFilter"
+ type="text"
+ :placeholder="t('tagsModal.searchTags')"
+ class="w-full px-2 py-1 pl-6 text-xs 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)]">
+ <i class="fas fa-search absolute left-2 top-1/2 transform -translate-y-1/2 text-[var(--text-muted)]" style="font-size: 9px;"></i>
+ <button v-if="tagSearchFilter"
+ @click="tagSearchFilter = ''"
+ class="absolute right-2 top-1/2 transform -translate-y-1/2 text-[var(--text-muted)] hover:text-[var(--text-primary)]">
+ <i class="fas fa-times" style="font-size: 9px;"></i>
+ </button>
+ </div>
+ </div>
+
+ <!-- Available Tags Grid - Fixed Height -->
+ <div v-if="filteredAvailableTagsForModal.length > 0"
+ class="border border-[var(--border-secondary)] rounded-md p-1.5 bg-[var(--bg-primary)]"
+ style="max-height: 150px; overflow-y: auto;">
+ <div class="grid grid-cols-2 gap-1">
+ <button v-for="tag in filteredAvailableTagsForModal"
+ :key="tag.id"
+ @click="addTagToRecording(tag.id)"
+ class="group flex items-center justify-between px-1.5 py-1 rounded border border-[var(--border-secondary)] hover:border-[var(--border-focus)] bg-[var(--bg-secondary)] hover:bg-[var(--bg-tertiary)] transition-all">
+ <div class="flex items-center gap-1 min-w-0">
+ <span class="w-2 h-2 rounded-full flex-shrink-0"
+ :style="{ backgroundColor: tag.color || '#6B7280' }"></span>
+ <span class="text-[11px] text-[var(--text-primary)] truncate" v-text="tag.name"></span>
+ </div>
+ <i class="fas fa-plus text-[var(--text-muted)] group-hover:text-[var(--text-accent)] transition-colors" style="font-size: 9px;"></i>
+ </button>
+ </div>
+ </div>
+ <div v-else-if="getAvailableTagsForRecording(editingRecording).length > 0"
+ class="p-4 bg-[var(--bg-tertiary)] rounded-lg border border-[var(--border-secondary)]">
+ <p class="text-sm text-[var(--text-muted)] text-center">
+ <i class="fas fa-search mr-1"></i>
+ No tags match your filter
+ </p>
+ </div>
+ <div v-else class="p-4 bg-[var(--bg-tertiary)] rounded-lg border border-[var(--border-secondary)]">
+ <p class="text-sm text-[var(--text-muted)] text-center">
+ <i class="fas fa-check-circle mr-1"></i>
+ All available tags have been added
+ </p>
+ </div>
</div>
</div>
- <div class="px-6 py-4 bg-[var(--bg-tertiary)] border-t border-[var(--border-primary)] flex justify-end gap-3 rounded-b-lg">
- <button @click="closeEditTagsModal" class="px-4 py-2 text-[var(--text-secondary)] hover:text-[var(--text-primary)]">
- Close
+ <div class="flex-shrink-0 px-6 py-4 bg-[var(--bg-tertiary)] border-t border-[var(--border-primary)] flex justify-end gap-3 rounded-b-lg">
+ <button @click="closeEditTagsModal"
+ class="px-4 py-2 bg-[var(--bg-secondary)] text-[var(--text-primary)] rounded-md hover:bg-[var(--bg-button-hover)] transition-colors">
+ <span v-text="t('tagsModal.done')"></span>
</button>
</div>
</div>
@@ -1696,7 +1935,7 @@
<i class="fas fa-palette"></i>
Choose Color Scheme
</h2>
- <p class="color-scheme-subtitle">Customize your interface with beautiful color themes</p>
+ <p class="color-scheme-subtitle" v-text="t('colorScheme.subtitle')"></p>
</div>
<div class="color-scheme-body">
@@ -1746,7 +1985,7 @@
<i class="fas fa-sync-alt text-white text-lg"></i>
</div>
<div>
- <h3 class="text-xl font-bold text-[var(--text-primary)] mb-1">Confirm Reprocessing</h3>
+ <h3 class="text-xl font-bold text-[var(--text-primary)] mb-1" v-text="t('help.confirmReprocessingTitle')"></h3>
<p class="text-sm text-[var(--text-muted)] capitalize">${ reprocessType } reprocessing</p>
</div>
</div>
@@ -1776,33 +2015,33 @@
<i class="fas fa-exclamation-triangle text-amber-600 text-xs"></i>
</div>
<div>
- <p class="text-[var(--text-secondary)] font-medium mb-1">What will happen?</p>
+ <p class="text-[var(--text-secondary)] font-medium mb-1" v-text="t('help.whatWillHappen')"></p>
<p class="text-sm text-[var(--text-muted)]" v-if="reprocessType === 'transcription' && !useAsrEndpoint">
- The audio will be re-transcribed from scratch. This will also regenerate the title and summary based on the new transcription.
+ <span v-text="t('reprocessModal.audioReTranscribedFromScratch')"></span>
</p>
<p class="text-sm text-[var(--text-muted)]" v-else-if="reprocessType === 'transcription' && useAsrEndpoint">
- The audio will be re-transcribed using the ASR endpoint. This includes diarization and will regenerate the title and summary.
+ <span v-text="t('reprocessModal.audioReTranscribedWithAsr')"></span>
</p>
<p class="text-sm text-[var(--text-muted)]" v-else-if="reprocessType === 'summary'">
- A new title and summary will be generated based on the existing transcription.
+ <span v-text="t('reprocessModal.newTitleAndSummary')"></span>
</p>
</div>
</div>
<!-- ASR Options -->
<div v-if="reprocessType === 'transcription' && useAsrEndpoint" class="space-y-4 pt-4 border-t border-[var(--border-primary)]">
- <h4 class="text-md font-semibold text-[var(--text-secondary)]">ASR Options</h4>
+ <h4 class="text-md font-semibold text-[var(--text-secondary)]" v-text="t('help.advancedAsrOptions')"></h4>
<div>
- <label for="asr-language-reprocess" class="block text-sm font-medium text-[var(--text-muted)]">Language</label>
+ <label for="asr-language-reprocess" class="block text-sm font-medium text-[var(--text-muted)]" v-text="t('form.language')"></label>
<input type="text" id="asr-language-reprocess" v-model="asrReprocessOptions.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)]" placeholder="e.g., en, es, zh (optional)">
</div>
<div>
- <label for="asr-min-speakers-reprocess" class="block text-sm font-medium text-[var(--text-muted)]">Min Speakers</label>
- <input type="number" id="asr-min-speakers-reprocess" v-model.number="asrReprocessOptions.min_speakers" 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)]" placeholder="Optional">
+ <label for="asr-min-speakers-reprocess" class="block text-sm font-medium text-[var(--text-muted)]" v-text="t('form.minSpeakers')"></label>
+ <input type="number" id="asr-min-speakers-reprocess" v-model.number="asrReprocessOptions.min_speakers" 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)]" :placeholder="t('form.optional')">
</div>
<div>
- <label for="asr-max-speakers-reprocess" class="block text-sm font-medium text-[var(--text-muted)]">Max Speakers</label>
- <input type="number" id="asr-max-speakers-reprocess" v-model.number="asrReprocessOptions.max_speakers" 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)]" placeholder="Optional">
+ <label for="asr-max-speakers-reprocess" class="block text-sm font-medium text-[var(--text-muted)]" v-text="t('form.maxSpeakers')"></label>
+ <input type="number" id="asr-max-speakers-reprocess" v-model.number="asrReprocessOptions.max_speakers" 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)]" :placeholder="t('form.optional')">
</div>
</div>
@@ -1811,9 +2050,9 @@
<i class="fas fa-clock text-blue-600 text-xs"></i>
</div>
<div>
- <p class="text-[var(--text-secondary)] font-medium mb-1">Processing time</p>
+ <p class="text-[var(--text-secondary)] font-medium mb-1" v-text="t('help.processingTime')"></p>
<p class="text-sm text-[var(--text-muted)]">
- This may take a few minutes to complete. You can continue using the app while processing.
+ <span v-text="t('help.processingTimeDescription')"></span>
</p>
</div>
</div>
@@ -1823,9 +2062,9 @@
<i class="fas fa-info-circle text-red-600 text-xs"></i>
</div>
<div>
- <p class="text-[var(--text-secondary)] font-medium mb-1">Important note</p>
+ <p class="text-[var(--text-secondary)] font-medium mb-1" v-text="t('help.importantNote')"></p>
<p class="text-sm text-[var(--text-muted)]">
- Any manual edits to the transcription, title, or summary will be overwritten.
+ <span v-text="t('reprocessModal.manualEditsOverwritten')"></span>
</p>
</div>
</div>
@@ -1835,9 +2074,9 @@
<i class="fas fa-info-circle text-red-600 text-xs"></i>
</div>
<div>
- <p class="text-[var(--text-secondary)] font-medium mb-1">Important note</p>
+ <p class="text-[var(--text-secondary)] font-medium mb-1" v-text="t('help.importantNote')"></p>
<p class="text-sm text-[var(--text-muted)]">
- Any manual edits to the title or summary will be overwritten.
+ <span v-text="t('reprocessModal.manualEditsOverwrittenSummary')"></span>
</p>
</div>
</div>
@@ -1868,7 +2107,7 @@
<div class="mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-orange-100 dark:bg-orange-800 mb-4">
<i class="fas fa-exclamation-triangle text-2xl text-orange-500 dark:text-orange-300"></i>
</div>
- <h3 class="text-lg font-semibold text-[var(--text-primary)] mb-2">Reset Recording Status?</h3>
+ <h3 class="text-lg font-semibold text-[var(--text-primary)] mb-2" v-text="t('modal.resetStatus')"></h3>
<p class="text-sm text-[var(--text-muted)] mb-6">
This will mark the recording as 'Failed'. This is useful if processing is stuck. You will be able to reprocess it afterwards.
</p>
@@ -1884,14 +2123,14 @@
</div>
</div>
<!-- Simple Transcription Editor Modal -->
- <div v-if="showTextEditorModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4">
+ <div v-if="showTextEditorModal" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
<div class="bg-[var(--bg-secondary)] rounded-lg shadow-xl w-full max-w-2xl max-h-[90vh] flex flex-col">
<div class="p-6 border-b border-[var(--border-primary)]">
- <h3 class="text-lg font-semibold">Edit Transcription</h3>
+ <h3 class="text-lg font-semibold" v-text="t('modal.editTranscription')"></h3>
</div>
<div class="p-6 space-y-4 overflow-y-auto flex-1">
<div>
- <label class="block text-sm font-medium mb-2">Transcription Content</label>
+ <label class="block text-sm font-medium mb-2" v-text="t('transcription.title')"></label>
<textarea v-model="editingTranscriptionContent"
rows="15"
class="w-full px-3 py-2 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-lg focus:outline-none focus:ring-2 focus:ring-[var(--ring-focus)] font-mono text-sm">
@@ -1915,7 +2154,7 @@
<div v-if="showAsrEditorModal" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
<div @click.stop class="bg-[var(--bg-secondary)] rounded-xl shadow-2xl w-full max-w-6xl flex flex-col max-h-[90vh]">
<div class="p-5 border-b border-[var(--border-primary)] flex-shrink-0 flex justify-between items-center">
- <h3 class="text-xl font-bold text-[var(--text-primary)]">Edit ASR Transcription</h3>
+ <h3 class="text-xl font-bold text-[var(--text-primary)]" v-text="t('modal.editAsrTranscription')"></h3>
<button @click="closeAsrEditorModal" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors">
<i class="fas fa-times"></i>
</button>
@@ -1924,11 +2163,11 @@
<table class="min-w-full asr-editor-table">
<thead>
<tr>
- <th class="w-1/4">Speaker</th>
- <th class="w-24">Start</th>
- <th class="w-24">End</th>
- <th>Sentence</th>
- <th class="w-12"><span class="sr-only">Actions</span></th>
+ <th class="w-1/4" v-text="t('help.speakerCount')"></th>
+ <th class="w-24" v-text="t('help.startTime')"></th>
+ <th class="w-24" v-text="t('help.endTime')"></th>
+ <th v-text="t('help.sentence')"></th>
+ <th class="w-12"><span class="sr-only" v-text="t('help.actions')"></span></th>
</tr>
</thead>
<tbody>
@@ -1980,26 +2219,24 @@
</div>
</div>
<div class="bg-[var(--bg-tertiary)] px-6 py-4 flex justify-end space-x-3 border-t border-[var(--border-primary)] flex-shrink-0 rounded-b-xl">
- <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)]">Cancel</button>
- <button @click="saveAsrTranscription" class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700">Save Changes</button>
+ <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" class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700" v-text="t('buttons.saveChanges')"></button>
</div>
</div>
</div>
<!-- Speaker Identification Modal -->
<div v-if="showSpeakerModal" @click="closeSpeakerModal" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
- <div @click.stop class="bg-[var(--bg-secondary)] rounded-xl shadow-2xl w-full max-w-4xl flex flex-col max-h-[90vh]">
+ <div @click.stop @click="closeSpeakerSuggestionsOnClick" class="bg-[var(--bg-secondary)] rounded-xl shadow-2xl w-full max-w-4xl flex flex-col h-[85vh]">
<div class="p-5 border-b border-[var(--border-primary)] flex-shrink-0">
- <h3 class="text-xl font-bold text-[var(--text-primary)]">Identify Speakers</h3>
+ <h3 class="text-xl font-bold text-[var(--text-primary)]" v-text="t('modal.identifySpeakers')"></h3>
<!-- Warning for too many speakers -->
- <div v-if="identifiedSpeakers.length > 8" class="mt-3 p-3 bg-[var(--bg-warn-light)] border border-amber-300 dark:border-amber-800 rounded-lg">
+ <div v-if="modalSpeakers.length > 8" class="mt-3 p-3 bg-[var(--bg-warn-light)] border border-amber-300 dark:border-amber-800 rounded-lg">
<div class="flex items-start">
<i class="fas fa-exclamation-triangle text-[var(--text-warn-strong)] mt-0.5 mr-2"></i>
<div class="text-sm">
- <p class="font-medium text-[var(--text-warn-strong)]">More speakers than available colors</p>
- <p class="text-[var(--text-warn-strong)] mt-1">
- You have ${ identifiedSpeakers.length } speakers, but only 8 unique colors are available.
- Colors will repeat after the 8th speaker.
+ <p class="font-medium text-[var(--text-warn-strong)]" v-text="t('help.moreSpeakersThanColors')"></p>
+ <p class="text-[var(--text-warn-strong)] mt-1" v-text="t('help.youHaveXSpeakers', { count: modalSpeakers.length })">
</p>
</div>
</div>
@@ -2007,19 +2244,23 @@
</div>
<div class="flex-grow flex overflow-hidden modal-content">
<div class="w-1/3 p-6 space-y-4 overflow-y-auto custom-scrollbar border-r border-[var(--border-primary)]">
- <div v-for="(speaker, index) in identifiedSpeakers" :key="`${selectedRecording.id}-speaker-${index}-${speaker}`" class="space-y-3">
+ <div v-for="(speaker, index) in modalSpeakers" :key="`${selectedRecording.id}-speaker-${index}-${speaker}`" class="space-y-3">
<!-- Speaker label with color indicator and "This is Me" checkbox on same line -->
<div class="flex items-center justify-between">
<div class="flex items-center space-x-2">
<div :class="speakerMap[speaker].color" class="w-4 h-4 rounded-full border border-white/30 shadow-sm flex-shrink-0"></div>
- <span class="font-mono text-sm text-[var(--text-muted)]">${ speaker }</span>
+ <span class="font-mono text-sm text-[var(--text-muted)]">${ speakerDisplayMap[speaker] || speaker }</span>
<span v-if="index >= 8" class="text-xs text-[var(--text-warn-strong)] bg-[var(--bg-warn-light)] px-2 py-0.5 rounded-full" title="Color repeats from speaker ${ ((index % 8) + 1) }">
Repeat
</span>
</div>
- <label class="flex items-center text-sm text-[var(--text-muted)]">
- <input type="checkbox" v-model="speakerMap[speaker].isMe" @focus="highlightSpeakerInTranscript(speaker)" @blur="clearSpeakerHighlight" class="h-4 w-4 rounded border-gray-300 text-blue-600 focus:ring-blue-500">
- <span class="ml-2">Me</span>
+ <label class="flex items-center text-sm text-[var(--text-muted)] cursor-pointer hover:text-[var(--text-primary)] transition-colors">
+ <input type="checkbox"
+ v-model="speakerMap[speaker].isMe"
+ @focus="highlightSpeakerInTranscript(speaker)"
+ @blur="clearSpeakerHighlight"
+ class="speaker-checkbox">
+ <span class="ml-2 select-none" v-text="t('help.me')"></span>
</label>
</div>
@@ -2030,10 +2271,10 @@
v-model="speakerMap[speaker].name"
@input="searchSpeakers($event.target.value, speaker)"
@focus="focusSpeaker(speaker)"
- @blur="blurSpeaker(); setTimeout(() => speakerSuggestions[speaker] = [], 200)"
+ @blur="blurSpeaker()"
:disabled="speakerMap[speaker].isMe"
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)] sm:text-sm bg-[var(--bg-input)] text-[var(--text-primary)] disabled:bg-[var(--bg-tertiary)] disabled:text-[var(--text-muted)] disabled:cursor-not-allowed"
- :placeholder="speakerMap[speaker].isMe ? 'Me' : 'Enter name for ' + speaker"
+ :placeholder="speakerMap[speaker].isMe ? t('help.me') : t('help.enterNameFor') + ' ' + (speakerDisplayMap[speaker] || speaker)"
autocomplete="off">
<!-- Loading indicator -->
@@ -2041,13 +2282,14 @@
<i class="fas fa-spinner fa-spin text-[var(--text-muted)] text-sm"></i>
</div>
- <!-- Suggestions dropdown -->
- <div v-if="speakerSuggestions[speaker] && speakerSuggestions[speaker].length > 0 && !speakerMap[speaker].isMe"
+ <!-- Suggestions dropdown - Only show when this input is active -->
+ <div v-if="activeSpeakerInput === speaker && speakerSuggestions[speaker] && speakerSuggestions[speaker].length > 0 && !speakerMap[speaker].isMe"
+ @click.stop
class="absolute z-10 w-full mt-1 bg-[var(--bg-secondary)] border border-[var(--border-primary)] rounded-md shadow-lg max-h-48 overflow-y-auto">
<div class="py-1">
<div v-for="suggestion in speakerSuggestions[speaker]"
:key="suggestion.id"
- @mousedown="selectSpeakerSuggestion(speaker, suggestion)"
+ @click="selectSpeakerSuggestion(speaker, suggestion)"
class="px-3 py-2 cursor-pointer hover:bg-[var(--bg-tertiary)] flex items-center justify-between">
<div class="flex-grow">
<div class="text-sm font-medium text-[var(--text-primary)]">${ suggestion.name }</div>
@@ -2068,7 +2310,7 @@
<div class="w-2/3 p-6 flex flex-col overflow-hidden">
<!-- Audio Player Section -->
<div class="mb-4 flex-shrink-0">
- <h4 class="font-semibold text-[var(--text-secondary)] mb-2">Audio Player</h4>
+ <h4 class="font-semibold text-[var(--text-secondary)] mb-2" v-text="t('help.audioPlayer')"></h4>
<div class="audio-player-container">
<audio controls class="w-full speaker-modal-transcript" :key="selectedRecording.id" :src="'/audio/' + selectedRecording.id" :volume="playerVolume" @volumechange="onPlayerVolumeChange">
Your browser does not support the audio element.
@@ -2088,19 +2330,47 @@
</div>
<div v-else v-html="highlightedTranscript"></div>
</div>
+
+ <!-- Speaker Navigation Controls (at bottom) - Always visible for consistent height -->
+ <div class="mt-3 p-3 bg-[var(--bg-tertiary)] rounded-lg flex items-center justify-between flex-shrink-0" :class="{'opacity-50': !highlightedSpeaker || speakerGroups.length <= 1}">
+ <div class="flex items-center space-x-2">
+ <span class="text-sm text-[var(--text-muted)]">
+ Navigate <span class="font-semibold">${ speakerDisplayMap[highlightedSpeaker] || highlightedSpeaker }</span> groups:
+ </span>
+ <span class="text-xs text-[var(--text-muted)]">
+ (${ currentSpeakerGroupIndex + 1 } of ${ speakerGroups.length })
+ </span>
+ </div>
+ <div class="flex items-center space-x-2">
+ <button @mousedown.prevent @click="navigateToPrevSpeakerGroup"
+ class="px-3 py-1.5 bg-[var(--bg-secondary)] hover:bg-[var(--bg-primary)] text-[var(--text-secondary)] rounded-md border border-[var(--border-secondary)] transition-all flex items-center text-sm disabled:opacity-50 disabled:cursor-not-allowed"
+ :disabled="!highlightedSpeaker || speakerGroups.length <= 1">
+ <i class="fas fa-chevron-up mr-1.5"></i>
+ Previous
+ </button>
+ <button @mousedown.prevent @click="navigateToNextSpeakerGroup"
+ class="px-3 py-1.5 bg-[var(--bg-secondary)] hover:bg-[var(--bg-primary)] text-[var(--text-secondary)] rounded-md border border-[var(--border-secondary)] transition-all flex items-center text-sm disabled:opacity-50 disabled:cursor-not-allowed"
+ :disabled="!highlightedSpeaker || speakerGroups.length <= 1">
+ Next
+ <i class="fas fa-chevron-down ml-1.5"></i>
+ </button>
+ </div>
+ </div>
</div>
</div>
<div class="p-4 bg-[var(--bg-tertiary)] border-t border-[var(--border-primary)] flex-shrink-0">
- <label class="flex items-center text-sm text-[var(--text-muted)]">
- <input type="checkbox" v-model="regenerateSummaryAfterSpeakerUpdate" class="h-4 w-4 rounded border-gray-300 text-blue-600 focus:ring-blue-500">
- <span class="ml-2">Regenerate summary after updating names</span>
+ <label class="flex items-center text-sm text-[var(--text-muted)] cursor-pointer hover:text-[var(--text-primary)] transition-colors">
+ <input type="checkbox"
+ v-model="regenerateSummaryAfterSpeakerUpdate"
+ class="speaker-checkbox">
+ <span class="ml-2 select-none" v-text="t('help.regenerateSummaryAfterNames')"></span>
</label>
</div>
<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">
<div>
<button @click="autoIdentifySpeakers" class="px-4 py-2 bg-purple-600 text-white rounded-lg hover:bg-purple-700 flex items-center" :disabled="isAutoIdentifying">
<i class="fas fa-magic mr-2"></i>
- <span v-if="!isAutoIdentifying">Auto Identify</span>
+ <span v-if="!isAutoIdentifying" v-text="t('help.autoIdentify')"></span>
<span v-else>
<i class="fas fa-spinner fa-spin mr-2"></i>
Identifying...
@@ -2108,7 +2378,7 @@
</button>
</div>
<div class="flex space-x-3">
- <button @click="closeSpeakerModal" 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)]">Cancel</button>
+ <button @click="closeSpeakerModal" 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="saveSpeakerNames"
:disabled="!hasSpeakerNames"
@@ -2129,7 +2399,7 @@
<div class="flex items-start gap-3">
<i class="fas fa-exclamation-circle text-lg flex-shrink-0 mt-0.5"></i>
<div class="flex-1">
- <p class="font-medium">Error</p>
+ <p class="font-medium" v-text="t('common.error')"></p>
<p class="text-sm opacity-90">${globalError}</p>
</div>
<button @click="globalError = null"
@@ -2140,7 +2410,7 @@
</div>
<!-- System Audio Help Modal -->
- <div v-if="showSystemAudioHelp" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
+ <div v-if="showSystemAudioHelp" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 backdrop-blur-sm">
<div class="bg-[var(--bg-secondary)] w-full h-full md:h-auto md:max-h-[90vh] md:w-full md:max-w-2xl md:rounded-lg md:shadow-xl flex flex-col">
<div class="p-4 border-b border-[var(--border-primary)] flex-shrink-0">
<div class="flex items-center justify-between">
@@ -2155,23 +2425,22 @@
</div>
<div class="p-6 space-y-6 overflow-y-auto flex-grow">
<div class="bg-[var(--bg-tertiary)] p-4 rounded-lg border border-[var(--border-primary)]">
- <h4 class="font-medium text-[var(--text-primary)] mb-2">How to Record System Audio</h4>
- <p class="text-sm text-[var(--text-muted)]">
- To capture audio from meetings or other apps, you must share your screen or a browser tab.
+ <h4 class="font-medium text-[var(--text-primary)] mb-2" v-text="t('help.howToRecordSystemAudio')"></h4>
+ <p class="text-sm text-[var(--text-muted)]" v-text="t('help.toCaptureAudioFromMeetings')">
</p>
<ol class="list-decimal list-inside space-y-2 text-sm text-[var(--text-secondary)] mt-3">
- <li>Click "Record System Audio" or "Record Both".</li>
- <li>In the popup, choose <strong>"Entire Screen"</strong> or a <strong>specific browser tab</strong>.</li>
- <li>Make sure to check the box that says <strong>"Share tab audio"</strong> or <strong>"Share system audio"</strong>.</li>
+ <li v-text="t('help.recordSystemSteps1')"></li>
+ <li><span v-text="t('help.recordSystemSteps2')"></span> <strong>"${ t('help.entireScreen') }"</strong> or a <strong v-text="t('help.specificBrowserTab')"></strong>.</li>
+ <li><span v-text="t('help.recordSystemSteps3')"></span> <strong>"${ t('help.shareTabAudio') }"</strong> or <strong>"${ t('help.shareSystemAudio') }"</strong>.</li>
</ol>
- <p class="text-xs text-amber-600 dark:text-amber-400 mt-3"><i class="fas fa-exclamation-triangle mr-1"></i>Sharing a "Window" will not capture audio.</p>
+ <p class="text-xs text-amber-600 dark:text-amber-400 mt-3"><i class="fas fa-exclamation-triangle mr-1"></i><span v-text="t('help.sharingWindowNoAudio')"></span></p>
</div>
<div class="space-y-4">
- <h4 class="font-medium text-[var(--text-primary)]">Troubleshooting</h4>
+ <h4 class="font-medium text-[var(--text-primary)]" v-text="t('help.troubleshooting')"></h4>
<div class="bg-[var(--bg-tertiary)] p-4 rounded-lg border border-[var(--border-primary)]">
- <h5 class="font-medium text-[var(--text-primary)] mb-2">Why isn't it working?</h5>
+ <h5 class="font-medium text-[var(--text-primary)] mb-2" v-text="t('help.whyNotWorking')"></h5>
<p class="text-sm text-[var(--text-muted)]">
System audio recording requires a secure (HTTPS) connection. If you are developing locally, you may need to enable a browser flag.
</p>
@@ -2208,7 +2477,7 @@
<!-- Other Browsers -->
<div v-else class="bg-[var(--bg-tertiary)] p-4 rounded-lg border border-[var(--border-primary)]">
- <h5 class="font-medium text-[var(--text-primary)] mb-2">Unsupported Browser</h5>
+ <h5 class="font-medium text-[var(--text-primary)] mb-2" v-text="t('help.unsupportedBrowser')"></h5>
<p class="text-sm text-[var(--text-muted)]">
For the best experience with system audio recording, we recommend using Google Chrome.
</p>
@@ -2224,42 +2493,88 @@
</div>
</div>
+ <!-- Recording Disclaimer Modal -->
+ <div v-if="showRecordingDisclaimerModal" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
+ <div class="bg-[var(--bg-secondary)] rounded-lg shadow-xl w-full max-w-2xl max-h-[80vh] flex flex-col overflow-hidden">
+ <div class="flex-shrink-0 p-6 border-b border-[var(--border-primary)]">
+ <div class="flex items-center gap-3">
+ <i class="fas fa-info-circle text-2xl text-[var(--text-accent)]"></i>
+ <h3 class="text-xl font-semibold text-[var(--text-primary)]" v-text="t('modal.recordingNotice')"></h3>
+ </div>
+ </div>
+ <div class="flex-1 overflow-y-auto p-6">
+ <!-- Render markdown content -->
+ <div class="prose prose-sm max-w-none text-[var(--text-secondary)]"
+ style="color: var(--text-secondary); line-height: 1.6;">
+ <div v-html="recordingDisclaimer"></div>
+ </div>
+ </div>
+ <div class="flex-shrink-0 p-6 border-t border-[var(--border-primary)] bg-[var(--bg-tertiary)] rounded-b-lg">
+ <div class="flex justify-end gap-3">
+ <button @click="cancelRecordingDisclaimer"
+ class="px-6 py-2 text-[var(--text-secondary)] hover:bg-[var(--bg-secondary)] rounded-lg transition-colors border border-[var(--border-secondary)]">
+ Cancel
+ </button>
+ <button @click="acceptRecordingDisclaimer"
+ class="px-6 py-2 bg-[var(--bg-accent)] text-white rounded-lg hover:bg-[var(--bg-accent-hover)] transition-colors">
+ <i class="fas fa-microphone mr-2"></i>
+ Start Recording
+ </button>
+ </div>
+ </div>
+ </div>
+ </div>
+
<!-- Toast Container -->
<div id="toastContainer" class="fixed bottom-4 right-4 z-50 space-y-2"></div>
<!-- Share Modal -->
- <div v-if="showShareModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4">
+ <div v-if="showShareModal" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
<div class="bg-[var(--bg-secondary)] rounded-lg shadow-xl w-full max-w-lg">
<div class="p-6 border-b border-[var(--border-primary)]">
- <h3 class="text-lg font-semibold">Share Recording</h3>
+ <h3 class="text-lg font-semibold" v-text="t('modal.shareRecording')"></h3>
</div>
<div class="p-6 space-y-4">
- <p class="text-sm text-[var(--text-muted)]">Create a public link to share this recording. Sharing is only available on secure (HTTPS) connections.</p>
+ <p class="text-sm text-[var(--text-muted)]" v-text="t('help.createPublicLink')"></p>
<div v-if="!generatedShareLink">
<div class="flex items-center mb-2">
<input type="checkbox" v-model="shareOptions.share_summary" id="share_summary" class="h-4 w-4 rounded border-gray-300 text-blue-600 focus:ring-blue-500">
- <label for="share_summary" class="ml-2 block text-sm text-[var(--text-secondary)]">Share Summary</label>
+ <label for="share_summary" class="ml-2 block text-sm text-[var(--text-secondary)]" v-text="t('form.shareSummary')"></label>
</div>
<div class="flex items-center">
<input type="checkbox" v-model="shareOptions.share_notes" id="share_notes" class="h-4 w-4 rounded border-gray-300 text-blue-600 focus:ring-blue-500">
- <label for="share_notes" class="ml-2 block text-sm text-[var(--text-secondary)]">Share Notes</label>
+ <label for="share_notes" class="ml-2 block text-sm text-[var(--text-secondary)]" v-text="t('form.shareNotes')"></label>
</div>
</div>
<div v-if="generatedShareLink" class="mt-4">
- <label class="block text-sm font-medium mb-2">Shareable Link</label>
+ <div v-if="existingShareDetected" class="mb-3 p-3 bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded-lg">
+ <div class="flex items-start gap-2">
+ <i class="fas fa-info-circle text-blue-600 dark:text-blue-400 mt-0.5"></i>
+ <div class="text-sm text-blue-800 dark:text-blue-300">
+ <p class="font-medium">Using existing share link</p>
+ <p class="mt-1 text-xs opacity-90">This recording was already shared. The same link has been retrieved.</p>
+ </div>
+ </div>
+ </div>
+ <label class="block text-sm font-medium mb-2" v-text="t('form.shareableLink')"></label>
<div class="flex items-center gap-2">
<input :value="generatedShareLink" readonly class="w-full px-3 py-2 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-lg">
<button @click="copyShareLink" class="px-3 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-lg hover:bg-[var(--bg-button-hover)]">
<i class="fas fa-copy"></i>
</button>
</div>
+ <div v-if="existingShareDetected" class="mt-3">
+ <button @click="createShare(true)" class="text-sm text-[var(--text-accent)] hover:underline">
+ <i class="fas fa-plus-circle mr-1"></i>Create a new share link instead
+ </button>
+ </div>
</div>
</div>
<div class="p-6 border-t border-[var(--border-primary)] flex justify-end gap-3">
<button @click="closeShareModal" class="px-4 py-2 text-[var(--text-secondary)] hover:bg-[var(--bg-tertiary)] rounded-lg transition-colors">
Cancel
</button>
- <button @click="createShare" v-if="!generatedShareLink" class="px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-lg hover:bg-[var(--bg-button-hover)] transition-colors">
+ <button @click="createShare()" v-if="!generatedShareLink" class="px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-lg hover:bg-[var(--bg-button-hover)] transition-colors">
Create Link
</button>
</div>
@@ -2267,10 +2582,10 @@
</div>
<!-- Shares List Modal -->
- <div v-if="showSharesListModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4">
+ <div v-if="showSharesListModal" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
<div class="bg-[var(--bg-secondary)] rounded-lg shadow-xl w-full max-w-2xl max-h-[80vh] flex flex-col">
<div class="p-6 border-b border-[var(--border-primary)] flex justify-between items-center">
- <h3 class="text-lg font-semibold">My Shared Transcripts</h3>
+ <h3 class="text-lg font-semibold" v-text="t('modal.sharedTranscripts')"></h3>
<button @click="closeSharesList" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors">
<i class="fas fa-times"></i>
</button>
@@ -2280,25 +2595,25 @@
<i class="fas fa-spinner fa-spin text-2xl text-[var(--text-muted)]"></i>
</div>
<div v-else-if="userShares.length === 0" class="text-center text-[var(--text-muted)]">
- You haven't shared any transcripts yet.
+ <span v-text="t('sharedTranscripts.noSharedTranscripts')"></span>
</div>
<div v-else class="space-y-3">
<div v-for="share in userShares" :key="share.id" class="bg-[var(--bg-tertiary)] p-4 rounded-lg border border-[var(--border-primary)]">
<div class="flex justify-between items-start">
<div>
<p class="font-semibold">${share.recording_title}</p>
- <p class="text-sm text-[var(--text-muted)]">Shared on: ${share.created_at}</p>
+ <p class="text-sm text-[var(--text-muted)]">${ t('help.sharedOn') }: ${share.created_at}</p>
</div>
- <button @click="deleteShare(share.id)" class="text-red-500 hover:text-red-700 p-1"><i class="fas fa-trash"></i></button>
+ <button @click="confirmDeleteShare(share)" class="text-red-500 hover:text-red-700 p-1"><i class="fas fa-trash"></i></button>
</div>
<div class="mt-4 flex items-center gap-4">
<label class="flex items-center text-sm">
<input type="checkbox" v-model="share.share_summary" @change="updateShare(share)" class="h-4 w-4 rounded border-gray-300 text-blue-600 focus:ring-blue-500">
- <span class="ml-2">Share Summary</span>
+ <span class="ml-2" v-text="t('form.shareSummary')"></span>
</label>
<label class="flex items-center text-sm">
<input type="checkbox" v-model="share.share_notes" @change="updateShare(share)" class="h-4 w-4 rounded border-gray-300 text-blue-600 focus:ring-blue-500">
- <span class="ml-2">Share Notes</span>
+ <span class="ml-2" v-text="t('form.shareNotes')"></span>
</label>
</div>
<div class="mt-4">
@@ -2309,11 +2624,62 @@
</div>
</div>
</div>
+
+ <!-- Share Delete Confirmation Modal -->
+ <div v-if="showShareDeleteModal" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
+ <div class="bg-[var(--bg-secondary)] rounded-xl shadow-2xl w-full max-w-md transform transition-all duration-300 ease-in-out">
+ <!-- Header with gradient background -->
+ <div class="bg-gradient-to-r from-red-500 to-red-600 p-5 rounded-t-xl">
+ <div class="flex items-center">
+ <div class="w-12 h-12 bg-white/20 backdrop-blur rounded-full flex items-center justify-center mr-4">
+ <i class="fas fa-trash-alt text-white text-lg"></i>
+ </div>
+ <div>
+ <h3 class="text-lg font-bold text-white">Delete Shared Link</h3>
+ <p class="text-red-100 text-sm mt-1">This action cannot be undone</p>
+ </div>
+ </div>
+ </div>
+
+ <!-- Content -->
+ <div class="p-6">
+ <p class="text-[var(--text-secondary)] mb-4">
+ Are you sure you want to delete the shared link for:
+ </p>
+ <div v-if="shareToDelete" class="bg-[var(--bg-tertiary)] p-3 rounded-lg border border-[var(--border-primary)]">
+ <p class="font-medium text-[var(--text-primary)]">${shareToDelete.recording_title}</p>
+ <p class="text-sm text-[var(--text-muted)] mt-1">Shared on: ${shareToDelete.created_at}</p>
+ </div>
+ <div class="mt-4 p-3 bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg">
+ <div class="flex items-start">
+ <i class="fas fa-exclamation-triangle text-red-600 dark:text-red-400 mt-0.5 mr-2"></i>
+ <p class="text-sm text-red-800 dark:text-red-300">
+ The share link will be permanently deleted and anyone with this link will no longer be able to access the recording.
+ </p>
+ </div>
+ </div>
+ </div>
+
+ <!-- Actions -->
+ <div class="p-6 pt-0 flex justify-end gap-3">
+ <button @click="cancelDeleteShare" class="px-4 py-2 text-[var(--text-secondary)] hover:bg-[var(--bg-tertiary)] rounded-lg transition-colors">
+ Cancel
+ </button>
+ <button @click="deleteShare" class="px-4 py-2 bg-red-600 text-white rounded-lg hover:bg-red-700 transition-colors flex items-center gap-2">
+ <i class="fas fa-trash"></i>
+ Delete Share Link
+ </button>
+ </div>
+ </div>
+ </div>
</div>
<!-- CSRF Token Management -->
<script src="{{ url_for('static', filename='js/csrf-refresh.js') }}"></script>
+ <!-- i18n System -->
+ <script src="{{ url_for('static', filename='js/i18n.js') }}"></script>
+
<!-- Vue.js Application Script -->
<script src="{{ url_for('static', filename='js/app.js') }}"></script>
</body>
diff --git a/templates/inquire.html b/templates/inquire.html
index f475b8f4..812e1110 100644
--- a/templates/inquire.html
+++ b/templates/inquire.html
@@ -5,11 +5,16 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>Inquire Mode - Speakr</title>
- <script src="https://cdn.tailwindcss.com"></script>
- <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
- <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
+ <!-- All dependencies bundled locally for offline support -->
+<script src="{{ url_for('static', filename='vendor/js/tailwind.min.js') }}"></script>
+ <!-- All dependencies bundled locally for offline support -->
+<script src="{{ url_for('static', filename='vendor/js/vue.global.js') }}"></script>
+ <!-- All dependencies bundled locally for offline support -->
+<script src="{{ url_for('static', filename='vendor/js/marked.min.js') }}"></script>
+ <!-- All dependencies bundled locally for offline support -->
+<link rel="stylesheet" href="{{ url_for('static', filename='vendor/css/fontawesome.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
+ <script src="{{ url_for('static', filename='js/i18n.js') }}"></script>
<link rel="icon" href="{{ url_for('static', filename='img/favicon.ico') }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ url_for('static', filename='img/icon-32x32.png') }}">
<script>
@@ -144,33 +149,52 @@
<a href="/"
class="px-3 py-1.5 bg-[var(--bg-button)] text-[var(--text-button)] rounded-lg hover:bg-[var(--bg-button-hover)] transition-colors text-sm flex items-center gap-2">
<i class="fas fa-plus"></i>
- <span class="hidden sm:inline">New Recording</span>
+ <span class="hidden sm:inline">${t('nav.newRecording')}</span>
</a>
<!-- User menu -->
{% if current_user.is_authenticated %}
<div class="relative">
<button @click="isUserMenuOpen = !isUserMenuOpen"
- class="flex items-center gap-2 p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors duration-200">
+ class="flex items-center gap-1 sm:gap-2 p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors duration-200"
+ :title="t('admin.userMenu')">
<i class="fas fa-user-circle text-lg"></i>
- <span class="hidden sm:inline">{{ current_user.name if current_user.name else current_user.username }}</span>
- <i class="fas fa-chevron-down text-xs"></i>
+ <span class="hidden lg:inline text-sm">{{ current_user.name if current_user.is_authenticated else 'User' }}</span>
+ <i class="fas fa-chevron-down text-xs hidden sm:inline"></i>
</button>
<!-- User dropdown -->
<div v-if="isUserMenuOpen"
class="absolute right-0 mt-2 w-56 bg-[var(--bg-secondary)] border border-[var(--border-primary)] rounded-lg shadow-lg z-50">
+ <a href="/" class="block px-4 py-2 hover:bg-[var(--bg-tertiary)] transition-colors">
+ <i class="fas fa-home mr-2 w-4 text-center"></i><span v-text="t('nav.home')"></span>
+ </a>
<a href="/account" class="block px-4 py-2 hover:bg-[var(--bg-tertiary)] transition-colors">
- <i class="fas fa-cog mr-2 w-4 text-center"></i>Account Settings
+ <i class="fas fa-cog mr-2 w-4 text-center"></i><span v-text="t('nav.settings')"></span>
+ </a>
+ <a href="/account#tags" class="block px-4 py-2 hover:bg-[var(--bg-tertiary)] transition-colors">
+ <i class="fas fa-tags mr-2 w-4 text-center"></i><span v-text="t('help.tagManagement')"></span>
</a>
+ <button @click="openSharesList" class="w-full text-left px-4 py-2 hover:bg-[var(--bg-tertiary)] transition-colors flex items-center">
+ <i class="fas fa-share-alt mr-2 w-4 text-center"></i><span v-text="t('modal.sharedTranscripts')"></span>
+ </button>
{% if current_user.is_admin %}
<a href="/admin" class="block px-4 py-2 hover:bg-[var(--bg-tertiary)] transition-colors">
- <i class="fas fa-shield-alt mr-2 w-4 text-center"></i>Admin Dashboard
+ <i class="fas fa-user-shield mr-2 w-4 text-center"></i><span v-text="t('admin.title')"></span>
</a>
{% endif %}
- <div class="border-t border-[var(--border-primary)] my-2"></div>
- <a href="/logout" class="block px-4 py-2 hover:bg-[var(--bg-tertiary)] text-red-500 transition-colors">
- <i class="fas fa-sign-out-alt mr-2 w-4 text-center"></i>Sign Out
+ <div class="border-t border-[var(--border-primary)] my-1"></div>
+ <button @click="toggleDarkMode" class="w-full text-left px-4 py-2 hover:bg-[var(--bg-tertiary)] transition-colors flex items-center">
+ <i :class="isDarkMode ? 'fas fa-sun' : 'fas fa-moon'" class="mr-2 w-4 text-center"></i>
+ <span v-text="isDarkMode ? t('nav.lightMode') : t('nav.darkMode')"></span>
+ </button>
+ <button @click="openColorSchemeModal" class="w-full text-left px-4 py-2 hover:bg-[var(--bg-tertiary)] transition-colors flex items-center">
+ <i class="fas fa-palette mr-2 w-4 text-center"></i>
+ <span v-text="t('modal.colorScheme')"></span>
+ </button>
+ <div class="border-t border-[var(--border-primary)] my-1"></div>
+ <a href="/logout" class="block px-4 py-2 hover:bg-[var(--bg-tertiary)] transition-colors">
+ <i class="fas fa-sign-out-alt mr-2 w-4 text-center"></i><span v-text="t('nav.signOut')"></span>
</a>
</div>
</div>
@@ -193,7 +217,7 @@
]">
<!-- Mobile close button -->
<div class="lg:hidden flex items-center justify-between p-4 border-b border-[var(--border-primary)]">
- <h2 class="text-lg font-bold">Filters</h2>
+ <h2 class="text-lg font-bold">${t('inquire.filters')}</h2>
<button @click="isMobileSidebarOpen = false"
class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors">
<i class="fas fa-times text-lg"></i>
@@ -203,20 +227,20 @@
<div class="flex-1 overflow-y-auto custom-scrollbar">
<div class="p-4 space-y-4">
<div class="flex items-center justify-between lg:block">
- <h2 class="text-lg font-bold hidden lg:block">Filters</h2>
+ <h2 class="text-lg font-bold hidden lg:block">${t('inquire.filters')}</h2>
<button @click="clearInquireFilters" class="text-xs px-3 py-1 bg-[var(--bg-button)] text-[var(--text-button)] rounded-md hover:bg-[var(--bg-button-hover)] transition-colors flex items-center gap-1 w-full lg:w-auto justify-center">
- <i class="fas fa-times"></i> Clear All
+ <i class="fas fa-times"></i> ${t('inquire.clearAll')}
</button>
</div>
<!-- Tag Filters -->
<div class="bg-[var(--bg-primary)] rounded-lg border border-[var(--border-secondary)] p-3">
<h3 class="font-medium mb-2 flex items-center text-[var(--text-primary)]">
- <i class="fas fa-tags mr-2 text-[var(--text-accent)]"></i>Tags
+ <i class="fas fa-tags mr-2 text-[var(--text-accent)]"></i>${t('inquire.tags')}
</h3>
<!-- Tag search input -->
<div class="mb-3">
- <input type="text" v-model="tagSearchQuery" placeholder="Search tags..."
+ <input type="text" v-model="tagSearchQuery" :placeholder="t('form.searchTags')"
class="w-full px-2 py-1 text-sm bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded text-[var(--text-primary)] focus:border-[var(--border-focus)] focus:ring-1 focus:ring-[var(--border-focus)] transition-colors">
</div>
<div class="space-y-1 max-h-40 overflow-y-auto custom-scrollbar">
@@ -232,12 +256,12 @@
<!-- Speaker Filters -->
<div class="bg-[var(--bg-primary)] rounded-lg border border-[var(--border-secondary)] p-3">
<h3 class="font-medium mb-2 flex items-center text-[var(--text-primary)]">
- <i class="fas fa-users mr-2 text-[var(--text-accent)]"></i>Speakers
+ <i class="fas fa-users mr-2 text-[var(--text-accent)]"></i>${t('inquire.speakers')}
</h3>
<div v-if="availableFilters.speakers.length > 0">
<!-- Speaker search input -->
<div class="mb-3">
- <input type="text" v-model="speakerSearchQuery" placeholder="Search speakers..."
+ <input type="text" v-model="speakerSearchQuery" :placeholder="t('form.searchSpeakers')"
class="w-full px-2 py-1 text-sm bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded text-[var(--text-primary)] focus:border-[var(--border-focus)] focus:ring-1 focus:ring-[var(--border-focus)] transition-colors">
</div>
<div class="space-y-1 max-h-40 overflow-y-auto custom-scrollbar">
@@ -252,23 +276,23 @@
<!-- No Speakers Message -->
<div v-if="availableFilters.speakers.length === 0" class="text-center py-3">
<i class="fas fa-users text-xl text-[var(--text-muted)] mb-2"></i>
- <p class="text-sm text-[var(--text-muted)]">No speaker data available</p>
- <p class="text-xs text-[var(--text-muted)] mt-1">Speaker identification requires recordings with multiple speakers</p>
+ <p class="text-sm text-[var(--text-muted)]">${t('inquire.noSpeakerData')}</p>
+ <p class="text-xs text-[var(--text-muted)] mt-1">${t('inquire.speakerRequirement')}</p>
</div>
</div>
<!-- Date Range Filters -->
<div class="bg-[var(--bg-primary)] rounded-lg border border-[var(--border-secondary)] p-3">
<h3 class="font-medium mb-2 flex items-center text-[var(--text-primary)]">
- <i class="fas fa-calendar mr-2 text-[var(--text-accent)]"></i>Date Range
+ <i class="fas fa-calendar mr-2 text-[var(--text-accent)]"></i>${t('inquire.dateRange')}
</h3>
<div class="space-y-2">
<div>
- <label class="block text-xs text-[var(--text-muted)] mb-1 font-medium">From</label>
+ <label class="block text-xs text-[var(--text-muted)] mb-1 font-medium">${t('inquire.from')}</label>
<input type="date" v-model="inquireFilters.dateFrom" class="w-full px-2 py-1 text-sm bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded text-[var(--text-primary)] focus:border-[var(--border-focus)] focus:ring-1 focus:ring-[var(--border-focus)] transition-colors">
</div>
<div>
- <label class="block text-xs text-[var(--text-muted)] mb-1 font-medium">To</label>
+ <label class="block text-xs text-[var(--text-muted)] mb-1 font-medium">${t('inquire.to')}</label>
<input type="date" v-model="inquireFilters.dateTo" class="w-full px-2 py-1 text-sm bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded text-[var(--text-primary)] focus:border-[var(--border-focus)] focus:ring-1 focus:ring-[var(--border-focus)] transition-colors">
</div>
</div>
@@ -296,17 +320,17 @@
<!-- Active Filters Summary -->
<div v-if="hasActiveFilters" class="bg-[var(--bg-primary)] rounded-lg border border-[var(--border-secondary)] p-3">
<h4 class="text-sm font-medium mb-2 text-[var(--text-muted)] flex items-center">
- <i class="fas fa-filter mr-2"></i>Active Filters:
+ <i class="fas fa-filter mr-2"></i>${t('inquire.activeFilters')}
</h4>
<div class="space-y-1 text-xs">
<div v-if="inquireFilters.selectedTags.length" class="flex items-center px-2 py-1 bg-[var(--bg-tertiary)] rounded text-[var(--text-secondary)]">
- <span><i class="fas fa-tags mr-1"></i>${inquireFilters.selectedTags.length} tags</span>
+ <span><i class="fas fa-tags mr-1"></i>${inquireFilters.selectedTags.length} ${t('inquire.tagsCount')}</span>
</div>
<div v-if="inquireFilters.selectedSpeakers.length" class="flex items-center px-2 py-1 bg-[var(--bg-tertiary)] rounded text-[var(--text-secondary)]">
- <span><i class="fas fa-users mr-1"></i>${inquireFilters.selectedSpeakers.length} speakers</span>
+ <span><i class="fas fa-users mr-1"></i>${inquireFilters.selectedSpeakers.length} ${t('inquire.speakersCount')}</span>
</div>
<div v-if="inquireFilters.dateFrom || inquireFilters.dateTo" class="flex items-center px-2 py-1 bg-[var(--bg-tertiary)] rounded text-[var(--text-secondary)]">
- <span><i class="fas fa-calendar mr-1"></i>Date range active</span>
+ <span><i class="fas fa-calendar mr-1"></i>${t('inquire.dateRangeActive')}</span>
</div>
</div>
</div>
@@ -326,17 +350,17 @@
<path stroke-linecap="round" stroke-linejoin="round" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" />
</svg>
</div>
- <h2 class="text-2xl font-bold mb-4">Ask Questions About Your Transcriptions</h2>
+ <h2 class="text-2xl font-bold mb-4">${t('inquire.askQuestions')}</h2>
<p class="text-[var(--text-muted)] max-w-lg mx-auto mb-6">
- Select filters on the left to narrow down your transcriptions, then ask questions to get insights from your recordings.
+ ${t('inquire.selectFilters')}
</p>
<div class="bg-[var(--bg-tertiary)] rounded-xl p-4 max-w-md mx-auto">
- <h4 class="font-medium mb-2">Example Questions:</h4>
+ <h4 class="font-medium mb-2">${t('inquire.exampleQuestions')}</h4>
<ul class="text-sm text-[var(--text-secondary)] space-y-1 text-left">
- <li>"What action items were discussed?"</li>
- <li>"When did we decide to change the timeline?"</li>
- <li>"What concerns were raised about the budget?"</li>
- <li>"Who was responsible for the marketing tasks?"</li>
+ <li>${t('inquire.exampleQuestion1')}</li>
+ <li>${t('inquire.exampleQuestion2')}</li>
+ <li>${t('inquire.exampleQuestion3')}</li>
+ <li>${t('inquire.exampleQuestion4')}</li>
</ul>
</div>
</div>
@@ -381,7 +405,7 @@
<div class="flex gap-4">
<textarea v-model="inquireChatInput"
@keydown="handleInquireChatKeydown"
- placeholder="Ask questions about your filtered transcriptions..."
+ :placeholder="t('inquire.placeholder')"
class="flex-1 px-4 py-3 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-xl resize-none focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] focus:border-transparent text-[var(--text-primary)]"
rows="3"></textarea>
<button @click="sendInquireChatMessage"
@@ -391,9 +415,9 @@
</button>
</div>
<div class="text-xs text-[var(--text-muted)] mt-3 flex items-center justify-between">
- <span>Press Enter to send • Ctrl+Enter for new line</span>
+ <span>${t('inquire.sendHint')}</span>
<span v-if="hasActiveFilters" class="text-[var(--text-accent)]">
- <i class="fas fa-filter mr-1"></i>Filters active
+ <i class="fas fa-filter mr-1"></i>${t('inquire.filtersActive')}
</span>
</div>
</div>
@@ -402,17 +426,122 @@
<!-- Toast Container -->
<div id="toastContainer" class="fixed bottom-4 right-4 z-50 space-y-2"></div>
+ <!-- Color Scheme Modal -->
+ <div v-if="showColorSchemeModal" class="color-scheme-modal" @click.self="closeColorSchemeModal">
+ <div class="color-scheme-modal-content">
+ <div class="color-scheme-header">
+ <h2 class="color-scheme-title">
+ <i class="fas fa-palette"></i>
+ Choose Color Scheme
+ </h2>
+ <p class="color-scheme-subtitle" v-text="t('colorScheme.subtitle')"></p>
+ </div>
+
+ <div class="color-scheme-body">
+ <div class="color-scheme-section">
+ <h3 class="color-scheme-section-title">
+ <i :class="isDarkMode ? 'fas fa-moon' : 'fas fa-sun'"></i>
+ ${isDarkMode ? 'Dark' : 'Light'} Themes
+ </h3>
+ <div class="color-scheme-grid">
+ <div v-for="scheme in colorSchemes[isDarkMode ? 'dark' : 'light']"
+ :key="scheme.id"
+ @click="selectColorScheme(scheme.id)"
+ :class="['color-scheme-option', currentColorScheme === scheme.id ? 'active' : '']">
+ <div class="color-scheme-preview">
+ <div :class="`preview-${isDarkMode ? 'dark-' : ''}${scheme.id}-primary color-scheme-preview-segment`"></div>
+ <div :class="`preview-${isDarkMode ? 'dark-' : ''}${scheme.id}-secondary color-scheme-preview-segment`"></div>
+ <div :class="`preview-${isDarkMode ? 'dark-' : ''}${scheme.id}-tertiary color-scheme-preview-segment`"></div>
+ </div>
+ <div class="color-scheme-name">${scheme.name}</div>
+ <div class="color-scheme-description">${scheme.description}</div>
+ <div v-if="currentColorScheme === scheme.id" class="color-scheme-check">
+ <i class="fas fa-check"></i>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div class="color-scheme-footer">
+ <button @click="resetColorScheme" class="color-scheme-reset-btn">
+ <i class="fas fa-undo mr-2"></i>Reset to Default
+ </button>
+ <button @click="closeColorSchemeModal" class="color-scheme-close-btn">
+ Close
+ </button>
+ </div>
+ </div>
+ </div>
+
+ <!-- Shares List Modal -->
+ <div v-if="showSharesListModal" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
+ <div class="bg-[var(--bg-secondary)] rounded-lg shadow-xl w-full max-w-2xl max-h-[80vh] flex flex-col">
+ <div class="p-6 border-b border-[var(--border-primary)] flex justify-between items-center">
+ <h3 class="text-lg font-semibold" v-text="t('modal.sharedTranscripts')"></h3>
+ <button @click="closeSharesList" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors">
+ <i class="fas fa-times"></i>
+ </button>
+ </div>
+ <div class="p-6 space-y-4 overflow-y-auto">
+ <div v-if="isLoadingShares" class="text-center">
+ <i class="fas fa-spinner fa-spin text-2xl text-[var(--text-muted)]"></i>
+ </div>
+ <div v-else-if="userShares.length === 0" class="text-center text-[var(--text-muted)]">
+ <span v-text="t('sharedTranscripts.noSharedTranscripts')"></span>
+ </div>
+ <div v-else class="space-y-3">
+ <div v-for="share in userShares" :key="share.id" class="bg-[var(--bg-tertiary)] p-4 rounded-lg border border-[var(--border-primary)]">
+ <div class="flex justify-between items-start">
+ <div>
+ <p class="font-semibold">${share.recording_title}</p>
+ <p class="text-sm text-[var(--text-muted)]">${ t('help.sharedOn') }: ${share.created_at}</p>
+ </div>
+ <button @click="deleteShare(share.id)" class="text-red-500 hover:text-red-700 p-1"><i class="fas fa-trash"></i></button>
+ </div>
+ <div class="mt-4">
+ <input :value="'{{ request.url_root }}share/' + share.public_id" readonly class="w-full px-3 py-2 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-lg text-sm">
+ <button @click="copyShareLink(share.public_id)" class="mt-2 px-3 py-1 bg-[var(--bg-button)] text-[var(--text-button)] rounded-lg text-sm hover:bg-[var(--bg-button-hover)]">
+ <i class="fas fa-copy mr-2"></i>Copy Link
+ </button>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
</div>
<!-- CSRF Token Management -->
<script src="{{ url_for('static', filename='js/csrf-refresh.js') }}"></script>
+ <!-- Shared Components -->
+ <script src="{{ url_for('static', filename='js/shared-components.js') }}"></script>
+
<!-- Inquire Mode Vue App -->
<script>
const { createApp, ref, reactive, computed, onMounted, onUnmounted, nextTick } = Vue;
- document.addEventListener('DOMContentLoaded', () => {
+ // Initialize i18n
+ let t = (key) => key; // Default fallback
+
+ async function initializeI18n() {
+ const userLanguage = "{{ user_language }}";
+
+ // Initialize the global i18n instance
+ if (window.i18n) {
+ await window.i18n.init(userLanguage);
+
+ // Create a shorthand translation function
+ t = (key, params) => window.i18n.t(key, params);
+ }
+ }
+
+ document.addEventListener('DOMContentLoaded', async () => {
+ await initializeI18n();
+
const csrfToken = ref(document.querySelector('meta[name="csrf-token"]')?.getAttribute('content'));
+ const i18nInstance = window.i18n;
createApp({
setup() {
@@ -429,7 +558,29 @@
const tagSearchQuery = ref('');
const speakerSearchQuery = ref('');
- const isUserMenuOpen = ref(false);
+ // Use shared components
+ const { isDarkMode, toggleDarkMode, initializeDarkMode } = window.SharedComponents.useDarkMode();
+ const {
+ showColorSchemeModal,
+ currentColorScheme,
+ colorSchemes,
+ openColorSchemeModal,
+ closeColorSchemeModal,
+ selectColorScheme,
+ resetColorScheme,
+ applyColorScheme,
+ initializeColorScheme
+ } = window.SharedComponents.useColorScheme();
+ const {
+ showSharesListModal,
+ userShares,
+ isLoadingShares,
+ openSharesList,
+ closeSharesList,
+ copyShareLink,
+ deleteShare
+ } = window.SharedComponents.useSharesModal();
+ const { isUserMenuOpen, toggleUserMenu, closeUserMenu } = window.SharedComponents.useUserMenu();
const isMobileSidebarOpen = ref(false);
const availableFilters = reactive({
@@ -630,12 +781,6 @@
}
};
- // Close user menu when clicking outside
- const handleClickOutside = (event) => {
- if (isUserMenuOpen.value && !event.target.closest('.relative')) {
- isUserMenuOpen.value = false;
- }
- };
// --- Theme Management (from main app.js) ---
const applyThemeFromStorage = () => {
@@ -660,11 +805,19 @@
// --- Lifecycle ---
onMounted(async () => {
+ // Initialize dark mode and color scheme
+ initializeDarkMode();
+ initializeColorScheme(isDarkMode.value);
+
+ // Watch dark mode changes to update color scheme
+ Vue.watch(isDarkMode, (newValue) => {
+ initializeColorScheme(newValue);
+ });
+
// Apply theme from localStorage on page load
applyThemeFromStorage();
loadAvailableFilters();
- document.addEventListener('click', handleClickOutside);
// Add scroll listener for smart auto-scroll after DOM is ready
await nextTick();
@@ -674,13 +827,15 @@
});
onUnmounted(() => {
- document.removeEventListener('click', handleClickOutside);
if (inquireMessagesRef.value) {
inquireMessagesRef.value.removeEventListener('scroll', handleScroll);
}
});
return {
+ // i18n - bind to i18n instance to maintain context
+ t: (key, params) => i18nInstance ? i18nInstance.t(key, params) : key,
+
// State
inquireFilters,
availableFilters,
@@ -696,6 +851,28 @@
tagSearchQuery,
speakerSearchQuery,
+ // Dark Mode
+ isDarkMode,
+ toggleDarkMode,
+
+ // Color Scheme
+ showColorSchemeModal,
+ currentColorScheme,
+ colorSchemes,
+ openColorSchemeModal,
+ closeColorSchemeModal,
+ selectColorScheme,
+ resetColorScheme,
+
+ // Shares Modal
+ showSharesListModal,
+ userShares,
+ isLoadingShares,
+ openSharesList,
+ closeSharesList,
+ copyShareLink,
+ deleteShare,
+
// Computed
hasActiveFilters,
filteredTags,
diff --git a/templates/login.html b/templates/login.html
index a7b080f7..eecb9886 100644
--- a/templates/login.html
+++ b/templates/login.html
@@ -5,8 +5,10 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ title }} - Speakr</title>
<link rel="icon" href="{{ url_for('static', filename='img/favicon.ico') }}" type="image/svg+xml">
- <script src="https://cdn.tailwindcss.com"></script>
- <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
+ <!-- All dependencies bundled locally for offline support -->
+<script src="{{ url_for('static', filename='vendor/js/tailwind.min.js') }}"></script>
+ <!-- All dependencies bundled locally for offline support -->
+<link rel="stylesheet" href="{{ url_for('static', filename='vendor/css/fontawesome.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
<script>
// Function to apply the theme based on localStorage
diff --git a/templates/register.html b/templates/register.html
index 05c6a5d7..53030c92 100644
--- a/templates/register.html
+++ b/templates/register.html
@@ -5,8 +5,10 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ title }} - Speakr</title>
<link rel="icon" href="{{ url_for('static', filename='img/favicon.ico') }}" type="image/svg+xml">
- <script src="https://cdn.tailwindcss.com"></script>
- <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
+ <!-- All dependencies bundled locally for offline support -->
+<script src="{{ url_for('static', filename='vendor/js/tailwind.min.js') }}"></script>
+ <!-- All dependencies bundled locally for offline support -->
+<link rel="stylesheet" href="{{ url_for('static', filename='vendor/css/fontawesome.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
<script>
// Function to apply the theme based on localStorage
diff --git a/templates/share.html b/templates/share.html
index a4a3158a..09e7cc7a 100644
--- a/templates/share.html
+++ b/templates/share.html
@@ -4,11 +4,15 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Shared Recording - {{ recording.title }}</title>
- <script src="https://cdn.tailwindcss.com"></script>
+ <!-- All dependencies bundled locally for offline support -->
+<script src="{{ url_for('static', filename='vendor/js/tailwind.min.js') }}"></script>
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
- <script src="https://cdn.jsdelivr.net/npm/vue@3/dist/vue.global.prod.js"></script>
- <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
+ <!-- All dependencies bundled locally for offline support -->
+<script src="{{ url_for('static', filename='vendor/js/vue.global.prod.js') }}"></script>
+ <!-- All dependencies bundled locally for offline support -->
+<script src="{{ url_for('static', filename='vendor/js/axios.min.js') }}"></script>
+ <!-- All dependencies bundled locally for offline support -->
+<link rel="stylesheet" href="{{ url_for('static', filename='vendor/css/fontawesome.min.css') }}">
<script>
tailwind.config = {
darkMode: 'class',
@@ -72,7 +76,7 @@
<div class="flex items-center gap-2">
<button @click="toggleDarkMode"
class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors"
- title="Toggle theme">
+ :title="t('buttons.toggleTheme')">
<i :class="isDarkMode ? 'fas fa-sun' : 'fas fa-moon'"></i>
</button>
</div>
diff --git a/test-docs-build.sh b/test-docs-build.sh
new file mode 100755
index 00000000..f59b9c48
--- /dev/null
+++ b/test-docs-build.sh
@@ -0,0 +1,44 @@
+#!/bin/bash
+
+# Test script to validate documentation build locally
+# This mimics what the GitHub Actions workflow does
+
+set -e
+
+echo "Testing documentation build..."
+
+# Check if we're in the right directory
+if [ ! -f "docs/mkdocs.yml" ]; then
+ echo "Error: docs/mkdocs.yml not found. Run this script from the project root."
+ exit 1
+fi
+
+# Create a virtual environment for testing
+echo "Creating virtual environment..."
+python3 -m venv .venv-docs-test
+source .venv-docs-test/bin/activate
+
+# Install dependencies
+echo "Installing dependencies..."
+pip install --upgrade pip
+pip install -r docs/requirements-docs.txt
+
+# Build the documentation
+echo "Building documentation..."
+cd docs
+export CI=true # Enable git plugin in CI mode
+mkdocs build --strict --site-dir _test_site
+
+echo ""
+echo "✅ Documentation build successful!"
+echo "Built site is in: docs/_test_site"
+echo ""
+echo "To serve locally for testing:"
+echo " cd docs && mkdocs serve"
+
+# Cleanup
+cd ..
+deactivate
+rm -rf .venv-docs-test
+
+echo "Cleanup complete."
\ No newline at end of file