Commit 1fa2dc5
committed
docs(rest): drop the hand-written translatable-type list from meta-plural-i18n's header
The file header restated `METADATA_DOCUMENT_TRANSLATORS`' keys by hand as
`view` / `action` / `object` / `app` / `dashboard` / `page` — six, where the
table has seven since `translateDataset` registered (#14253). It is the header
of the test that pins the translatable-type predicate, so it is the first thing
a reader consults before touching that predicate, and it understated the set.
The enumeration is deleted rather than corrected: a corrected restatement rots
again on the next registration, which is the whole finding. The sentence's point
is that the keys are SINGULAR, which needs no list to make, and the two clauses
above already name both `TRANSLATABLE_METADATA_TYPES` and
`METADATA_DOCUMENT_TRANSLATORS` — where a reader should be sent. The table's own
doc comment states the rule: "Derived from the dispatch table — never restate
it." Same disposition #15863 took on the identical defect class in
`rest-server.ts`.
Re-derived rather than inherited: the dispatch table's keys, read out of
`packages/spec/src/system/i18n-resolver.ts` with the TypeScript AST rather than
by eye, are count=7 ["view","action","object","app","dashboard","dataset",
"page"]. The extractor's positive control is a scratch copy with the `dataset`
row deleted, on which the same extractor reports 6 — so the 7 is a measurement,
not a constant printed back.
Comment-only: every changed line is inside the file's leading block comment, so
the token stream is unchanged.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D47qPfEWVPmhguWgBZCi5N1 parent bf45e62 commit 1fa2dc5
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
0 commit comments