Skip to content

fix(platform-objects): retranslate the view navigation help in seven locales - #36424

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-35915-navigation-help-seven-locales
Nov 22, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-35915-navigation-help-seven-locales

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Steedos · project thread

Fixes #35915

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用阿拉伯语、德语、法语、韩语、巴西葡语、俄语、繁体中文的管理员,在视图表单「导航」与「导航模式」的说明里,不再看到「默认用抽屉打开」,改为与英文一致的新说法。
  • 属于列表打开记录方式调整(视图导航模式废弃)的收尾,替这七种语言的管理员补齐译文。
  • 只改说明文字,出错只是某句译文不通顺,不影响任何功能,可直接撤回。
  • 无

What changes

  • packages/platform-objects/src/apps/translations/{ar,de,fr,ko,pt-BR,ru,zh-Hant}.metadata-forms.generated.ts: two leaf values each, metadataForms.view.fields.navigation.helpText (line 1358) and "navigation.mode".helpText (line 1362), re-translated from the current English source, following the zh-CN / ja-JP / es-ES renderings. Code tokens (drawer, page, new_window, none, preventNavigation: true, listViews, navigation, mode) are kept as written; the deprecation marker uses each locale's existing spelling ([VERALTET], [OBSOLÈTE], [OBSOLETO], [УСТАРЕЛО], [사용 중단], [مُهمَل], [已棄用]).
  • {same seven}.source-hashes.generated.ts: node scripts/check-i18n-bundles.mjs --filter=platform-objects --write dropped the one row metadataForms.view.fields.navigation.mode.helpText from each. That row recorded the leaf as a byte copy of an older English source; it is now a real translation, so the extractor drops the entry itself (no hand edit).
  • .changeset/35915-navigation-help-seven-locales.md: @objectstack/platform-objects patch (the bundles ship in that package).

Why

The view navigation.mode was deprecated under #35854 (ruling: the record name opens the full page, the hover icon the side panel; none still means rows open nothing). The English source and zh-CN, ja-JP, es-ES were rewritten then; these seven locales still said the drawer is the default, and navigation.mode served an older English copy.

Tests

  • pnpm --filter @objectstack/platform-objects exec vitest run --maxWorkers=2 src/apps/translations at 7fefd74: Test Files 26 passed (26), Tests 610 passed (610).
  • node scripts/check-i18n-bundles.mjs --filter=platform-objects at 7fefd74: EXIT=0, platform-objects in sync (32 bundle(s)).
  • No ablation: text-only change, no tested behaviour moved.

Acceptance notes

  • grep for the old phrasings (e.g. zh-Hant 「預設為抽屜」, de standardmäßig Seitenleiste) in the seven files: 0 hits. The new navigation help still names the drawer, as its size ("drawer size"), like the English.
  • German and Brazilian Portuguese use one word for both the drawer and the side panel (Seitenleiste / painel lateral), matching the existing drawer-width help in those files and the es-ES rendering.

Verification

Read first: zh-Hant.metadata-forms.generated.ts lines 1358 and 1362 (compare with zh-CN at the same lines).

Two-minute check: git grep -n '預設為抽屜\|tiroir par défaut\|standardmäßig Seitenleiste' -- packages/platform-objects/src/apps/translations prints nothing.

Local gates (derived by dispatch-gates for this diff)
  • 53 derived families ran locally with EXIT=0, among them check:nul-bytes, check:issue-citations, check:published-files, check:cross-package-test-inputs, the changeset families (check-adr-0087-registration, check-changeset-no-major, check-empty-changeset, check:changeset-gate-self-tests).
  • NOT MEASURED locally, left to CI: pnpm check:i18n across all nine packages (ran with --filter=platform-objects, the one package this diff touches; the other eight need their build closures); pnpm check:dual-build-cjs-loads (exit 3, needs a full pnpm build); check-plugin-teardown-shape --self-test (exit 3, shallow clone cannot reach its pinned control commit); check-comment-mask-corpus (did not finish within 240s).

🤖 Generated with Claude Code

https://claude.ai/code/session_01QsR2jTqAcPU4VyEPH7iVn2

@github-actions github-actions Bot added size/s 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 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

7 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run.

What this run could not see

Coarse fallback — 3 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json ff60149900897ccc1e2077997eb44946d858450b → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 44481b95c130170d90d98fca861f2703003d7fac — the merge of head 7fefd744b213f26d20abc2fcc79e35ba8a69aa26 into base ff60149900897ccc1e2077997eb44946d858450b, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 44481b95c130170d90d98fca861f2703003d7fac && git checkout 44481b95c130170d90d98fca861f2703003d7fac
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin ff60149900897ccc1e2077997eb44946d858450b 7fefd744b213f26d20abc2fcc79e35ba8a69aa26 && git checkout -B drift-repro ff60149900897ccc1e2077997eb44946d858450b && git merge --no-ff 7fefd744b213f26d20abc2fcc79e35ba8a69aa26

node scripts/docs-audit/affected-docs.mjs --json ff60149900897ccc1e2077997eb44946d858450b

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTqAcPU4VyEPH7iVn2

Red check · area f7-docs · 2026-11-22T11:30Z
Test Core (10/10) at 7fefd744 (job 137188472445): 1 failed of 6275 in @objectstack/plugin-auth, src/password-reset-ends-added-access.test.ts:538 ("an administrator's forced reset ends them too…", expected false to be true on grantStands()). This PR touches only packages/platform-objects translation leaves, hash rows and a changeset; plugin-auth is outside its diff. The signature is the known queue flake anchored on #36375, with its fix card #36361 (the test stamps its grant one whole second ahead and turns red when the call runs long). Known flaky ⇒ one re-run of the failed jobs through the relay once the run completes.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTqAcPU4VyEPH7iVn2

席位核对

Area self-review (f7-docs; 45 changed lines, text only, Clause-②: no, no other contract face) on head 7fefd744b2, card #35915: ACCEPT.

  • Shape (l1-face.mjs --pr 36424, CLEAN): open, draft, base main, Fixes #35915, Clause-②: no, Metadata-protocol: none; @objectstack/platform-objects patch changeset present. Lint & Repo Gates and TypeScript Type Check success; 37 success, 16 expected skip, 0 failed (after one re-run of the known plugin-auth flake Queue-flake anchor: src/password-reset-ends-added-access.test.ts #36375, run 45015869910 attempt 2; comment 7078493879).
  • Fixes is right: in all seven locales (ar, de, fr, ko, pt-BR, ru, zh-Hant) the navigation helpText no longer says the drawer is the default and the navigation.mode helpText is a translation of the current English (en.metadata-forms.generated.ts:1362), not the older English copy. Read each pair: same structure as zh-CN / ja-JP / es-ES; code tokens (drawer, page, new_window, none, preventNavigation: true, listViews) kept as written; the page-block sentence present in each.
  • *.source-hashes.generated.ts: each of the seven loses only its metadataForms.view.fields.navigation.mode.helpText row (the "English copy" marker for a leaf now translated), written by check-i18n-bundles --write; no other row moves. CI's i18n gates are green on this head.
  • Changeset sentences read against the diff: true. No key added, no key removed, so Clause-②: no holds.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTqAcPU4VyEPH7iVn2

Landing · area f7-docs · 2026-11-22T11:52Z
Head-sha: 7fefd744b2

Probe Reading
L1 area self-review ACCEPT 7078727301 at this head
Landing K landing-k --pr 36424: K = 7 < 15
Checks at head 37 success, 16 expected skip, 0 failed, 0 pending (Test Core 10/10 green on attempt 2 after the known #36375 flake)
Governed check-governed-merges --pr 36424: NOT governed, 45 changed lines

State: ready + auto-merge into the merge queue. Fixes #35915 closes the card on merge.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 22, 2026 11:53
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit a98c077 Nov 22, 2026
82 of 84 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-35915-navigation-help-seven-locales branch November 22, 2026 12: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/s 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.

七种语言的视图表单「导航」说明仍写「默认为抽屉」,navigation.mode 废弃(#35854)后已不对

2 participants