Repository navigation
feat(i18n): the sign-in page and the in-app language menu offer one list, every interface language - #36040
Conversation
Both now list every platform locale table language; the app's own locale list only decides which rows carry "App content shows in the default language". The profile page's language card reads the same list and shows the same line for a chosen language the app does not ship. Claude-Session: https://claude.ai/code/session_01L6bhgTB7jMdUGcVwaMo3CH Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgTB7jMdUGcVwaMo3CH Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Posted 2026-11-21T10:43Z. The brief handed to the isolated declaration-face reviewer for PR #36040 (owed by the changeset's Contract review brief — PR #36040 @
|
|
repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U 席位核对 — ACCEPT (L1-a)维护者速读这个 PR 按裁决 A 做:登录页、头像菜单里的语言菜单、个人资料页的语言卡,三处都列出全部 11 种界面语言。应用自己的内容(对象、字段、视图名称)没有翻译的语言照样能选,只在那一行下面加一行小字「应用内容显示为默认语言」。登录页还没有读过应用信息,所以不加小字。在登录页选了德语的人,登录后菜单里仍能看到德语,并且德语仍是勾选状态。 我核过以下几点:
没有需要修的问题。下面记了一个小问题和一个行为变化,供知悉。座位已裁定的两条观察(已存语言优先、手机德语头像菜单超宽 #36041)我核对过证据,属实,确实不在本 PR 内。 Head reviewed: What holds
Nit (does not block)
Observation (no change asked)
Landing terms
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Contract reviewServed-tier: Face: declaration ( Gate verdicts (check-runs on the head): every run concluded ① Derived judgmentsPublic-surface changes of
Findings:
No must-fix, no should-fix. ② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Seat landing · 2026-11-21T10:49Z · The b1-CX thread 5 PR for #35425: the avatar menu, the sign-in page and the profile page's language card offer the same list, all 11 interface languages (the maintainer's ruling 7056785432, option A). When the app's own list is known and does not cover a language, its row says 「应用内容显示为默认语言」. Signed out, the app list is unknown, so the sign-in page lists the 11 without the line. |
Requested by Sales · project thread
repo:objectstack#1 · os-sales · session_01L6bhgTB7jMdUGcVwaMo3CH
Fixes #35425
Part of epic #34571 (area b1-CX). Maintainer ruling 7056785432, option A: 「两处都列全部 11 种」. Flow: dev-thread rule (the card thread builds itself; L1 at L1-a, the seat runs the declaration L2).
What changes
@object-ui/i18nprovider.offerableLanguagesis now every platform locale table language (11 today), whatever the app ships, and nevernull. A new context field,appContentLanguages, carries the table languages the app's own/api/v1/i18n/localeslist covers, ornullwhen not known (in flight, noloadLocaleswiring, signed out, a failed read, or an answer naming no table language). Theprovisionalself-heal still judges a stored value against the table, so an out-of-table code (th) is still reverted and purged.LocaleSwitcher(the sign-in page footer and the account menu are this one component) lists all 11. When the app list is known and leaves a language out, that row carries one muted line:console.localeSwitcher.appContentDefault, "App content shows in the default language" / 「应用内容显示为默认语言」 (says "default language", not "English", per the ruling). Signed out nothing is read about the app, so the sign-in page lists the 11 with no line. The menu's width is bounded (max-w-[min(20rem,calc(100vw-2rem))]) so a long hint wraps.appContentLanguages(never for "Use the deployment default", never for a stored out-of-table tag).console.localeSwitcher.appContentDefaultin the ten hand-written packs;zh-Hantregenerated withgen:zh-hant.GET /api/v1/i18n/locales, the language packs, the organisation default-language setting (it does not readofferableLanguages).Why
The account menu offered the platform table ∩ the app's declared locales (four on HotCRM), while the sign-in page, which has no session to ask the app with, offered all eleven. A language picked on the sign-in page (German, Korean) was then missing from the menu after sign-in. The ruling loosens ruling F of #29349 (implemented by #30514): one list everywhere, and the menu hint F rejected is now wanted.
Verification
@object-ui/i18nfull suite: 105 files, 1962 passed / 13 skipped.provider-app-locale-restorerewritten: offered = the table (also while in flight and unwired);appContentLanguages= table ∩ app list in app order, region variants read through the table,nullfor[],['th'], in flight and unwired; a storeddethe app does not ship is kept; a storedthis still reverted.LocaleSwitcher.appLocalesrewritten (12 cases): 11 rows for a four-language app with exactly 7 hints; a sign-in-pagedestays ticked after the app list lands and its hint reads in German; no hint while unknown (in flight,[], failed,['th']);thnever offered; stored spellings one row each, unmarked.ProfilePage*,i18nAfterSignIn-12034,loadLocales*,AuthFooter,LoginPagesuites: 18 files, 139 + 3 newProfilePage.languagecases passed (hint on an unshipped choice, none for the default, none while unknown, none forth).type-checkfor@object-ui/i18nand@object-ui/app-shell: clean. eslint on touched files: 0 errors.pnpm dev:crm -- --fresh(app-crm declaresen+zh-CN) + console on Vite, 1280 and 375, account with no saved language: sign-in menu lists 11 and no hint → pick Deutsch → sign in → interface still German, account menu lists 11 with Deutsch ticked and the German hint on every row but English / 简体中文 → switch to 한국어 and 简体中文, hint follows the interface language. Screenshots in the project's evidence folder (build-seat1/35425/).overlap-check.mjsclean before each push (shares the locale packs with feat(ui): one lighter dialog surface, a single column for short create dialogs, and 「Create more」 (#35980) #36038, fix(ui): a view a read-only package ships hides only Delete in Manage views and opens its view panel read-only #36037, feat(console): a change on a list is a draft, with Discard and Save (#35955 PR 1) #36026, feat(list): a phone list gets its own top row, one row of pills, and bottom-sheet sort, filter and view panels that apply on ✓ #36024: all merge cleanly).Acceptance notes (behaviour this PR does not change):
sys_user.locale) gets that language after sign-in rather than the sign-in-page pick: the pick is saved only when they have none (Sign-in page: a language picked before signing in is not saved as the person's own preference when they have none (save after #30157) #30399). The picked language is still listed and selectable in the menu.Clause-②: yes (widening)
Metadata-protocol: none
@object-ui/i18naddsappContentLanguagesto the i18n context and the locale keyconsole.localeSwitcher.appContentDefault;offerableLanguagesloses| null(an output that is nevernullnow); nothing removed.Human Minimum
packages/specholds no runtime logic. (not touched)pnpm lintpasses.main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed. (not touched)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code