Skip to content

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

Python

Localize the Stats tab label itself — desktop right-rail tab strip and mobile More-menu both used a hard-coded English 'Stats' span where Summary/Notes/Events were already using t('xxx.title'); content inside the tab was already localized in the previous commit but the tab BUTTON wasn't, so users on non-English locales saw localized table headers under an English tab name; both sites now use t('stats.title') which resolves through the locale keys already added in 29d11fe

Murtaza Nasiref214641dde8
diff --git a/templates/components/detail/desktop-right-panel.html b/templates/components/detail/desktop-right-panel.html
index d4ed3e8d..bb62ca2d 100644
--- a/templates/components/detail/desktop-right-panel.html
+++ b/templates/components/detail/desktop-right-panel.html
@@ -26,7 +26,7 @@
@click="selectedTab = 'stats'"
class="tab"
:class="{'is-active': selectedTab === 'stats'}">
- <span>Stats</span>
+ <span>${ t('stats.title') }</span>
<span class="tab__count">${ recordingStats.total.speakers }</span>
</button>
<button v-if="selectedRecording.events && selectedRecording.events.length > 0"
diff --git a/templates/components/detail/tab-navigation.html b/templates/components/detail/tab-navigation.html
index f1f4ad7b..6b178f79 100644
--- a/templates/components/detail/tab-navigation.html
+++ b/templates/components/detail/tab-navigation.html
@@ -71,7 +71,7 @@
class="w-full flex items-center gap-3 px-3 py-3 rounded-md hover:bg-[var(--bg-tertiary)] transition-colors"
:class="mobileTab === 'stats' ? 'text-[var(--text-accent)]' : 'text-[var(--text-primary)]'">
<i class="fas fa-chart-bar w-5 text-center"></i>
- <span class="font-medium">Stats</span>
+ <span class="font-medium" v-text="t('stats.title')"></span>
<span class="ml-auto pill-status pill-status--info">${ recordingStats.total.speakers }</span>
</button>
<button v-if="selectedRecording && selectedRecording.events && selectedRecording.events.length > 0"