From 444b47169e8fedff5a86e3a04b97ba9c1a7c28fb Mon Sep 17 00:00:00 2001 From: James Brunton Date: Fri, 19 Sep 2025 13:13:45 +0100 Subject: [PATCH] Improve ID for addAttachments --- frontend/public/locales/en-GB/translation.json | 2 +- frontend/src/data/useTranslatedToolRegistry.tsx | 6 +++--- frontend/src/types/toolId.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/public/locales/en-GB/translation.json b/frontend/public/locales/en-GB/translation.json index 17b7b7105..b0b99ee3a 100644 --- a/frontend/public/locales/en-GB/translation.json +++ b/frontend/public/locales/en-GB/translation.json @@ -382,7 +382,7 @@ "title": "Add image", "desc": "Adds a image onto a set location on the PDF" }, - "attachments": { + "addAttachments": { "title": "Add Attachments", "desc": "Add or remove embedded files (attachments) to/from a PDF" }, diff --git a/frontend/src/data/useTranslatedToolRegistry.tsx b/frontend/src/data/useTranslatedToolRegistry.tsx index 085a4a456..8ef194f55 100644 --- a/frontend/src/data/useTranslatedToolRegistry.tsx +++ b/frontend/src/data/useTranslatedToolRegistry.tsx @@ -396,12 +396,12 @@ export function useFlatToolRegistry(): ToolRegistry { endpoints: ["pdf-to-single-page"], operationConfig: singleLargePageOperationConfig, }, - attachments: { + addAttachments: { icon: , - name: t("home.attachments.title", "Add Attachments"), + name: t("home.addAttachments.title", "Add Attachments"), component: null, - description: t("home.attachments.desc", "Add or remove embedded files (attachments) to/from a PDF"), + description: t("home.addAttachments.desc", "Add or remove embedded files (attachments) to/from a PDF"), categoryId: ToolCategoryId.STANDARD_TOOLS, subcategoryId: SubcategoryId.PAGE_FORMATTING, }, diff --git a/frontend/src/types/toolId.ts b/frontend/src/types/toolId.ts index 223a3d159..1877297e0 100644 --- a/frontend/src/types/toolId.ts +++ b/frontend/src/types/toolId.ts @@ -41,7 +41,7 @@ const TOOL_IDS = [ 'reorganizePages', 'extractImages', 'addStamp', - 'attachments', + 'addAttachments', 'changeMetadata', 'overlayPdfs', 'manageCertificates',