Skip to content

Commit f6ecb06

Browse files
committed
chore(changeset): lint/cli/spec patch for the i18n walk move
Claude-Session: https://claude.ai/code/session_01WGufzfqCqBH59yrHmuqXH3 Co-authored-by: Claude <noreply@anthropic.com>
1 parent e8534a8 commit f6ecb06

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@objectstack/lint': patch
3+
'@objectstack/cli': patch
4+
'@objectstack/spec': patch
5+
---
6+
7+
refactor(lint): the i18n translatable-key walk moves from the CLI into `@objectstack/lint`
8+
9+
Clause-②: no
10+
Metadata-protocol: none
11+
12+
`collectExpectedEntries` — the one definition of which translation keys a stack can carry, each with the source text it translates — now lives in `@objectstack/lint` (`src/i18n-walk.ts`) and is exported from the package root with `authorWarnedTranslationGroups`, `humanizeFieldPath` and the `ExpectedEntry` / `ExpectedEntryOptions` types. It moved so a browser can run the same walk the CLI runs: Studio's translation editor builds its source-to-translation table from it. `os i18n extract` and `os lint`'s translation coverage keep reading it unchanged, through the CLI's extractor module, which keeps bundle assembly and serialization and re-exports the walk.
13+
14+
- No key, no skeleton and no coverage verdict changes: the walk's code moved as is.
15+
- In a browser the walk cannot read the liveness ledger from disk, so its default leaves no translation group out. That is the same set the CLI leaves out today, because the ledger warns on no translation group; a browser caller that must honour a warned group passes `warnedGroups`.
16+
- `@objectstack/spec`: the `action` and `view` liveness ledgers cite the walk at its new path.

0 commit comments

Comments
 (0)