diff --git a/web/app.js b/web/app.js index 72435dd..915716c 100644 --- a/web/app.js +++ b/web/app.js @@ -1393,6 +1393,7 @@ function renderTree() { return; } const byId = new Map(S.tasks.map((x) => [x.id, x])); + const i18n = t; // t will be shadowed by the task parameter inside renderNode const renderNode = (t) => { if (vis && !vis.visible.has(t.id)) return ''; const kids = m.get(t.id) || []; @@ -1415,7 +1416,7 @@ function renderTree() { const unmet = t.deps.filter((d) => byId.get(d)?.status !== 'done'); if (!unmet.length) return ''; const depSep2 = i18nState.lang === 'zh' ? '、' : ', '; - return `${icon('deps')} ${t('depsWait', { n: unmet.length })}`; + return `${icon('deps')} ${i18n('depsWait', { n: unmet.length })}`; })()} P${t.priority} ${cplxBadge(t.complexity, t.id)}