fix(i18n): expose redraw hooks to locale controller

This commit is contained in:
Codex committed 2026-09-28 10:26:59 +09:00
1 parent 8cf3a35b6f
commit e98cd2b7ce
7 files changed
+13 -11

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@
const DRAFT_KEY = 'lifeos_today_draft_v1';
const localDay = () => { const d = new Date(); return `${d.getFullYear()}-${String(d.getMonth()+1).padStart(2,'0')}-${String(d.getDate()).padStart(2,'0')}`; };
const escapeHtml = value => String(value || '').replace(/[&<>]/g, char => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' }[char]));
const APP_VERSION = '1.5.6';
const APP_VERSION = '1.5.7';
window.LifeOSVersion = APP_VERSION;
const appIds = ['today', 'timeline', 'museum', 'insights', 'profile', 'tasks', 'calendar', 'system'];
const t = (key, values) => LifeI18n.t(key, values);
@@ -104,7 +104,7 @@
applyingCloud = true;
Object.entries(CLOUD_KEYS).forEach(([field, key]) => localStorage.setItem(key, JSON.stringify(state[field] ?? cloudFallback[field])));
applyingCloud = false;
todayDraft = null; renderIcons(); renderAll(); window.applyLanguage?.();
todayDraft = null; window.renderIcons?.(); window.renderAll?.(); window.applyLanguage?.();
return mergedLocalBoard || systemNeedsMigration;
}
async function uploadCloudState() {