Repository navigation
feat(example-starter): ship all 11 platform locales, one translation file per locale - #39726
Conversation
…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
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibxZ1DSpavkJARmHCQF 席位核对L1-c · PR #39726 · Verdict: ACCEPT, on green. The zone lands it once every check on this head has concluded with none failed. That includes Face.
Ruling executed (os-bill on #38456, 2026-12-03 12:13Z; ruling F 6580034558):
Pin.
A platform tag added or dropped turns it red. Translations spot-checked. I read the opening of |
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibzVCaQPuEu6rGmqH8J 2026-12-04T15:20Z · Landing · head
State: ready + auto-merge. |
Requested by Tesla · project thread
Fixes #39322
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
examples/app-starter/objectstack.config.ts:supportedLocaleslists all 11PLATFORM_LOCALE_TAGS, written out literally (en,zh-Hans,zh-Hant,es,ar,fr,pt-BR,ru,de,ja,ko). Simplified Chinese is written aszh-Hans;zh-CNstays only a read alias (ruling F 6580034558 on [Decision] One locale list, one completeness rule — the long-term i18n regime across Console, platform metadata, cloud and mobile #29349).src/translations/: the singlestarter.translation.ts(en + zh-CN) becomes one file per locale plusindex.ts, which assemblesStarterTranslationBundlein table order (layout afterservice-messaging/src/translations/). Thezh-Hansfile carries the formerzh-CNdata unchanged (deep-equal checked against the old export before deletion);enis unchanged.zh-Hantis derived fromzh-Hans. Each carries the same 99 leaves aszh-Hans.@objectstack/example-starter).test/translations-locales-39322.test.ts: the 11 tags written out equalPLATFORM_LOCALE_TAGSandsupportedLocales; oneTAG.translation.tsper locale and nothing else;zh-CNabsent as a write tag; every translated locale has the same key set aszh-Hans.Governing ruling: os-bill 2026-12-03 12:13Z (recorded on #38456).
Tests
examples/app-starter:vitest run4 files, 25 tests passed;tsc --noEmitexit 0;objectstack validateexit 0.zh-CNput back insupportedLocales, the new pin goes red (2 failed: locale list, never writes zh-CN), then restored.Acceptance notes
dispatch-gatescount), above the card's ~1,000 estimate and under the 3,000 human-merge threshold. No generated files.Verification
os i18n check --strict (examples/app-starter)
publish-starter-marketplace dry run
pnpm turbo run build --filter=@objectstack/example-starterthennode scripts/ci/publish-starter-marketplace.mjs --dry-run: exit 0, "dry run: no HTTP request is made", bundletranslations 1 · i18n {3 keys}; the builtdist/objectstack.jsoncarries all 11 locale keys in its translation bundle and ini18n.supportedLocales.Local derived gates at 51db5fa (dispatch-gates --commands, 55 families)
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