refactor(i18n): streamline i18n initialization and update translation methods

This commit is contained in:
Will Miao
2025-08-31 09:03:06 +08:00
parent 408a435b71
commit b2c4efab45
11 changed files with 196 additions and 282 deletions

View File

@@ -1,7 +1,6 @@
// Statistics page functionality
import { appCore } from './core.js';
import { showToast } from './utils/uiHelpers.js';
import { initializePageI18n } from './utils/i18nHelpers.js';
// Chart.js import (assuming it's available globally or via CDN)
// If Chart.js isn't available, we'll need to add it to the project
@@ -27,9 +26,6 @@ class StatisticsManager {
// Initialize charts and visualizations
this.initializeVisualizations();
// Initialize i18n for the page
initializePageI18n();
this.initialized = true;
}