Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
translation fix
Murtaza Nasirc29470298601
diff --git a/static/js/app.js b/static/js/app.jsindex 99221059..e241c6e9 100644--- a/static/js/app.js+++ b/static/js/app.js@@ -5161,7 +5161,7 @@ document.addEventListener('DOMContentLoaded', async () => {delimiters: ['${', '}']});- // Add t function as a global property so it's available in templates immediately+ // Add t function as a global property BEFORE mounting so it's available in templates immediatelyapp.config.globalProperties.t = safeT;// Also add tc for pluralization@@ -5172,6 +5172,15 @@ document.addEventListener('DOMContentLoaded', async () => {return window.i18n.tc(key, count, params);};+ // Provide t and tc to the app+ app.provide('t', safeT);+ app.provide('tc', (key, count, params = {}) => {+ if (!window.i18n || !window.i18n.tc) {+ return key;+ }+ return window.i18n.tc(key, count, params);+ });+// Mount the appapp.mount('#app');});