diff --git a/frontend/js/i18n.js b/frontend/js/i18n.js index bd85c51..8cfe1d7 100644 --- a/frontend/js/i18n.js +++ b/frontend/js/i18n.js @@ -138,6 +138,13 @@ async function _loadLocaleStrings(locale) { } } +// ── Global exports for non-module scripts (legacy app.js) ────────────────── +window.t = t; +window.tr = tr; +window.getLocale = getLocale; +window.setLocale = setLocale; +window.initI18n = initI18n; + /** Walk the DOM and update every element with a data-i18n* attribute. */ function _applyDOM() { // textContent diff --git a/frontend/js/viewer.js b/frontend/js/viewer.js index 6e88c2a..fbfdfd1 100644 --- a/frontend/js/viewer.js +++ b/frontend/js/viewer.js @@ -932,16 +932,16 @@ export function showWelcome() {
${t('dashboard.pin_hint')}
+ ${t('dashboard.no_bookmarks')} +${t('dashboard.pin_hint')}