Skip to content

Commit ad1e186

Browse files
committed
chore(changeset): Clause-② yes for the dead i18n key deletion
Claude-Session: https://claude.ai/code/session_01FpUtgwNrSiRgWJ8GAepPeP Co-authored-by: Claude <noreply@anthropic.com>
1 parent 5b6eb98 commit ad1e186

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎.changeset/25921-delete-dead-i18n-keys.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
chore(i18n): delete 92 message keys nothing reads from all ten locale packs
66

7-
Clause-②: no (only unused message keys go; no exported type or runtime contract changes)
7+
Clause-②: yes (TranslationKeys narrows by 92 unread members; patch per the #4730 retirement precedent)
88
Metadata-protocol: none
99

1010
`ui/scripts/check-i18n-dead-keys.mjs` listed 122 keys with no call site and no textual occurrence anywhere in the repository. 92 of them are deleted from `ar`, `de`, `en`, `es`, `fr`, `ja`, `ko`, `pt`, `ru` and `zh`; no key is renamed or added, and no screen changes, because no code asked for any of them. The largest groups are `appDesigner.*` (20 keys), `report.*` (9), `publicForm.*` (8), `table.*` (7) and `layout.appSwitcher.*` (7).
@@ -14,4 +14,4 @@ Two groups the script also listed stay:
1414
- 28 `_one` / `_other` plural forms (`preview.changes.typeCount.*`, `notifications.arrivalMany` / `arrivalRepeats`, `fields.relativeDate.overdue`). Their base keys are called with `count`, and i18next reads the plural form, so they are in use.
1515
- `console.ai.agentLabels.dataChat` and `metadataAssistant`, which the pack keeps on purpose for external overrides.
1616

17-
A host that imports a pack object and reads one of the deleted members by property sees it gone from the type; nothing in this repository does.
17+
`TranslationKeys` (`typeof en`) and the other pack objects' types lose the 92 members. A host that reads one of them by property gets a type error; nothing in this repository does, and no `t()` call anywhere asks for one.

0 commit comments

Comments
 (0)