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
Profile language card says the interface language is chosen separately, but it and the globe menu are the same setting #36971
The Language card on the profile page (Account → Profile) tells the user that it only sets the language of notifications and messages, and that the interface language is a separate setting in the globe menu:
The language used for notifications and messages sent to you. The interface language is chosen separately, from the globe menu.
That is no longer true. The two controls are one setting (sys_user.locale), and changing either changes both. A user who follows the text and picks "English" only for their emails gets the whole console switched to English.
Steps to reproduce
Console UI in Simplified Chinese, sys_user.locale = null.
Open /_console/apps/com.objectstack.account/component/account/profile_card.
In 语言 → 首选语言 pick English, click 保存.
Result: the whole console switches to English at once (<html lang="en">, tab title "Account — ObjectOS", navigation, every app). GET /api/v1/auth/me/localization returns locale: "en"; localStorageobjectui-locale and objectui-locale-seed are en.
Open the account menu → Language → 简体中文.
Result: the console is Chinese again and GET /api/v1/data/sys_user/<id> now shows locale: "zh-Hans", i.e. the globe menu wrote the very column the card says it does not touch. The profile card's select shows 简体中文.
Expected
The card describes what the control does: one language setting for the interface and for notifications/messages, the same one as the globe menu.
Where
main still has the old wording, although the behaviour was unified on purpose:
ui/packages/app-shell/src/hooks/useUserLocale.ts (objectui#10059): "For a signed-in user sys_user.locale is the ONLY decider … Both controls write the same column through the same adapter … changing the language in either place changes it in both".
ui/apps/console/src/pages/system/ProfilePage.tsx
line 721, profile.language.description default text: "… The interface language is chosen separately, from the globe menu."
lines ~570–579, the component comment: "Saving here therefore does NOT call changeLanguage, and switching the UI language from the globe menu does NOT write this column."
profile.language.description in the locale files (en, zh-Hans, and the others) carries the same sentence.
Small extra in the zh-Hans string: it uses a half-width comma (「另行设置,在」) inside a Chinese sentence.
Environment
@objectstack/* 18.6.0, console build 958ee03594; the wording was re-checked on main today (2026-11-24).
Triage: lands in area:ux · domain:ui · priority:p1 · Bug · pm:queue.
Rationale: the p1 grade is the filer's and stays as set. It is routed to repo:objectstack#3 (area:ux) by the maintainer's seat routing.
Claim: PM loop round 1 (area ux-B, p1 routed by the seat)
Session: session_01WGufzhoBbwh8URjwQHde8v
Account: os-support-ai
Branch: claude/issue-36971-profile-language-one-setting
Worktree: objectstack-issue-36971
Domain: domain:ui
Seat: repo:objectstack#3
Area: ux-B
File surface: ui/apps/console/src/pages/system/ProfilePage.tsx (the Language card's profile.language.description default text at :721 and the component comment at ~570-579, both rewritten to say one setting drives the interface and notifications, the same one as the globe menu), ui/packages/i18n/src/locales/en.ts and zh-Hans.ts (the only packs that carry the key; zh-Hans uses full-width punctuation), any other pack only if it carries the key, the profile page's existing tests, one changeset listing every published package touched
Container & model: S, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate), effort: medium
Clause-②: no
Metadata-protocol: none
Responsibility: objectui#10059 unified the two controls on sys_user.locale (useUserLocale.ts header) and left the profile card's text and comment describing the old split
Thread-read: 7131578899
Premise: holds (read on 23d61fa68f3: ProfilePage.tsx:721 "… The interface language is chosen separately, from the globe menu."; :576 "Saving here therefore does NOT call changeLanguage …"; the string lives in en.ts and zh-Hans.ts only)
Serial constraints cleared: #36972 (this area, claimed alongside) edits the same file at the save-confirmation sites (:121, :259, :688, :733); hunks are separate, and each dev runs overlap-check against the other's branch before every push. No other open PR touches ProfilePage.tsx or useUserLocale.ts
Pre-claim lane: domain:ui. Console text only; no behaviour change. This lane
Pre-claim deps: none
Prior rulings read: objectui#10059, as recorded in useUserLocale.ts (one decider, sys_user.locale); check-prior-rulings.mjs: no ruling comments on the card; no conflict
{
"issue": 36971,
"status": "done",
"branch": "claude/issue-36971-profile-language-one-setting",
"pr": "https://github.com/objectstack-ai/objectstack/pull/36986",
"session": "session_01WGufzhoBbwh8URjwQHde8v",
"premise_still_valid": true,
"summary": "Premise verified in code on origin/main 144d368eac1: the globe menu writes sys_user.locale through useLanguageSelection, and useSignedInUserLocale (mounted once in ConsoleShell) applies the column on every sys_user mutation, the card's save included. profile.language.description now names one setting, for the interface and for notifications and messages, the same one as the globe menu. The text is updated in the card's call-site fallback and in ALL TEN packs (the dispatch read en and zh-Hans only; the other eight carry translated text that an English grep misses). zh-Hant was regenerated with gen:zh-hant. The zh-Hans text uses full-width punctuation. The LanguageCard doc comment is rewritten to the unified behaviour and cites useUserLocale / objectui#10059. One changeset: @object-ui/console and @object-ui/i18n, both patch, both published.",
"tests": "Head be2c5211766. pnpm --dir ui exec vitest run packages/i18n/ apps/console/src/pages/system/__tests__/ProfilePage: Test Files 115 passed (115), Tests 2072 passed | 13 skipped, lock VERDICT command-exit 0. New pin: a top-level describe in ProfilePage.language.test.tsx. The rendered description matches 'same setting as the globe menu' and 'interface', does not match 'separately', and equals builtInLocales.en.profile.language.description. Ablation via scripts/ablation-replace.mjs, two legs from the committed fix (console vitest aliases @object-ui/i18n to src, so no dist step). Leg 1, old fallback text: blob a489b18f19d5 -> 31b8a1633e35, 1 failed | 12 passed, restored to the HEAD blob, git diff HEAD empty. Leg 2, old sentence in the en pack only: blob 992eeef095da -> 9d99b5fb5715, 1 failed | 12 passed (the equality assertion), restored, git diff HEAD empty. Type-check: pnpm --filter @object-ui/i18n run type-check && pnpm --filter @object-ui/console run type-check, exit 0; tsc --listFiles shows the test file is in the console program.",
"gates": "Local: dispatch-gates --commands derived 41 families (tree objectstack-ai/objectstack at be2c5211766). All 41 ran and exited 0, including pnpm --dir ui exec vitest run scripts/ (172 passed | 2 skipped). The --ran reconciliation with exit codes: '41 derived famil(ies) accounted for, 41 run, 0 NOT-MEASURED (a DERIVED zero)'. Also: pnpm check:new-line-citations (0 new citations), check-nul-bytes exit 0, overlap-check VERDICT clean exit 0. CI on PR #36986 head be2c5211766: 58 check-runs, 45 success and 13 skipped, 0 failures. Required contexts: Lint & Repo Gates=success, TypeScript Type Check=success, Test Core=success, Build Core=skipped (selector), Governed Surface Queue Guard=success, Lint UI=success, Type Check UI=success, Test UI 16/16 shards=success, Build & E2E UI=success, Live E2E UI=success, Dogfood Regression Gate=success, Check Changeset=success.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "3 — fleet-write relay: pr_create (POST /repos/objectstack-ai/objectstack/pulls plus the assignees leg POST /issues/36986/assignees); post-stamped: POST /repos/objectstack-ai/objectstack/issues/36971/comments (this report); git push is not counted",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": []
}
Close-out · 2026-11-24T14:41Z · area ux-B: PR #36986 merged at 2026-11-24T14:40Z (merge commit e91149e0801b17b7aff950ce8977d5ffd4494807; L1 ACCEPT 7134092381), and this card closed as completed. pm:dispatched is removed. The profile Language card now says one setting drives both the interface and notifications, and that it is the same setting as the globe menu. This is fixed in all ten hand-written packs and in the regenerated zh-Hant. The card's comment now cites useUserLocale / objectui#10059.
Activity
objectstack-fleet commentedon Nov 24, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: lands in
area:ux·domain:ui·priority:p1· Bug ·pm:queue.Rationale: the p1 grade is the filer's and stays as set. It is routed to repo:objectstack#3 (area:ux) by the maintainer's seat routing.
objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzhoBbwh8URjwQHde8v
Claim: PM loop round 1 (area ux-B, p1 routed by the seat)
Session:
session_01WGufzhoBbwh8URjwQHde8vAccount:
os-support-aiBranch:
claude/issue-36971-profile-language-one-settingWorktree:
objectstack-issue-36971Domain:
domain:uiSeat:
repo:objectstack#3Area: ux-B
File surface:
ui/apps/console/src/pages/system/ProfilePage.tsx(the Language card'sprofile.language.descriptiondefault text at :721 and the component comment at ~570-579, both rewritten to say one setting drives the interface and notifications, the same one as the globe menu),ui/packages/i18n/src/locales/en.tsandzh-Hans.ts(the only packs that carry the key; zh-Hans uses full-width punctuation), any other pack only if it carries the key, the profile page's existing tests, one changeset listing every published package touchedContainer & model:
S,mode:subagent,model: default (dispatch-gates --tier: no path-derived mandate),effort: mediumClause-②: no
Metadata-protocol: none
Responsibility: objectui#10059 unified the two controls on
sys_user.locale(useUserLocale.tsheader) and left the profile card's text and comment describing the old splitThread-read: 7131578899
Premise: holds (read on
23d61fa68f3:ProfilePage.tsx:721"… The interface language is chosen separately, from the globe menu.";:576"Saving here therefore does NOT callchangeLanguage…"; the string lives inen.tsandzh-Hans.tsonly)Serial constraints cleared: #36972 (this area, claimed alongside) edits the same file at the save-confirmation sites (:121, :259, :688, :733); hunks are separate, and each dev runs
overlap-checkagainst the other's branch before every push. No other open PR touchesProfilePage.tsxoruseUserLocale.tsPre-claim lane:
domain:ui. Console text only; no behaviour change. This lanePre-claim deps: none
Prior rulings read: objectui#10059, as recorded in
useUserLocale.ts(one decider,sys_user.locale);check-prior-rulings.mjs: no ruling comments on the card; no conflictobjectstack-fleet commentedon Nov 24, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzhoBbwh8URjwQHde8v
os-dev-report
{ "issue": 36971, "status": "done", "branch": "claude/issue-36971-profile-language-one-setting", "pr": "https://github.com/objectstack-ai/objectstack/pull/36986", "session": "session_01WGufzhoBbwh8URjwQHde8v", "premise_still_valid": true, "summary": "Premise verified in code on origin/main 144d368eac1: the globe menu writes sys_user.locale through useLanguageSelection, and useSignedInUserLocale (mounted once in ConsoleShell) applies the column on every sys_user mutation, the card's save included. profile.language.description now names one setting, for the interface and for notifications and messages, the same one as the globe menu. The text is updated in the card's call-site fallback and in ALL TEN packs (the dispatch read en and zh-Hans only; the other eight carry translated text that an English grep misses). zh-Hant was regenerated with gen:zh-hant. The zh-Hans text uses full-width punctuation. The LanguageCard doc comment is rewritten to the unified behaviour and cites useUserLocale / objectui#10059. One changeset: @object-ui/console and @object-ui/i18n, both patch, both published.", "tests": "Head be2c5211766. pnpm --dir ui exec vitest run packages/i18n/ apps/console/src/pages/system/__tests__/ProfilePage: Test Files 115 passed (115), Tests 2072 passed | 13 skipped, lock VERDICT command-exit 0. New pin: a top-level describe in ProfilePage.language.test.tsx. The rendered description matches 'same setting as the globe menu' and 'interface', does not match 'separately', and equals builtInLocales.en.profile.language.description. Ablation via scripts/ablation-replace.mjs, two legs from the committed fix (console vitest aliases @object-ui/i18n to src, so no dist step). Leg 1, old fallback text: blob a489b18f19d5 -> 31b8a1633e35, 1 failed | 12 passed, restored to the HEAD blob, git diff HEAD empty. Leg 2, old sentence in the en pack only: blob 992eeef095da -> 9d99b5fb5715, 1 failed | 12 passed (the equality assertion), restored, git diff HEAD empty. Type-check: pnpm --filter @object-ui/i18n run type-check && pnpm --filter @object-ui/console run type-check, exit 0; tsc --listFiles shows the test file is in the console program.", "gates": "Local: dispatch-gates --commands derived 41 families (tree objectstack-ai/objectstack at be2c5211766). All 41 ran and exited 0, including pnpm --dir ui exec vitest run scripts/ (172 passed | 2 skipped). The --ran reconciliation with exit codes: '41 derived famil(ies) accounted for, 41 run, 0 NOT-MEASURED (a DERIVED zero)'. Also: pnpm check:new-line-citations (0 new citations), check-nul-bytes exit 0, overlap-check VERDICT clean exit 0. CI on PR #36986 head be2c5211766: 58 check-runs, 45 success and 13 skipped, 0 failures. Required contexts: Lint & Repo Gates=success, TypeScript Type Check=success, Test Core=success, Build Core=skipped (selector), Governed Surface Queue Guard=success, Lint UI=success, Type Check UI=success, Test UI 16/16 shards=success, Build & E2E UI=success, Live E2E UI=success, Dogfood Regression Gate=success, Check Changeset=success.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "3 — fleet-write relay: pr_create (POST /repos/objectstack-ai/objectstack/pulls plus the assignees leg POST /issues/36986/assignees); post-stamped: POST /repos/objectstack-ai/objectstack/issues/36971/comments (this report); git push is not counted", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzhoBbwh8URjwQHde8v
Close-out · 2026-11-24T14:41Z · area ux-B: PR #36986 merged at 2026-11-24T14:40Z (merge commit
e91149e0801b17b7aff950ce8977d5ffd4494807; L1 ACCEPT 7134092381), and this card closed as completed.pm:dispatchedis removed. The profile Language card now says one setting drives both the interface and notifications, and that it is the same setting as the globe menu. This is fixed in all ten hand-written packs and in the regenerated zh-Hant. The card's comment now citesuseUserLocale/ objectui#10059.fix(auth, console): saving your profile keeps the page on screen and …
fix(console): the profile Language card says it is the same setting a…