Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .changeset/25921-designer-version-history-key.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
'@object-ui/i18n': patch
'@object-ui/plugin-designer': patch
---

refactor(i18n, plugin-designer)!: the designer's version-history label leaves every pack

Clause-②: no (narrowing)
Metadata-protocol: none

<!-- adr-0087: not-required (runtime-interface-only ui/packages/i18n/src/locales/en.ts#TranslationKeys) the key type of the console's own translation catalogue: no Zod schema, no spec declaration and no stored metadata reads it, so the compiler is the channel that reaches every caller -->

`@object-ui/plugin-designer` no longer ships a version-history panel (retired by #29529), so nothing reads `designer.versionHistory` any more. The key now leaves all ten packs (ar, de, en, es, fr, ja, ko, pt, ru, zh) and the designer's English fallback map.

**BREAKING** (`@object-ui/i18n`, TypeScript only): the exported `TranslationKeys` (`typeof en`) loses `designer.versionHistory`. A `t()` call that names it still compiles, since its key is a `string`, and reads the key back. Nothing replaces it; the fix is to delete the reference.

`@object-ui/plugin-designer`: the exported `DESIGNER_DEFAULT_TRANSLATIONS` map loses its `designer.versionHistory` row, so a read of that row now yields `undefined`; the map's type (`Record<string, string>`) is unchanged.

| Removed key | Replacement |
|:---|:---|
| `designer.versionHistory` | none: the version-history panel is retired |

The other `designer.*` keys (`undo`, `redo`, `canvasMinimap`) are unchanged.
1 change: 0 additions & 1 deletion ui/packages/i18n/src/locales/ar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,6 @@ const ar = {
undo: "تراجع",
redo: "إعادة",
canvasMinimap: "الخريطة المصغرة للوحة",
versionHistory: "سجل الإصدارات",
},
detail: {
editInlineHint: "انقر نقرًا مزدوجًا للتحرير",
Expand Down
1 change: 0 additions & 1 deletion ui/packages/i18n/src/locales/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,6 @@ const de = {
undo: "Rückgängig",
redo: "Wiederholen",
canvasMinimap: "Minikarte der Arbeitsfläche",
versionHistory: "Versionsverlauf",
},
detail: {
editInlineHint: "Zum Bearbeiten doppelklicken",
Expand Down
1 change: 0 additions & 1 deletion ui/packages/i18n/src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1861,7 +1861,6 @@ const en = {
undo: 'Undo',
redo: 'Redo',
canvasMinimap: 'Canvas minimap',
versionHistory: 'Version history',
},
dashboard: {
total: 'Total',
Expand Down
1 change: 0 additions & 1 deletion ui/packages/i18n/src/locales/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,6 @@ const es = {
undo: "Deshacer",
redo: "Rehacer",
canvasMinimap: "Minimapa del lienzo",
versionHistory: "Historial de versiones",
},
detail: {
editInlineHint: "Haga doble clic para editar",
Expand Down
1 change: 0 additions & 1 deletion ui/packages/i18n/src/locales/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,6 @@ const fr = {
undo: "Annuler",
redo: "Rétablir",
canvasMinimap: "Mini-carte du canevas",
versionHistory: "Historique des versions",
},
detail: {
editInlineHint: "Double-cliquez pour modifier",
Expand Down
1 change: 0 additions & 1 deletion ui/packages/i18n/src/locales/ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,6 @@ const ja = {
undo: "元に戻す",
redo: "やり直す",
canvasMinimap: "キャンバスのミニマップ",
versionHistory: "バージョン履歴",
},
detail: {
editInlineHint: "ダブルクリックで編集",
Expand Down
1 change: 0 additions & 1 deletion ui/packages/i18n/src/locales/ko.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,6 @@ const ko = {
undo: "실행 취소",
redo: "다시 실행",
canvasMinimap: "캔버스 미니맵",
versionHistory: "버전 기록",
},
detail: {
editInlineHint: "더블클릭하여 편집",
Expand Down
1 change: 0 additions & 1 deletion ui/packages/i18n/src/locales/pt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,6 @@ const pt = {
undo: "Desfazer",
redo: "Refazer",
canvasMinimap: "Minimapa da tela",
versionHistory: "Histórico de versões",
},
detail: {
editInlineHint: "Clique duas vezes para editar",
Expand Down
1 change: 0 additions & 1 deletion ui/packages/i18n/src/locales/ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,6 @@ const ru = {
undo: "Отменить",
redo: "Повторить",
canvasMinimap: "Миникарта холста",
versionHistory: "История версий",
},
detail: {
editInlineHint: "Дважды щёлкните для редактирования",
Expand Down
1 change: 0 additions & 1 deletion ui/packages/i18n/src/locales/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,6 @@ const zh = {
undo: '撤销',
redo: '重做',
canvasMinimap: '画布缩略图',
versionHistory: '版本历史',
},
detail: {
back: '返回',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ export const DESIGNER_DEFAULT_TRANSLATIONS: Record<string, string> = {
'designer.undo': 'Undo',
'designer.redo': 'Redo',
'designer.canvasMinimap': 'Canvas minimap',
'designer.versionHistory': 'Version history',
'detail.goBack': 'Go back',
};

Expand Down
Loading