Repository navigation
docs(skills): the i18n skill says what the locales read answers about the default and source locale - #37614
Conversation
… the default and source locale Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgUpnvPnJ1hR74pUrVj
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: Inputs read: card #36873 (body and its three comments: triage, unlock, claim), PR #37614 (body, file list, net diff against ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
No must-fix, no should-fix.
Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA 席位核对 — ACCEPT · head 911e570 · card #36873 · area s2-ux-T · 2026-11-26T16:02ZL1 checklist
Tier: H. Landing: hand-off to the approver by the next stroke; ⛔ the seat does not merge. |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Tier H hand-off · 2026-11-26T16:03Z · head 911e570 · approver 维护者速读
|
Requested by Sales · project thread
Fixes #36873
Clause-②: no (published prose only; names a member the locales read already returns on main)
Metadata-protocol: none
维护者速读
GET /api/v1/i18n/locales的应答里除了标出默认语言,还会给出sourceLocale,也就是界面上直接写的文字是哪种语言。以前文档只说了有这个接口,没说它返回什么。What changes
skills/objectstack-i18n/SKILL.md, plus apatchchangeset for@objectstack/skills.GET /api/v1/i18n/locales,/translations/:localeand/labels/:object/:locale." After, it adds: "the locales answer marks the default locale (isDefault) and namessourceLocale(the declared one, else the default)". Checked againstGetLocalesResponseSchemainpackages/spec/src/api/protocol.zod.ts..tssource does not ship is now one line ("Onlysrc/**/*.zod.tsships, so the contract's.tssource is not innode_modulesto read.").Small calls made here (no card):
sourceLocaleconfig-table row, because that is where a client author meets the route..describe()), nor name the answer's other optional member,fallbackChain. The card asks for one clause onsourceLocaleonly.Why
PR #36858 (#36504) made
GET /api/v1/i18n/localesname the source locale. The skill named the route and said nothing about its answer, so an agent building a client that writes translations had no pointer to it.Verification
Run at
911e5701c, each exit 0:node scripts/check-skills-token-ratchet.mjs:skills/objectstack-i18n/SKILL.mdis 6306 tokens, ceiling 6333.node scripts/check-skill-links.mjs.node scripts/check-skill-identifier-liveness.mjs.node scripts/check-skill-top-level-keys.mjs.pnpm --filter @objectstack/spec check:skill-refs: 10 generated files in sync.pnpm --filter @objectstack/spec check:skill-docs: in sync.node scripts/pm/overlap-check.mjs.The sentence was drafted by a contract-tier subagent, as
dispatch-gates --tierrequires forskills/**, and reviewed and narrowed here.Contract review (L2) is owed before landing:
skills/**is a governed surface (Tier H).Human Minimum
packages/specholds no runtime logic.pnpm lintpasses.main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed (not touched).content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgUpnvPnJ1hR74pUrVj
Generated by Claude Code