feat(localization): enhance toast messages for better user feedback and localization support

This commit is contained in:
Will Miao
2025-08-31 11:51:28 +08:00
parent a258a18fa4
commit be8edafed0
9 changed files with 268 additions and 50 deletions

View File

@@ -129,7 +129,7 @@ async function initializeVirtualScroll(pageType) {
} catch (error) {
console.error(`Error initializing virtual scroller for ${pageType}:`, error);
showToast(`Failed to initialize ${pageType} page. Please reload.`, 'error');
showToast('toast.general.pageInitFailed', { pageType }, 'error');
// Fallback: show a message in the grid
grid.innerHTML = `