Repository navigation
Commit 9620486
committed
docs(spec): stop the translation @example blocks teaching an unresolvable messages id
`messages` is a flat `Record<string, string>` while `t()` resolves a key by
walking its dot path, so an id that merely contains a dot is unreachable.
Both docblock `@example` blocks on `TranslationDataSchema` and
`TranslationItemSchema` demonstrated exactly such an id (`'common.save'`);
they now author `commonSave` and state the rule.
Claude-Session: https://claude.ai/code/session_01JbZnqu8bt6YqfJsr9vaFb3
Co-authored-by: Claude <noreply@anthropic.com>1 parent 79a046f commit 9620486
2 files changed
Lines changed: 32 additions & 2 deletions
File tree
- .changeset
- packages/spec/src/system
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
577 | | - | |
| 577 | + | |
578 | 578 | | |
579 | 579 | | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
580 | 587 | | |
581 | 588 | | |
582 | 589 | | |
| |||
1414 | 1421 | | |
1415 | 1422 | | |
1416 | 1423 | | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
1417 | 1428 | | |
1418 | 1429 | | |
1419 | 1430 | | |
| |||
1427 | 1438 | | |
1428 | 1439 | | |
1429 | 1440 | | |
1430 | | - | |
| 1441 | + | |
1431 | 1442 | | |
1432 | 1443 | | |
1433 | 1444 | | |
| |||
0 commit comments