feat(i18n): expand Life OS to ten locales

This commit is contained in:
Codex committed 2026-09-28 20:26:39 +08:00
1 parent a88a7f550f
commit 87276a051e
25 files changed
+6080 -87

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@
return state.tasksBoard;
};
const persist = data => { const state = sys(); state.tasksBoard = data; save('lifeos_system', state); renderAll(); };
const dateLabel = value => value ? new Intl.DateTimeFormat(lang() === 'zh' ? 'zh-CN' : 'en-US', { month: 'short', day: 'numeric', year: 'numeric' }).format(new Date(`${value}T12:00:00`)) : t('noDate');
const dateLabel = value => value ? new Intl.DateTimeFormat(LifeI18n.locale(), { month: 'short', day: 'numeric', year: 'numeric' }).format(new Date(`${value}T12:00:00`)) : t('noDate');
const isOverdue = task => !task.done && task.dueDate && task.dueDate < day();
function renderTasks(container) {