You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
console boot: generate index.html's inline locale ladder from @objectstack/spec/system at build time (one spelling, not three) #35625
Filing gate: ③ a review finding on PR #35618 (#35534): L1-a ACCEPT 7018186944 recommends this follow-up, non-blocking; the dev noted it in os-dev-report 7017703752 (out_of_scope_findings). It is a child of #35534 and is nested under it.
Reader: domain:ui (console boot, ui/apps/console). Suggested grade: p3 (a drift costs at most one extra request, never a wrong language, and CI already fails on drift).
Dedupe: locale table index.html, resolveLocaleAmong, inline locale ladder. Only #35534 matches.
维护者速读
用户能看到什么变化:无。只是把页面里复制的一份语言匹配规则改成构建时自动生成。
为什么做:同一套语言规则现在写了三处,以后改语言列表时容易漏改一处。
出错会怎样:漏改时最多多发一次语言请求,不会选错语言;现有测试会报错拦住。
要你做什么:无。
Facts
PR fix(console): the language seed's me/localization leaves at parse time, beside discovery #35618 adds startEarlyLanguageSeed to ui/apps/console/index.html. A classic inline script cannot import, so it restates resolveLocaleAmong and the platform tag and alias table from packages/spec/src/system/i18n-resolver.ts (with the platform-locales table). That is the third spelling of the ladder.
It is safe by construction: seedTenantLanguage takes the parse-time request only when its inflightGetKey (URL, credentials, headers including Accept-Language) equals its own; otherwise it asks itself.
The drift matrix in sessionCheckBootDedup.test.tsx runs the inline script against pickPreferredLocale over every tag and alias, so a drift fails CI.
Ask
Generate the inline locale table (and, if practical, the ladder) from @objectstack/spec/system at build time, e.g. a Vite transformIndexHtml step in the console's vite.config.ts, so index.html carries no hand-written copy. Keep the drift matrix green and the one-request pin unchanged. No server change, no endpoint, no language-choice change.
2026-11-19T18:46Z · Closed as not planned at first touch (rules of #35223: a no-effect p3 is not queued). Generating the inline locale ladder from @objectstack/spec/system removes a second spelling but changes nothing a user sees today; the two lists agree. If they drift, the visible symptom is a Bug, filed then.
Activity
objectstack-fleet commentedon Nov 19, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
2026-11-19T18:46Z · Closed as not planned at first touch (rules of #35223: a no-effect p3 is not queued). Generating the inline locale ladder from
@objectstack/spec/systemremoves a second spelling but changes nothing a user sees today; the two lists agree. If they drift, the visible symptom is a Bug, filed then.