From d0904b2c84af9cb5c2f75180255edd95014f653e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Padez?= Date: Sun, 23 Aug 2026 14:53:55 +0000 Subject: [PATCH] plugins panel keyed (414 -> 383) AvailableDetail was an implicit-return arrow, so it got a body to hold the hook. --- .../src/apps/Plugins/PluginDetail.tsx | 135 +++++++++--------- .../src/apps/Plugins/PluginsList.tsx | 16 ++- .../officerdev/src/locales/en-GB.json | 25 ++++ .../officerdev/src/locales/pt-PT.json | 25 ++++ 4 files changed, 132 insertions(+), 69 deletions(-) diff --git a/src/workspaces/officerdev/src/apps/Plugins/PluginDetail.tsx b/src/workspaces/officerdev/src/apps/Plugins/PluginDetail.tsx index a2893dc4..9090ed4f 100644 --- a/src/workspaces/officerdev/src/apps/Plugins/PluginDetail.tsx +++ b/src/workspaces/officerdev/src/apps/Plugins/PluginDetail.tsx @@ -16,6 +16,7 @@ import { type PluginItem, type PluginVerb, } from './usePlugins'; +import { useTranslation } from '../../locales'; // The right panel: one plugin, and its verbs — install, enable, disable, update, delete. // @@ -80,11 +81,12 @@ const Parts = ({ has }: { has: PluginItem['has'] }) => { * "Requires: nothing" row is noise on every other plugin's page. */ const Dependencies = ({ deps }: { deps: PluginDependencies }) => { + const { t, tUi } = useTranslation(); if (!deps.items.length) return null; return (
-

Needs on this machine

+

{t('plugins.needsOnThisMachine')}