Skip to content

fix(i18n): the Console language menu offers the platform locale table's languages - #31793

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/project-thread-wqp71j
Nov 9, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/project-thread-wqp71j

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Steedos · project thread

Fixes #30514

Clause-②: no (narrowing)
Metadata-protocol: none
Skills-docs: none — the published objectstack-i18n skill never says the Console menu offers a locale outside the platform table, and every supportedLocales example in it is a table language

维护者速读

  • 改了什么:Console 右上角语言菜单只提供平台语言表(11 种)里的语言,并与应用声明的语言取交集。zh-CN 这类旧写法显示成表里的名字(简体中文),同一语言只出现一次,th 这类表外语言不再出现。
  • 为什么改:裁决 F 规定平台只有一张语言表、不分档。此前菜单把应用列表原样照搬:所有自带应用都显示「中文(中国)」,还会提供没有任何界面翻译的 th。
  • 风险与回滚:这是一次收窄,受影响的自带应用为 0 个(examples 三个应用和 HotCRM 只声明表内语言)。已存储 th 的用户会先以 th 启动,应用列表到达后自动回到默认语言。回滚只需 revert 本 PR,无数据迁移。
  • 先看:ui/packages/i18n/src/provider.tsx(offeredTableTags 与自愈判断),ui/packages/app-shell/src/layout/LocaleSwitcher.tsx(勾选),ui/apps/console/src/pages/system/ProfilePage.tsx(存储值读法)。
  • 两分钟验证:cd ui && pnpm exec vitest run packages/app-shell/src/layout/__tests__/LocaleSwitcher.appLocales.test.tsx,预期全部通过,其中 app-crm、app-todo、HotCRM 三种声明都显示表内名称。
  • 需要你做的:无,席位落地(落地前席位需完成契约复审档复核)。

What changes

offerableLanguages (the list the globe menu and the profile page's language card render) is now the platform locale table ∩ the app's locale list:

  • each code the app lists (GET /api/v1/i18n/locales) is read through resolveBuiltInLanguage, which applies the table's read aliases and then shorter prefixes, the same resolution that picks the pack the code renders in;
  • only codes that land on a table tag are kept, as that tag, de-duplicated, in the app's declared order;
  • an app answer with no table language, or no loadLocales wiring, offers the table's 11 tags. An out-of-table key of config.resources no longer adds an entry to that fallback.

Around it:

  • Self-heal. The provisional self-heal (a stored language accepted on the loader's credit) is judged against the offered set, not the raw app list. A stored th still boots, then reverts and is cleared once the list lands, even when the app lists th. The loader's credit and BootstrapLocaleOptions.hasLoader are unchanged (seat amendment 2, option C).
  • Checkmark. LocaleSwitcher compares the session language through resolveBuiltInLanguage, so a session in zh-CN ticks 简体中文.
  • Profile page. ProfilePage reads a stored sys_user.locale spelling as its table tag (zh-CN → zh-Hans). Without that, the exact-match check prepended a stray 中文(中国) option beside 简体中文. A tag the table does not name stays as stored.

What the menu offered before, measured

Probe on origin/main c2bb879: the real I18nProvider with a mocked loadLocales. Step-1 report: #30514 comment 6731426750.

Case loadLocales() answer Before After
1 · no loader (control) none 11 table tags unchanged
2a · table tags en, zh-Hans English, 简体中文 unchanged
2b · app-crm, app-showcase en, zh-CN English, 中文(中国) English, 简体中文
2c · app-todo en, zh-CN, ja-JP …, 日本語 (日本) …, 日本語
2d · HotCRM sales en, zh-CN, ja-JP, es-ES …, Español de España …, Español
3 · out-of-table en, zh-CN, th …, ไทย (no pack) English, 简体中文
4a · alias beside its tag en, zh-CN, zh-Hans two entries for one pack one 简体中文
4b · region variants de-AT, pt-PT, zh-TW, en-GB CLDR names (Português europeu served by pt-BR) de, pt-BR, zh-Hant, en with table labels
5 · app declares nothing the loaded bundle set 11 entries, mixed spellings the 11 table tags

Narrowing census: 0 first-party apps affected

  • supportedLocales declarations: examples/app-crm ['en', 'zh-CN'], examples/app-showcase ['en', 'zh-CN'], examples/app-todo ['en', 'zh-CN', 'ja-JP'], HotCRM src/sales/index.ts ['en', 'zh-CN', 'ja-JP', 'es-ES']. objectstack-ai/gallery declares none.
  • None names a language outside the table, and no example or HotCRM translations file is keyed outside it.
  • 0 in-repo producers pass config.resources to I18nProvider (git grep over ui/apps, ui/packages, ui/examples).

Downstream readers of the offered tag

A pick now writes the table tag (zh-Hans). zh-Hans was already an offered value before this PR, in cases 1, 2a and 5. Each reader accepts it, measured:

  • The html lang attribute. The provider writes document.documentElement.lang = lng, and the end-to-end pin's DOM shows lang="zh-Hans".
  • The locale header the adapter sends. createAuthenticatedFetch copies the html lang attribute into Accept-Language. Both i18n providers resolve a request locale with resolveLocaleAmong, and resolveLocaleAmong('zh-Hans', [en, zh-CN, ja-JP, es-ES, …]) = zh-CN, ja → ja-JP, es → es-ES.
  • What gets stored back to sys_user.locale. The column's locale_bcp47_shape rule (SYS_USER_LOCALE_TAG_PATTERN) accepts zh-Hans, zh-Hant and pt-BR. The messaging reader uses the same shape, and its bundle ladder is the same resolveLocaleAmong.

Why

Ruling F (#29428, of #29349): the platform supports one list of languages, each complete on every surface, with no tiers. Phases 2 and 3 completed the Console packs and the server bundles for the table's 11 languages. This phase makes the menu offer exactly those languages.

Tests

On ui/ as of bbc447f4, from ui/, under scripts/pm/os-verify-lock.sh:

  • packages/i18n/src/__tests__/, packages/app-shell/src/layout/__tests__/LocaleSwitcher*, apps/console/src/pages/system/__tests__/ProfilePage*: Test Files 107/107, Tests 1873 passed, 13 skipped.
  • Consumers of the offered list (app-shell/src/hooks/__tests__/userLocale*, AppHeader*, studio-locale.i18n, console i18nAfterSignIn-12034, loadLocales*, FirstRunChecklist, HomeLayout.searchOpensPalette-12601, sharedInboxFeed.twoSurfaces, plugin-form affordanceGrantMap-12082): 46 files. 45 were green; userLocale-10059 went red as expected and is the edited pin below, and that file now passes 24/24.

New and rewritten pins:

  • LocaleSwitcher.appLocales.test.tsx
    • th is not offered, whether it comes from the app list or from config.resources;
    • the app-crm / app-todo / HotCRM declarations show table labels, once each;
    • zh-CN beside zh-Hans is one entry;
    • a session stored as zh-CN ticks 简体中文.
  • provider-app-locale-restore.test.tsx
    • a stored th boots, then reverts and is purged once the list lands;
    • a stored zh-CN stays and is offered as zh-Hans;
    • table ∩ app list as tags in app order; region variants;
    • the table fallback for an app listing no table language;
    • CONTROL: no loader offers the 11 table tags.
  • ProfilePage.language.test.tsx (new top-level describe)
    • a stored zh-CN is one option with nothing to save;
    • a stored th is still shown.

Edited pin, approved by the seat: userLocale-10059.test.tsx "renders the offered variant for a bare column, end to end". A zh column with loadLocales ['en','zh-CN'] now shows zh-Hans (before: zh-CN). The offered entry is now the table tag; the pack is the same.

Ablation of the canonicalizing step (offeredTableTags pushes the raw code instead of its table tag), through scripts/ablation-replace.mjs:

  • the anchor went x1 → x0, and the blob went c7299ca5 → 2551b42e;
  • 11 tests failed across provider-app-locale-restore and LocaleSwitcher.appLocales (Tests 11 failed, 22 passed);
  • the restore left the blob equal to HEAD with git diff HEAD empty.

Acceptance notes

  • Ruling F gaps outside this card, carried on Platform locale table (ruling F of #29349): one list of 11 languages in spec, complete on every surface #29428 by the seat:

    • (a) the Studio namespace ships 2 of 11 languages, and zh-Hant resolves to the Simplified catalogue;
    • (b) the built-in emails ship 4 of 11 locales;
    • (c) TranslationConfigSchema accepts an out-of-table supportedLocales entry.

    This PR adds no language anywhere. It only removes entries.

  • localeLabel's Intl.DisplayNames branch is now reached only for a code outside the table, which the menu no longer offers. It is left in place: it is exported and still named by its own tests.

Verification

  • node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 36 commands. All 36 were run and exited 0, and --ran reconciles 36 derived / 36 run / 0 NOT-MEASURED. The PR-body gates (check-changeset-no-major, check-adr-0087-registration, check-closing-keyword-parity, check-partof-closing-keyword) ran against this body and exited 0.
  • pnpm --filter @object-ui/i18n run type-check exited 0. The app-shell and console type-checks are left to CI's Type Check UI (they need the whole ui/ closure built).
  • Head 96d210d4 merges origin/main. The incoming commits touch no file in this diff, and ui/ is unchanged since bbc447f4, where the suites above ran.
  • The full dogfood battery is owed for the (narrowing) arm. It is running on 96d210d4, and its reading goes in the os-dev-report on i18n phase 4 (locale menu): the Console language menu offers the PLATFORM_LOCALES languages, intersected with an app’s supportedLocales #30514.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (packages/spec untouched)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes. (eslint over the seven touched ui/ files: 0 errors; the repo-wide run is CI's)
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: n/a.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

Generated by Claude Code

…'s languages

The menu reads the app's locale list through the table's read aliases and
offers table tags only: a stored spelling (zh-CN) is its table entry with the
table label, two spellings of one language are one entry, and a code the
table does not name is not offered. The provisional self-heal adjudicates
against the offered set; the checkmark and the profile page's stored value
compare through the same resolution.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jRuaxwwjABz1AXpCeM
… offered tag in the column-apply pin

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jRuaxwwjABz1AXpCeM
…NG banner in its changeset

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jRuaxwwjABz1AXpCeM
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 9, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:ui#3 · zhuangjianguo · session_01QsR2jVEjiYrK7onirxUGyo

Contract-review-claim: session_01QsR2jVEjiYrK7onirxUGyo · head 96d210d · 2026-11-09T04:13Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:ui#3 · zhuangjianguo · session_01QsR2jVEjiYrK7onirxUGyo

Run at CONTRACT_REVIEW_TIER by the seat's isolated read-only sub-agent on the brief record-recognisers --brief-template --face narrowing filled for this head (claim 6732065503). The seat checked the brief, Scope: (all 7 non-prose diff paths) and the independence pair, and adopts this record.

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 96d210d49b1a55d326634552ebb85b23a0e3a46a
Local-runs: none
Scope: ui/packages/i18n/src/provider.tsx, ui/packages/app-shell/src/layout/LocaleSwitcher.tsx, ui/apps/console/src/pages/system/ProfilePage.tsx, ui/packages/i18n/src/tests/provider-app-locale-restore.test.tsx, ui/packages/app-shell/src/layout/tests/LocaleSwitcher.appLocales.test.tsx, ui/packages/app-shell/src/hooks/tests/userLocale-10059.test.tsx, ui/apps/console/src/pages/system/tests/ProfilePage.language.test.tsx + packages/spec/src/system/platform-locales.ts, packages/spec/src/system/i18n-resolver.ts (resolveLocaleAmong), packages/spec/src/system/translation.zod.ts (TranslationConfigSchema.supportedLocales), ui/packages/i18n/src/locales/registry.ts, ui/packages/i18n/src/index.ts, ui/packages/app-shell/src/hooks/useUserLocale.ts, ui/apps/console/src/loadLocales.ts, ui/apps/console/src/loadLanguage.ts, ui/apps/console/src/main.tsx, packages/runtime/src/domains/i18n.ts, packages/core/src/fallbacks/memory-i18n.ts, packages/services/service-i18n/src/file-i18n-adapter.ts, packages/platform-objects/src/identity/sys-user.object.ts, skills/objectstack-i18n/SKILL.md, ui/packages/i18n/README.md (cited files read in the live tree, not reviewed; the changeset .changeset/30514-locale-menu-platform-table.md is a prose face, read for ②)

Inputs read: card #30514 body and all 5 comments (6730644685, 6731352580, 6731426750, 6731445607, 6731472201); PR #31793 body, file list (8 paths) and git diff origin/main...pr-31793; check-runs on the head; #29428 comment 6731450939 (the carrier note the seat's amendment cites). Not read: the dispatch order or any seat conclusion beyond the card thread.

① Derived judgments

Every accept-set and public-surface change the diff implies, judged against the tree:

  1. offerableLanguages accept set, loader wired (provider.tsx L809-820, offeredTableTags L220-227). Before: the app's list filtered by canResolveLanguage(code, config, hasLoader), so every well-formed tag the app listed was offered as spelled. After: each code read through resolveBuiltInLanguage (registry.ts L160-171: platformLocaleTagOf on the whole code, then each shorter prefix), kept only when it lands on a table tag, as that tag, de-duplicated, in app order. Right. The spec's own docblock (platform-locales.ts L5-10, L21-23) declares the table "the one list of languages the platform supports, with no tiers" and "new writes use the table's tags"; the menu now offers exactly that. Three consequences, each right: an out-of-table code (th) is dropped (the narrowing); a read alias (zh-CN, ja-JP, es-ES, en-US) and a prefix spelling (de-AT, zh-Hant-TW) become their table tag; zh-CN beside zh-Hans is one entry.
  2. Fallback set, no loader or empty intersection (L813, L820). Before: BUILT_IN_LANGUAGE_CODES plus every config.resources key outside them. After: BUILT_IN_LANGUAGE_CODES alone. Right, and it is part of the declared narrowing (changeset: "neither is an out-of-table key of config.resources in the offline fallback"). A stored th backed by config.resources.th still boots and stays (it is statically known, L191-194, so it is never provisional); it is simply not in the menu. The persistence pin provider-locale-persistence.test.tsx L101-115 that honours such a stored value is untouched and still holds. 0 in-repo producers pass config.resources (census, verified by the dev; not re-measured).
  3. The provisional self-heal judges against the offered set, not the raw list (L831-849). Right, and it implements claim amendment 2 (option C) exactly: canResolveLanguage, the loader's credit, provisional and BootstrapLocaleOptions.hasLoader (L424-431) are all unchanged. A stored th boots on the credit, the list lands, th is not offered, the language reverts to the default and the slot is cleared (pin: provider-app-locale-restore.test.tsx L51-66). See ④ nit 1 on the includes check.
  4. Public surface of @object-ui/i18n: no export added, removed or retyped. I18nContextValue.offerableLanguages stays readonly string[] | null; I18nProviderProps and BootstrapLocaleOptions are unchanged in shape; resolveBuiltInLanguage was already on the . entry (index.ts L113-121) before this PR. The diff edits the docblocks of offerableLanguages (L488-501) and loadLocales (L591-595) to say what the tree now does. Right. Clause-②: no holds: nothing published widens.
  5. The tick in LocaleSwitcher (L92-96, L125): current = resolveBuiltInLanguage(language) ?? language, compared to table-tag entries. Right: a session running in zh-CN ticks 简体中文, and a session in an out-of-table code ticks nothing, which is the honest rendering.
  6. What a pick now writes, and who reads it. A pick calls useLanguageSelection(code) with the table tag (useUserLocale.ts L678-702), which writes sys_user.locale = 'zh-Hans'. Read in the tree: the column's shape rule SYS_USER_LOCALE_TAG_PATTERN (sys-user.object.ts L42) accepts zh-Hans; the console's loadLanguage('zh-Hans') hits GET /i18n/translations/zh-Hans, where FileI18nAdapter.getTranslations answers {} for an unkeyed locale (file-i18n-adapter.ts L189-191) and the route then resolves it with resolveLocale = resolveLocaleAmong (domains/i18n.ts L257-273, memory-i18n.ts L51-53), whose step 3 maps zh-Hans to a zh-CN bundle key (i18n-resolver.ts L572-579); the /labels route carries the same fallback (L292). Right: a zh-Hans pick on an app keyed zh-CN is served that app's Chinese bundle. zh-Hans was already an offered value in the no-loader case before this PR, so no reader meets it for the first time.
  7. The signed-in column apply (useSignedInUserLocale, useUserLocale.ts L436-545, unchanged): pickRenderableLocale('zh-CN', ['en','zh-Hans']) = zh-Hans through the same ladder, so a stored zh-CN column renders in zh-Hans; the re-apply guard language === resolved holds, so there is no flicker loop, and the column is not rewritten. Right. The edited pin userLocale-10059.test.tsx L349-350 (zh-CN → zh-Hans) follows the pin's own stated rule, "a match answers the OFFERED spelling" (L395-398), so the edit is a consequence of the offered set moving, not a weakening.
  8. ProfilePage stored-value read (L621-633): resolveBuiltInLanguage(raw) ?? raw. Right: a stored zh-CN is shown as its one table entry with Save disabled (dirty false), and a stored out-of-table tag still prepends itself (L648-654), so the control keeps showing the truth. No write happens on read; the column keeps zh-CN until the user saves something else.
  9. localeLabel's Intl.DisplayNames branch (LocaleSwitcher.tsx L63-77) is no longer reached from the menu. Kept, exported, still pinned by its own tests. Right to leave it; it costs nothing and names a code honestly wherever else it is called.

② Semver level

  • Changeset .changeset/30514-locale-menu-platform-table.md: patch on @object-ui/i18n, @object-ui/app-shell, @object-ui/console — the three packages the diff moves, names verified against their package.json. Carries Clause-②: no (narrowing) and Metadata-protocol: none at line start, a BREAKING banner, an ADR-0087 marker (not-required (no-migration-prescription)) and a Migration: paragraph stating there is no replacement spelling for an out-of-table language.
  • AGENTS.md Post-Task Checklist step 3: the level follows the metadata-protocol kind alone; none takes patch, and "a non-protocol change, widening or breaking, ships patch and keeps its BREAKING banner and ADR-0087 disposition". Metadata-protocol: none is correct: TranslationConfigSchema.supportedLocales (translation.zod.ts L2604) accepts the same values, GET /api/v1/i18n/locales reports the same list, and no stored shape is rewritten. So patch with the banner and marker is the prescribed level. Matches.
  • The PR body carries the same two lines and the owed third line Skills-docs: none — REASON (owed because the arm is (narrowing)); the reason is verified: skills/objectstack-i18n/SKILL.md never says the Console menu offers an out-of-table supportedLocales entry, and its examples (L36, L144) name table languages only.
  • Clause-②: no (narrowing) — correct. The diff publishes no widening; it narrows one consumer's accept set, which the arm declares.

③ Boundary flags

  • Author: PR user.login is objectstack-fleet[bot]; no relay author to name.
  • Dev open_questions (step-1 report 6731426750), both answered by claim amendment 1 (6731445607): "land now or hold for the backfills" → A, land now; "amend the surface with ProfilePage.tsx" → A, yes. Both answers are in the tree.
  • Dev deviation "Clause-② measured as no (narrowing) against the claim's no expected" → closed by amendment 1, which replaced the declarations.
  • Claim amendment 2 (6731472201), option C: keep the loader credit and hasLoader, point the self-heal at the offered set → implemented as ruled (① item 3); the withdrawn "retire the credit" arm is correctly absent from the diff.
  • Out-of-scope findings a (Studio namespace 2 of 11, zh-Hant → Simplified), b (built-in emails 4 of 11), c (TranslationConfigSchema accepts an out-of-table supportedLocales entry): the seat said all three are carried on Platform locale table (ruling F of #29349): one list of 11 languages in spec, complete on every surface #29428; verified, carrier note 6731450939 names each with its lane. Nothing is left unrouted.
  • No pm:blocked, hold or freeze follows the triage unblock (6730644685).
  • Check-runs on 96d210d4 as read at review time (2026-11-09 ~04:20Z): Lint & Repo Gates success, TypeScript Type Check success, Build & E2E UI success, Test Core success, Dogfood Regression Gate success, Auto Label success; Lint UI, Type Check UI, Test UI (1/16 … 16/16) in_progress; Build Core, Build Docs, Plan Test Core shards, Test Core (matrix), Temporal Conformance, Dogfood Verify CLI, Dogfood Regression Gate (matrix), UI Published Artifacts skipped. The landing pre-check "all checks green" is the seat's at landing; a red among the in-progress UI checks re-opens this head in the ordinary way.

④ Design judgment

The narrowing itself, read against the published spec on main and the cited code.

Does it take a declared capability away at the consumer? The capability the menu loses is "offer whatever supportedLocales lists, as spelled". That was never declared. platform-locales.ts (L5-10) declares the opposite: one list, no tiers, every surface held to it, and (L21-23) stored spellings are read aliases while new writes use the table's tags. toLocaleDescriptors echoes the code as label, so the server never claimed to name a menu entry. The skill says nothing about the menu. What is declared and still accepted is supportedLocales: ['en', 'th'] at authoring (translation.zod.ts L2604). That is the spec contradicting its own table, and it is an implementation gap on the spec side, to be retired (a refusal at authoring) or completed (the table grows) by domain:spec; it is carried as (c) on #29428. The menu is not where that gap is closed, and this PR does not pretend to close it. So this narrowing makes the spec's own refusal real at the one surface a user meets it, rather than narrowing a declared capability at the consumer.

Tried to break it:

  • A stored spelling that lands on a table tag could be wrongly reverted by the self-heal. No: provisional is set only when isStaticallyKnownLanguage is false (L413), and that predicate is resolveBuiltInLanguage(lang) !== null (registry.ts L177-179), so zh-CN, en-GB, de-AT, zh-Hant-TW are never provisional. Pin L68-76 covers zh-CN.
  • A zh-Hans pick could lose an app's zh-CN-keyed bundle. No: ① item 6, read at the adapter, the route and the ladder.
  • The signed-in apply could loop or flicker. No: ① item 7.
  • config.resources host overlays. An overlay of a table language still applies (createI18n merges it); only an out-of-table key stops being a menu entry, declared in the changeset, 0 producers.
  • An app answering ['pt-PT']. Offered as pt-BR (registry prefix retry pt → pt-BR), the pack that serves it. The spec's table-level alias list refuses pt-PT, but the registry's RFC 4647 retry (i18n phase 2 (Console UI): ui/packages/i18n reads PLATFORM_LOCALES, adds zh-Hant, and moves pack keys to table tags #30511) is pre-existing and the label now names the pack the user gets, which is more honest than the CLDR "Português europeu" the menu showed before.
  • Order and identity. offeredTableTags keeps app order; the no-loader branch returns the frozen constant, a stable identity, so useSignedInUserLocale's offerableKey does not churn.
  • Ablation. Not re-run (read-only); the dev's ablation of the canonicalizing step is reported in the PR body and the pins named there (provider-app-locale-restore L172-196, LocaleSwitcher.appLocales L80-135) assert each clause of the rule, so the step is load-bearing in the tree.

Findings:

  • nit 1 · ui/packages/i18n/src/provider.tsx:834 — if (offerableLanguages.includes(provisional)) return; is now vacuously false: provisional is by construction a code resolveBuiltInLanguage answers null for (L413, L191-194), and every offered entry is a table tag (L220-227, L813, L820). The self-heal therefore reverts every provisional once a non-empty list lands, which is the intended behaviour; the check documents intent and costs nothing. No effect on correctness or contract. Accepted deviation; no fix on this head.
  • nit 2 · ui/apps/console/src/pages/system/ProfilePage.tsx:561-575 — the LanguageCard docblock paragraph "switching the UI language from the globe menu does NOT write this column" predates objectui#10059 and contradicts useLanguageSelection (writes the column, useUserLocale.ts L678-702). Pre-existing, outside this PR's hunks, prose in a code file. Follow-up on the lane; not this head.

No must-fix, no should-fix. Nits alone end the round.

Implemented-by: claude/project-thread-wqp71j
Reviewed-by: subagent-of:session_01QsR2jVEjiYrK7onirxUGyo

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:ui#3 · zhuangjianguo · session_01QsR2jVEjiYrK7onirxUGyo

席位核对 · ACCEPT · 2026-11-09T04:46Z · head 96d210d49b1a55d326634552ebb85b23a0e3a46a

Seat domain:ui#3 reviewed the diff of its own dispatch for #30514. The card thread is session_01QsR2jRuaxwwjABz1AXpCeM, and the os-dev-report is 6732458661. I checked against GitHub, not against the report.

  1. Shape: 8 files, +267 / -84, draft on main, Fixes #30514.
    • provider.tsx: offeredTableTags reads each app code through resolveBuiltInLanguage and keeps only table tags, de-duplicated and in the app's order. With no loader, or an empty intersection, the fallback is the 11 table tags.
    • The provisional self-heal is judged against the offered set. The loader credit and BootstrapLocaleOptions.hasLoader are unchanged, as amendment 2 (option C) asked.
    • LocaleSwitcher.tsx ticks through the same resolution.
    • ProfilePage.tsx reads a stored spelling as its table tag. That is the surface widening in amendment 1.
  2. Premise: on origin/main the menu offered the app list as spelled. Every first-party app showed 中文(中国), and the menu offered an out-of-table th that has no pack. The step-1 report 6731426750 measured this.
  3. Gates / check-runs:
    • 57 runs on this head: 44 success, 13 skipped, 0 red. mergeable_state was clean when read.
    • Dev: 36/36 derived gates exit 0, with --ran reconciled. The four PR-body gates pass.
    • The full dogfood battery, owed for the (narrowing) arm, passes on this head: 440 files / 3653 tests, 0 failures.
    • Ablation of the canonicalizing step turns 11 tests red, and the restore leaves HEAD's blob.
  4. Contract review: CONTRACT_REVIEW_TIER PASS, record 6732179078, on this head. The narrowing face is the whole PR outside prose. It makes ruling F's single table real, and 0 first-party apps are affected.
  5. Tests read:
    • th is not offered, whether it comes from the app list or from config.resources.
    • The app-crm, app-todo and HotCRM declarations read as table labels, once each.
    • zh-CN beside zh-Hans reads as one entry.
    • A stored zh-CN is ticked, and on the profile page it gives one option.
    • A stored th boots, then reverts and is purged.
    • CONTROL: with no loader, the 11 table tags are offered.
    • The edited pin userLocale-10059 now expects zh-Hans. The seat approved this: it is the same pack, spelled as the table tag.
  6. Accepted deviations:
    • CR nit 1: offerableLanguages.includes(provisional) in the self-heal can never be true, because a provisional code never resolves to a table tag. It documents intent, and the behaviour is the intended one.
    • CR nit 2: a pre-existing LanguageCard docblock in ProfilePage.tsx (~L561–575) says the globe menu does not write sys_user.locale, which useLanguageSelection contradicts. It is outside this diff's hunks, and it can ride the next edit of that file.
    • Ruling F gaps a/b/c are carried on Platform locale table (ruling F of #29349): one list of 11 languages in spec, complete on every surface #29428 (6731450939).
  7. Landing:

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 9, 2026 04:47
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge November 9, 2026 04:47
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 9, 2026
Merged via the queue into main with commit a058413 Nov 9, 2026
58 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-wqp71j branch November 9, 2026 05:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

i18n phase 4 (locale menu): the Console language menu offers the PLATFORM_LOCALES languages, intersected with an app’s supportedLocales

1 participant