Skip to content

docs(i18n): re-land build/automation/ and build/interface/ ja pages (#388, PR 2 of 7) - #396

Merged
zhuangjianguo merged 9 commits into
mainfrom
claude/project-thread-u7eoxi
Oct 29, 2026
Merged

zhuangjianguo merged 9 commits into
mainfrom
claude/project-thread-u7eoxi

Conversation

@zhuangjianguo

@zhuangjianguo zhuangjianguo commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

Requested by Steedos · project thread
Refs #388
Clause-②: no
Metadata-protocol: none

维护者速读

What changes

This re-lands #390, which #392 reverted. The 11 files are restored from #390's head 38384aa; git diff 38384aa HEAD -- content/ is empty, so the content is byte-identical to what the seat ACCEPTed on #390.

Files Change
content/docs/build/automation/{index,flows,workflows,approvals}.ja.mdx New ja translations (re-landed)
content/docs/build/interface/{index,apps,views,forms,dashboards,pages,actions}.ja.mdx New ja translations (re-landed)

The branch carries one -s ours merge of the landed #394 branch head so the push fast-forwards; the diff against main is only these 11 files.

Tests

Local, on main 9e51646 plus this commit, with a NEXT_PRIVATE_STANDALONE=true build:

  • check-search-heap.mjs: every locale asked twice, heap stayed under 100 MB and stopped growing; second round settled at 50–53 MB.
  • check-search-locales.mjs: all 8 locales answer 200, find every own page by title within the first 3, and find nothing for a nonce.
  • check-translations.mjs: passed.
  • Worker upload (wrangler deploy --dry-run): 59,175.68 KiB against the 61,440 KiB budget, up from 56,596 KiB at fix(search): keep one locale index and read search text from build output (#393) #394. The 11 pages added about 2,580 KiB.

CI run 40873776314 at ace646b was green, including the local-preview smoke check. Search fits the Worker's memory:

after heapUsed after GC
route loaded 18.2 MB
en 47.6 MB
zh-Hans 51.9 MB
zh-Hant 53.4 MB
ja 53.2 MB
de 52.1 MB
es 52.3 MB
fr 51.3 MB
ko 52.8 MB
again en 50.4 MB
again zh-Hans 53.6 MB
again zh-Hant 54.3 MB
again ja 53.8 MB
again de 52.3 MB
again es 52.5 MB
again fr 51.4 MB
again ko 53.0 MB

Worker bundle fits the size budget: Total Upload 59,172.10 KiB (gzip 10,035.07 KiB), within the 61,440 KiB budget.

Acceptance notes

🤖 Generated with Claude Code

https://claude.ai/code/session_01QsR2jRsjbApbf83iyTDDXm

zhuangjianguo and others added 9 commits October 29, 2026 10:17
…ions, use)

Phase 1 of the other-locale plan. Adds ja translations of the 19
entry-path pages (index, why, start/*, editions/*, use/*) and the ja
sidebar labels for start/ and editions/. Every heading keeps its
English id, fences match the English byte for byte, terms follow the
glossary's ja column, and each page carries a --stamp.

check-translations: ja 0 stale, 79 missing (was 98).

Fixes #386

Claude-Session: https://claude.ai/code/session_01QsR2jRsjbApbf83iyTDDXm

Co-Authored-By: Claude <noreply@anthropic.com>
Phase 2 of the other-locale plan, first batch: ja for the build/ top
level (index, agents, ai-builder, ai-skills, extend-existing-systems,
marketplace, packages, reports, templates) and build/data/ (index,
relationships, formulas, validation-rules). Same rules as #386: English
heading ids, fences byte for byte, glossary ja column, UI labels in
English, one line per paragraph, each page stamped.

check-translations: ja 0 stale, 66 missing (was 79).

Refs #388

Claude-Session: https://claude.ai/code/session_01QsR2jRsjbApbf83iyTDDXm

Co-Authored-By: Claude <noreply@anthropic.com>
…388, PR 2 of 7)

Adds ja translations for the 11 automation and interface pages:
build/automation/{index,flows,workflows,approvals} and
build/interface/{index,apps,views,forms,dashboards,pages,actions}.
Both sections' meta.ja.json already match the English pages list.

Refs #388

Claude-Session: https://claude.ai/code/session_01QsR2jRsjbApbf83iyTDDXm

Co-Authored-By: Claude <noreply@anthropic.com>
…tput (#393)

/api/search kept every locale's Orama index (30-40 MB each) and every
page module page.data.load() imported, so one Worker isolate grew from
58 MB after its first locale to 283 MB after all eight, and #390's ja
pages tipped it past 128 MB into 503s.

- scripts/gen-search-data.mjs computes each page's structuredData before
  next build with fumadocs-mdx's own remark chain and writes one gzipped
  module per locale to apps/docs/.search/; the route reads that instead
  of importing page modules.
- The route keeps the most recently used locale's index only.
- check-search-heap.mjs asks the built route in every locale twice and
  fails above 100 MB or when the second pass keeps growing; it runs in
  ci.yml after check-search-locales and its --self-test is in SELF_TESTED.

Measured on the built route: levels at 50-54 MB across both passes.

Fixes #393

Claude-Session: https://claude.ai/code/session_01QsR2jRsjbApbf83iyTDDXm

Co-Authored-By: Claude <noreply@anthropic.com>
The tree is unchanged: the diff against main is the #393 commit only.

Claude-Session: https://claude.ai/code/session_01QsR2jRsjbApbf83iyTDDXm

Co-Authored-By: Claude <noreply@anthropic.com>
…388, PR 2 of 7)

Reverts #392, which reverted #390 because /api/search ran out of Worker
memory. #394 (#393) fixed that, so the same 11 ja pages come back
unchanged.

Refs #388

Claude-Session: https://claude.ai/code/session_01QsR2jRsjbApbf83iyTDDXm

Co-Authored-By: Claude <noreply@anthropic.com>
The tree is unchanged: the diff against main is the re-landed ja pages only.

Claude-Session: https://claude.ai/code/session_01QsR2jRsjbApbf83iyTDDXm

Co-Authored-By: Claude <noreply@anthropic.com>
@zhuangjianguo zhuangjianguo self-assigned this Oct 29, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor

席位核对 · ACCEPT · 2026-10-29T12:34Z · session_01QsR2jTaZ2GeyfjANMwstiw · seat repo:docs.objectos.ai#1

  1. Shape. Draft PR against main 9e51646, head ace646b. 11 added ja files, +2137/−0. It re-lands docs(i18n): translate build/automation/ and build/interface/ into ja (#388, PR 2 of 7) #390, which Revert #390 (ja build/automation and build/interface) so search fits the Worker again #392 reverted, as part of Other locales, phase 2: ja to full coverage (the remaining 79 pages, seven serial PRs) #388 (claim 6494412087). The body says Refs #388.
  2. Identity. The seat checked that git diff 38384aa ace646b -- content/ and git diff 3bbc710 ace646b -- content/ are both empty. The content is byte-identical to what the seat ACCEPTed on docs(i18n): translate build/automation/ and build/interface/ into ja (#388, PR 2 of 7) #390, so that review (headings, English ids, fences, terms, gates) carries over.
  3. The reason for the revert is fixed. fix(search): keep one locale index and read search text from build output (#393) #394 is on main. On this head, CI run 40873776314's Search fits the Worker's memory step reads 47.6 MB after en, then 51.3–53.4 MB through all 8 locales, and 54.3 MB at most on the second pass, under the 100 MB budget.
  4. Worker size. The upload is 59,172 KiB against the 61,440 KiB budget, which leaves 2,268 KiB. The next batch has to fit in that, so Each translated page adds about 172 KiB to the Worker upload, so full ja coverage (#388) would exceed Cloudflare's 64 MiB Worker limit #395 is tracked ahead of it.
  5. Check-runs. build success · Node floor success · Ownership & freshness success.
  6. Landing. Tier none. It lands through the merge queue under the standing go-ahead, serially, and the post-deploy smoke check must be green.

@zhuangjianguo
zhuangjianguo marked this pull request as ready for review October 29, 2026 12:35
@zhuangjianguo
zhuangjianguo added this pull request to the merge queue Oct 29, 2026
Merged via the queue into main with commit f7e4a57 Oct 29, 2026
4 checks passed
zhuangjianguo added a commit that referenced this pull request Oct 29, 2026
The tree is unchanged: the diff against main is the #395 commit only.

Claude-Session: https://claude.ai/code/session_01QsR2jRsjbApbf83iyTDDXm

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant