refactor(i18n): route command + settings manifest labels through the catalog (T-462)
Apply the manifest-i18n foundation across every extension: each CommandContribution (45, command-palette + menu) gains titleKey + i18nNamespace, and each SettingsCategory/section/field/option gains its key — with the English text added to the owning extension's catalog. The settings renderer (settings_category_view + settings_modal) threads the category's i18nNamespace down and resolves every label/help/option through it; new catalogs created for view, cli-install, keybindings-ui. No en_US behaviour change — the command palette, menus, and settings panel now localize from the catalog (D-21). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -30,6 +30,8 @@ class ViewExtension extends ClideExtension {
|
||||
id: 'view.zoomIn',
|
||||
command: 'view.zoomIn',
|
||||
title: 'View: Zoom In',
|
||||
titleKey: 'command.view.zoomIn',
|
||||
i18nNamespace: id,
|
||||
run: (_) async {
|
||||
textZoom.increase();
|
||||
return IpcResponse.ok(id: '', data: {'scale': textZoom.scale});
|
||||
@@ -39,6 +41,8 @@ class ViewExtension extends ClideExtension {
|
||||
id: 'view.zoomOut',
|
||||
command: 'view.zoomOut',
|
||||
title: 'View: Zoom Out',
|
||||
titleKey: 'command.view.zoomOut',
|
||||
i18nNamespace: id,
|
||||
run: (_) async {
|
||||
textZoom.decrease();
|
||||
return IpcResponse.ok(id: '', data: {'scale': textZoom.scale});
|
||||
@@ -48,6 +52,8 @@ class ViewExtension extends ClideExtension {
|
||||
id: 'view.zoomReset',
|
||||
command: 'view.zoomReset',
|
||||
title: 'View: Reset Zoom',
|
||||
titleKey: 'command.view.zoomReset',
|
||||
i18nNamespace: id,
|
||||
run: (_) async {
|
||||
textZoom.reset();
|
||||
return IpcResponse.ok(id: '', data: {'scale': textZoom.scale});
|
||||
|
||||
Reference in New Issue
Block a user