Repository navigation
Commit 23fa361
docs(skills): objectstack-i18n teaches the packages group, and both related-list skills name the two routes for a .custom arrangement's tab title (#38205)
<!-- claude-projects-attribution: {"github_login":"os-sales"} -->
_Requested by **Sales** · [project
thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuLGxAx4KpiXZ5b78imiUHke)_
Fixes #37988
Fixes #38128
Clause-②: no
Metadata-protocol: none
## 维护者速读
- 用户能看到什么变化:给客户写翻译包的人和 AI
现在能从技能和文档里学到两件新事:软件包的名称怎么按语言显示,定制包自己改的相关列表标签页标题怎么翻译;运行时行为不变。
- 为什么做:是两次已合并改动欠下的技能补课(软件包名称按语言显示、定制包标签页标题按译文显示),不补的话 AI
会漏写软件包名称的译文,或继续走「照抄原标题」这条已不是唯一的老路。
- 出错会怎样:最坏是技能里某句说法和实际行为对不上,AI 写出的翻译会多报或漏报一条提示;只改文字,可以直接撤回。
- 要你做什么:技能文件改动需要你批准合并。
## What changes
**#37988: the translation bundle's `packages` group (shipped in
ab04434).**
- `skills/objectstack-i18n/SKILL.md`, the top-level group list:
`packages` holds `name` / `description` keyed by `manifest.id`, the
dotted id one key, with an inline example; a locale with no row shows
`manifest.name`; `os lint` warns `i18n/missing-package` (`os i18n check`
lists the same gap by key) until the package's own bundle carries the
row.
- `content/docs/ui/translations.mdx`: a "Package name / description" row
in "What you can translate" (Setup's package list and Studio's switcher,
where an app-carrying package keeps its app's label), and a paragraph
with an example under "Draft with the CLI, gate in CI": `os lint`
reports `i18n/missing-package`, `os i18n check` lists the key, and the
row clears both.
- `content/docs/protocol/kernel/i18n-standard.mdx`: a `packages` line in
the `TranslationData` example with a paragraph on the key grammar, the
refused spellings and the fallback; and a paragraph in "Orphan Keys and
Option Keys": `packages` keys are held to the id grammar at parse, not
resolved against manifests, and their coverage is `os lint`'s
`i18n/missing-package` warning, which `os i18n check` lists by key. No
row in the "Resolves when it names" table, because `os validate` does
not resolve these keys (the out-of-scope question #37988 names).
**#38128: a `.custom` arrangement's own tab title translates (shipped in
ee2ffca).**
- `skills/objectstack-i18n/SKILL.md`, the `_relatedLists.{list}` row,
and `skills/objectstack-data/rules/relationships.md`, the `relatedLists`
bullet: the remedy is now "drop it, or re-state the entry, shown, with a
`label`": the owner's own keeps the owner's translation, and the
arrangement's own (relationships.md now says "the arrangement's own") is
read at the same key from the `.custom` package's bundle, which `os i18n
check` expects. The owner-label route stays.
- `i18n-standard.mdx`'s `_relatedLists` row already says this (PR
#38085), so it is unchanged.
**Token ratchet** (`scripts/check-skills-token-ratchet.mjs`): no raise,
no ruling spent. Each addition is paid by deleting restatement in the
same file.
- `objectstack-i18n/SKILL.md` row 6333 → 6315, pinned at the
measurement. Cut: the translation-reference paragraph's six-item list of
action keys judged against a declaration (each item is already
conditioned in the `_actions` row; now one sentence pointing at it, and
the row gains "non-empty" on `submitText`, the one nuance only the list
carried), and the three code-comment tails of the first example ("one
TranslationData per locale", "assemble the locales into one bundle…",
"…and register it on the stack"), which repeat the sentence introducing
it.
- `objectstack-data/rules/relationships.md` row 4181 → 4179, pinned at
the measurement. Cut: "(cascade delete)" in the type table (Delete
Behaviors states it), "to aggregate" after the roll-up intro, the grid
example comment "(a field group names invoice_line, as above)", and
"places the lines and" in the inline-entry example's comment.
**Changeset**: `.changeset/37988-skills-i18n-packages-group.md`,
`@objectstack/skills` patch. No package ships `content/docs`.
### Skills readings (lines / bytes / tokens)
| | before | after |
|:-|:-|:-|
| `skills/objectstack-i18n/SKILL.md` | 506 / 25359 / 6333 | 504 / 25285
/ 6315 |
| `skills/objectstack-data/rules/relationships.md` | 383 / 16724 / 4181
| 384 / 16714 / 4179 |
| all `skills/*/SKILL.md` | 4953 / 262572 | 4951 / 262498 |
| all of `skills/**` | 23330 / 1224868 | 23329 / 1224784 |
## Tests
Text only; no runtime code changes. The shapes taught were read on
`main`: `packages/spec/src/system/translation.zod.ts` (the `packages`
member: id-grammar key, `name` / `description`, aliases `package`,
`label`, `title`, `displayName`),
`packages/cli/src/utils/i18n-coverage.ts` (the `package` bucket,
`i18n/missing-package`), `StudioPackageSwitcher.tsx` (`appLabel ||
packageName(p)`), and PR #38085's commit body plus `i18n-standard.mdx`'s
`_relatedLists` row. A `tsx` probe of `defineTranslationBundle` from
source refused a `crm` key (id grammar) and answered `package` →
`packages` and leaf `label` → `name`.
## Acceptance notes
- Branch `claude/project-thread-o2yspl` is assigned by the harness, not
the repo's `claude/issue-N-…` convention.
- Open PR #38196 edits other lines of `skills/objectstack-i18n/SKILL.md`
(table separators, the Registration paragraph, the `os i18n check`
examples). This diff stays out of those lines, and `git merge-tree` of
this head with #38196's head is clean. The i18n ratchet row will need a
re-measure on whichever lands second; this branch merges `main` again
after #38196 lands.
- Contract review 7235862784 (PASS on 49440c7): S1 fixed in 626d0d9
(the id `i18n/missing-package` is `os lint`'s, built by
`foldCoverageIssues` in `packages/cli/src/commands/lint.ts`; `os i18n
check` prints the key and `source: "package"`, never the id), in the
skill and both docs pages; N1 fixed ("or the arrangement's own"); N2
kept as written, as the record accepts.
- Setup's package list fallback to `manifest.name`: confirmed by the
review's reading of `PackagesPage.tsx`.
## Verification
Two-minute check: `node scripts/check-skills-token-ratchet.mjs`, expect
exit 0 with `skills/objectstack-i18n/SKILL.md` 6315 / 6315 and
`skills/objectstack-data/rules/relationships.md` 4179 / 4179.
Read first, by risk: `skills/objectstack-i18n/SKILL.md` (the
`_relatedLists` row and the replaced action-key sentence),
`skills/objectstack-data/rules/relationships.md` (the remedy),
`content/docs/protocol/kernel/i18n-standard.mdx` (the `packages`
paragraphs).
<details><summary>Local gates at 626d0d9</summary>
`node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack
--ran FILE` with each command recorded as `CMD :: exit N`: **92 derived,
91 run, 1 NOT-MEASURED, 0 UNRUN**; every run family exit 0, among them
`check-skills-token-ratchet.mjs` (and `--self-test`),
`check:doc-authoring`, spec `check:docs` / `check:skill-docs` /
`check:skill-examples` / `check:skill-served-sections` /
`check:liveness`, `check:empty-changeset`,
`check-adr-0087-registration.mjs --base origin/main`.
- NOT MEASURED: `check:dual-build-cjs-loads`, exit 3 (prerequisite not
met: it reads every package's `dist/`, and only the spec and
client-react closure was built). The diff publishes skills text only.
- CI at 626d0d9: 33 success, 15 skipped, 0 failed; mergeable.
</details>
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01L6bhgX4oqMXTKRLtGx5S9c
<!-- signed: repo:objectstack#2 · os-sales ·
session_01L6bhgX4oqMXTKRLtGx5S9c -->
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent c823577 commit 23fa361
6 files changed
Lines changed: 88 additions & 21 deletions
File tree
- .changeset
- content/docs
- protocol/kernel
- ui
- scripts
- skills
- objectstack-data/rules
- objectstack-i18n
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
| 381 | + | |
381 | 382 | | |
382 | 383 | | |
383 | 384 | | |
384 | 385 | | |
385 | 386 | | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
386 | 398 | | |
387 | 399 | | |
388 | 400 | | |
| |||
1221 | 1233 | | |
1222 | 1234 | | |
1223 | 1235 | | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
1224 | 1244 | | |
1225 | 1245 | | |
1226 | 1246 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| |||
360 | 361 | | |
361 | 362 | | |
362 | 363 | | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
363 | 377 | | |
364 | 378 | | |
365 | 379 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
847 | 847 | | |
848 | 848 | | |
849 | 849 | | |
850 | | - | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
851 | 863 | | |
852 | 864 | | |
853 | 865 | | |
| |||
1381 | 1393 | | |
1382 | 1394 | | |
1383 | 1395 | | |
1384 | | - | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
1385 | 1405 | | |
1386 | 1406 | | |
1387 | 1407 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
| 257 | + | |
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
| 292 | + | |
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
363 | | - | |
| 363 | + | |
| 364 | + | |
364 | 365 | | |
365 | 366 | | |
366 | 367 | | |
| |||
0 commit comments