feat(i18n): expand Life OS to ten locales
This commit is contained in:
1 parent
a88a7f550f
commit
87276a051e
25 files changed
+6080
-87
No files matched your search
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user