Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Localize sidebar folder filter (All Recordings/Unfiled) and Sort/Archived/Shared toggles; add sidebar.shared key
Murtaza Nasir7cc6f5e38ff6
diff --git a/static/locales/de.json b/static/locales/de.jsonindex 3ab858ed..74cc952e 100644--- a/static/locales/de.json+++ b/static/locales/de.json@@ -1357,6 +1357,7 @@"sidebar": {"advancedSearch": "Erweiterte Suche","archived": "Archiviert",+ "shared": "Geteilt","archivedRecordings": "Archivierte Aufnahmen","dateRange": "Datumsbereich","filters": "Filter",diff --git a/static/locales/en.json b/static/locales/en.jsonindex 48f1f397..41431735 100644--- a/static/locales/en.json+++ b/static/locales/en.json@@ -1372,6 +1372,7 @@"sidebar": {"advancedSearch": "Advanced Search","archived": "Archived",+ "shared": "Shared","archivedRecordings": "Archived Recordings","dateRange": "Date Range","filters": "Filters",diff --git a/static/locales/zh.json b/static/locales/zh.jsonindex ef00f691..fe53fec4 100644--- a/static/locales/zh.json+++ b/static/locales/zh.json@@ -1355,6 +1355,7 @@"sidebar": {"advancedSearch": "高级搜索","archived": "已归档",+ "shared": "已共享","archivedRecordings": "已归档录音","dateRange": "日期范围","filters": "筛选器",diff --git a/templates/components/detail/mobile-header.html b/templates/components/detail/mobile-header.htmlindex 56ab927c..4842b98d 100644--- a/templates/components/detail/mobile-header.html+++ b/templates/components/detail/mobile-header.html@@ -46,7 +46,7 @@<span class="chip__label" v-text="tag.name"></span></button><span v-if="selectedRecording.is_shared" class="chip bg-purple-500 text-white">- <i class="fas fa-arrow-down"></i><span class="chip__label">Shared</span>+ <i class="fas fa-arrow-down"></i><span class="chip__label" v-text="t('sharing.sharedBadge')"></span></span><span v-if="!selectedRecording.is_shared && selectedRecording.shared_with_count > 0" class="chip bg-indigo-500 text-white"><i class="fas fa-arrow-up"></i><span class="chip__label">${ selectedRecording.shared_with_count }</span>diff --git a/templates/components/sidebar.html b/templates/components/sidebar.htmlindex 5e2fd8cc..766d685e 100644--- a/templates/components/sidebar.html+++ b/templates/components/sidebar.html@@ -15,8 +15,8 @@<select v-model="filterFolder"class="w-full h-9 pl-8 pr-7 text-base font-semibold rounded-md cursor-pointer appearance-none border-0 bg-transparent text-[var(--text-primary)] hover:bg-[var(--bg-tertiary)] transition-colors"style="outline: none !important; box-shadow: none !important; background-image: url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 fill=%27%236B7280%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M8 10.5l-4-4h8l-4 4z%27/%3E%3C/svg%3E'); background-repeat: no-repeat; background-position: right 8px center;">- <option value="">All Recordings</option>- <option value="none">Unfiled</option>+ <option value="">${ t('sidebar.allRecordings') }</option>+ <option value="none">${ t('sidebar.unfiled') }</option><option v-for="folder in availableFolders" :key="folder.id" :value="folder.id">${ folder.name }</option>@@ -232,7 +232,7 @@]":title="sortBy === 'meeting_date' ? t('sidebar.sortByMeetingDate') : t('sidebar.sortByDate')"><i :class="['fas', sortBy === 'meeting_date' ? 'fa-calendar' : 'fa-upload']"></i>- <span class="hidden sm:inline">Sort</span>+ <span class="hidden sm:inline" v-text="t('common.sort')"></span><i class="fas fa-exchange-alt text-[var(--text-muted)] text-[10px]"></i></button>@@ -246,7 +246,7 @@]":title="t('sidebar.archivedRecordings')"><i class="fas fa-archive"></i>- <span class="hidden sm:inline">Archived</span>+ <span class="hidden sm:inline" v-text="t('sidebar.archived')"></span><i :class="['fas text-[10px]', showArchivedRecordings ? 'fa-toggle-on' : 'fa-toggle-off']"></i></button>@@ -260,7 +260,7 @@]":title="t('sidebar.sharedWithMe')"><i class="fas fa-users"></i>- <span class="hidden sm:inline">Shared</span>+ <span class="hidden sm:inline" v-text="t('sidebar.shared')"></span><i :class="['fas text-[10px]', showSharedWithMe ? 'fa-toggle-on' : 'fa-toggle-off']"></i></button></div>