fix: add missing t() import and fix init order
- app.js: import { t } alongside initI18n, move initI18n() before UI.initTheme()
- sidebar.js: add import { t } from ./i18n.js
- These fix ReferenceError: t is not defined on startup
This commit is contained in:
@@ -5,6 +5,7 @@ import { populateCustomDropdown, TabManager, closeMobileSidebar, ContextMenuMana
|
||||
import { _populateRecentVaultFilter, switchSidebarTab } from './config.js';
|
||||
import { el, icon, getVaultIcon, smallBadge, attachTreeItemActionButton, attachTreeItemLongPress, showWelcome, appendHighlightedText } from './viewer.js';
|
||||
import { performAdvancedSearch } from './search.js';
|
||||
import { t } from './i18n.js';
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Vault context switching
|
||||
|
||||
Reference in New Issue
Block a user