Skip to content

feat(example-starter): ship all 11 platform locales, one translation file per locale - #39726

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-ef0d06
Dec 4, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-ef0d06

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Tesla · project thread

Fixes #39322

Clause-②: no
Metadata-protocol: none

维护者速读

  • 从应用市场安装起步示例的组织,界面语言菜单里从原来的英文和简体中文两种,变成平台支持的全部 11 种语言,每种语言的对象、字段、视图、仪表盘名称都已翻译。
  • 落实 Bill 定下的规则:空白模板和起步示例都要带齐平台的 11 种语言;简体中文改用平台的标准写法。
  • 出错的后果只是某种语言下的文字翻得不地道,不影响数据;改回只需撤回本次合并。
  • 无。

What changes

Governing ruling: os-bill 2026-12-03 12:13Z (recorded on #38456).

Tests

  • examples/app-starter: vitest run 4 files, 25 tests passed; tsc --noEmit exit 0; objectstack validate exit 0.
  • Ablation: with zh-CN put back in supportedLocales, the new pin goes red (2 failed: locale list, never writes zh-CN), then restored.

Acceptance notes

  • Size: 2,092 changed lines (+1,862 / −230, 17 files, dispatch-gates count), above the card's ~1,000 estimate and under the 3,000 human-merge threshold. No generated files.
  • The translations are machine-written; a native reader may want to polish wording, which does not affect coverage or behaviour.

Verification

os i18n check --strict (examples/app-starter)
en       100.0%  (95/95, missing 0)
zh-Hans  100.0%  (95/95, missing 0)
zh-Hant  100.0%  (95/95, missing 0)
es       100.0%  (95/95, missing 0)
ar       100.0%  (95/95, missing 0)
fr       100.0%  (95/95, missing 0)
pt-BR    100.0%  (95/95, missing 0)
ru       100.0%  (95/95, missing 0)
de       100.0%  (95/95, missing 0)
ja       100.0%  (95/95, missing 0)
ko       100.0%  (95/95, missing 0)
All 95 translation keys covered across 11 locale(s)
publish-starter-marketplace dry run

pnpm turbo run build --filter=@objectstack/example-starter then node scripts/ci/publish-starter-marketplace.mjs --dry-run: exit 0, "dry run: no HTTP request is made", bundle translations 1 · i18n {3 keys}; the built dist/objectstack.json carries all 11 locale keys in its translation bundle and in i18n.supportedLocales.

Local derived gates at 51db5fa (dispatch-gates --commands, 55 families)
  • 53 of 55 exit 0 on the first pass.
  • pnpm check:i18n-coverage: exit 3 on the first pass (app-showcase could not load: dependency builds missing in this checkout, not this diff); after building the showcase closure, exit 0: check-i18n-coverage: OK (15 config(s), 577 baselined untranslated string(s), none new).
  • pnpm check:dual-build-cjs-loads: exit 3, Run pnpm build first (needs every package built). NOT MEASURED locally: left to CI.
  • dispatch-gates --ran: 55 derived, 55 run, 0 unrun.

Read first: src/translations/index.ts (bundle assembly and order), objectstack.config.ts (locale list), zh-Hans.translation.ts (the migrated data).
Two-minute check: cd examples/app-starter && npx objectstack i18n check --strict, expect 11 locales at 100%.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L9qibvqSPRf68vj73hQF3s

…file per locale

supportedLocales lists every PLATFORM_LOCALE_TAGS tag; Simplified Chinese
moves from zh-CN to the zh-Hans write tag; nine AI-written bundles added
(zh-Hant derived from zh-Hans); a pin holds the list, files and key parity.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibxZ1DSpavkJARmHCQF

席位核对

L1-c · PR #39726 · Head-sha: 51db5fa0fbc4b0aedec5586e1ecda5afd84ab983 · 2026-12-04T15:00Z

Verdict: ACCEPT, on green. The zone lands it once every check on this head has concluded with none failed. That includes check:dual-build-cjs-loads, which was not measured locally, and the Dogfood Regression Gate, whose matrix name was still unexpanded at this reading (17 checks pending).

Face.

Ruling executed (os-bill on #38456, 2026-12-03 12:13Z; ruling F 6580034558):

  • supportedLocales lists all 11 tags literally, in PLATFORM_LOCALE_TAGS order.
  • Simplified Chinese is written as zh-Hans, with its text carried over unchanged. zh-CN appears only in comments and in the pin that refuses it.
  • The bundle has one file per locale, laid out the service-messaging way. index.ts assembles them through defineTranslationBundle.
  • The single starter.translation.ts is removed.

Pin. translations-locales-39322.test.ts checks four things:

  • the config list equals the platform table;
  • the files on disk equal the bundle keys, with nothing extra;
  • no zh-CN is written;
  • every translated bundle carries zh-Hans's exact leaf keys.

A platform tag added or dropped turns it red.

Translations spot-checked. I read the opening of ja: object, field and option labels are idiomatic. The file header names it as AI-written from the English source, as the rule asks.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibzVCaQPuEu6rGmqH8J

2026-12-04T15:20Z · Landing · head 51db5fa0fb · L1-c ACCEPT 7415210767 at this head, on green. No L2 is owed (Clause-②: no, example app only, TIER_DEFAULT).

Probe Reading
check-governed-merges.mjs --pr 39726 NOT governed; 17 files, 2,092 lines (≤ 3000)
K (first-parent commits on origin/main since merge base) 9 (< 15)
CI at head 29 success, 18 expected skip, 0 failed. check:dual-build-cjs-loads runs in Build Core (ci.yml:3692): success. Dogfood Regression Gate: success. Lint · scoped · query-options erasure: success.

State: ready + auto-merge. Fixes #39322 closes the card on merge. Dispatched by the maintainer, 2026-12-04T14:10Z.

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/xl tests 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.

examples/app-starter: ship all 11 platform locales, one bundle file per locale, and migrate zh-CN to zh-Hans

2 participants