Skip to content

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

Python

Speaker modal: fix regenerate-summary checkbox i18n key — I used t('help.regenerateSummaryAfterUpdating') in the rewrite but the actual key in all 7 locale files is help.regenerateSummaryAfterNames; that's why the user was seeing the raw key text instead of the translated string; SW cache bumped to v9

Murtaza Nasir7ccf1112bf5c
diff --git a/static/sw.js b/static/sw.js
index 39413448..2b606310 100644
--- a/static/sw.js
+++ b/static/sw.js
@@ -4,7 +4,7 @@
// stale code even after a hard refresh. Forgetting to bump this was what
// made the speaker-modal scroll fixes appear to do nothing: the SW kept
// serving the broken pre-fix app.modular.js.
-const CACHE_NAME = 'Speakr-cache-v8';
+const CACHE_NAME = 'Speakr-cache-v9';
const ASSETS_TO_CACHE = [
'/',
'/static/offline.html',
diff --git a/templates/modals/speaker-modal.html b/templates/modals/speaker-modal.html
index b23d63a3..abe436ec 100644
--- a/templates/modals/speaker-modal.html
+++ b/templates/modals/speaker-modal.html
@@ -351,7 +351,7 @@
<input type="checkbox"
v-model="regenerateSummaryAfterSpeakerUpdate"
class="mr-2 w-4 h-4">
- <span v-text="t('help.regenerateSummaryAfterUpdating')"></span>
+ <span v-text="t('help.regenerateSummaryAfterNames')"></span>
</label>
</div>