Skip to content

Commit 73e5a8f

Browse files
committed
docs(skills): name the two keys the example fence shows; the lint header lists report blocks
The lead-in above the zh-CN example fence read as the two keys of the previous sentence; it now names `inlineTitle` and the report-block keys, and a blank line separates the fence from the `settings` paragraph. The validate-translation-references header's Reports section lists `blocks.<block_name>.label` / `.description` among a report's leaf keys, which the validator already accepts from the Zod shape. Claude-Session: https://claude.ai/code/session_01ADHkmPqouEb6yELnSqBwRY Co-authored-by: Claude <noreply@anthropic.com>
1 parent 4f490d8 commit 73e5a8f

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎packages/lint/src/validate-translation-references.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,9 @@
160160
* `reports.<name>` resolves against `Report.name`, the name `translateReport`
161161
* looks a served report up by, with the same verdict: a name no package of
162162
* this stack declares is an orphan, `translation-target-unknown` (`error`).
163-
* Leaf keys below the name are the schema's (`label` / `description`, strict).
163+
* Leaf keys below the name are the schema's: `label` / `description`, and a
164+
* joined report's `blocks.<block_name>.label` / `.description` by the block's
165+
* `name` (strict).
164166
*
165167
* ── Cross-package objects ────────────────────────────────────────────────
166168
*

‎skills/objectstack-i18n/SKILL.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,14 @@ Two keys sit deeper than their group's `label`: a `page:tabs` item at
179179
`pages.{page}.components.{tabs_id}.items.{value}.label` (by the item's `value`; an item without
180180
one has no key) and an approval step at `flows.{flow}.approvals.{node_id}.label`.
181181
`os i18n extract --no-objects-only` scaffolds every group above but `messages` and
182-
`settingsCommon`, both keys included. Both deeper keys, as the shipped `app-crm` and
183-
`app-showcase` bundles spell them for `zh-CN`:
182+
`settingsCommon`, both keys included. The `inlineTitle` and report-block keys, as the
183+
shipped `app-crm` and `app-showcase` bundles spell them for `zh-CN`:
184184

185185
```typescript
186186
objects: { crm_opportunity_line_item: { fields: { opportunity: { inlineTitle: '产品明细' } } } },
187187
reports: { showcase_task_overview: { blocks: { open_block: { label: '未完成任务' } } } },
188188
```
189+
189190
`settings` is **platform-only** — it is keyed by a settings manifest's namespace and only
190191
the platform declares one, so an app bundle carrying it is refused by name.
191192

0 commit comments

Comments
 (0)