Fix translation warnings in console

This commit is contained in:
James Brunton 2025-08-20 16:55:38 +01:00
parent 32324cf27e
commit a3d9ffbbdc
3 changed files with 70 additions and 6 deletions

View File

@ -625,6 +625,70 @@
"reorganizePages": { "reorganizePages": {
"title": "Reorganize Pages", "title": "Reorganize Pages",
"desc": "Rearrange, duplicate, or delete PDF pages with visual drag-and-drop control." "desc": "Rearrange, duplicate, or delete PDF pages with visual drag-and-drop control."
},
"extractPage": {
"title": "Extract Pages",
"desc": "Extract specific pages from a PDF document"
},
"removePages": {
"title": "Remove Pages",
"desc": "Remove specific pages from a PDF document"
},
"removeImagePdf": {
"title": "Remove Image",
"desc": "Remove images from PDF documents"
},
"autoSizeSplitPDF": {
"title": "Auto Split by Size/Count",
"desc": "Automatically split PDFs by file size or page count"
},
"adjust-contrast": {
"title": "Adjust Colours/Contrast",
"desc": "Adjust colours and contrast of PDF documents"
},
"replaceColorPdf": {
"title": "Replace & Invert Colour",
"desc": "Replace or invert colours in PDF documents"
},
"devApi": {
"title": "API",
"desc": "Link to API documentation"
},
"devFolderScanning": {
"title": "Automated Folder Scanning",
"desc": "Link to automated folder scanning guide"
},
"devSsoGuide": {
"title": "SSO Guide",
"desc": "Link to SSO guide"
},
"devAirgapped": {
"title": "Air-gapped Setup",
"desc": "Link to air-gapped setup guide"
},
"compressPdfs": {
"title": "Compress",
"desc": "Compress PDFs to reduce their file size."
},
"addPassword": {
"title": "Add Password",
"desc": "Add password protection and restrictions to PDF files"
},
"add-watermark": {
"title": "Add Watermark",
"desc": "Add a custom watermark to your PDF document."
},
"sanitize": {
"title": "Sanitise",
"desc": "Remove potentially harmful elements from PDF files"
},
"changePermissions": {
"title": "Change Permissions",
"desc": "Change document restrictions and permissions"
},
"add-page-numbers": {
"title": "Add Page Numbers",
"desc": "Add Page numbers throughout a document in a set location"
} }
}, },
"viewPdf": { "viewPdf": {

View File

@ -237,10 +237,10 @@ export function useFlatToolRegistry(): ToolRegistry {
}, },
"single-large-page": { "single-large-page": {
icon: <span className="material-symbols-rounded">looks_one</span>, icon: <span className="material-symbols-rounded">looks_one</span>,
name: t("home.PdfToSinglePage.title", "PDF to Single Large Page"), name: t("home.pdfToSinglePage.title", "PDF to Single Large Page"),
component: SingleLargePage, component: SingleLargePage,
view: "format", view: "format",
description: t("home.PdfToSinglePage.desc", "Merges all PDF pages into one large single page"), description: t("home.pdfToSinglePage.desc", "Merges all PDF pages into one large single page"),
category: ToolCategory.STANDARD_TOOLS, category: ToolCategory.STANDARD_TOOLS,
subcategory: SubcategoryId.PAGE_FORMATTING, subcategory: SubcategoryId.PAGE_FORMATTING,
maxFiles: -1, maxFiles: -1,
@ -331,10 +331,10 @@ export function useFlatToolRegistry(): ToolRegistry {
}, },
"remove-certificate-sign": { "remove-certificate-sign": {
icon: <span className="material-symbols-rounded">remove_moderator</span>, icon: <span className="material-symbols-rounded">remove_moderator</span>,
name: t("home.removeCertSign.title", "Remove Certificate Signatures"), name: t("home.removeCertSign.title", "Remove Certificate Sign"),
component: RemoveCertificateSign, component: RemoveCertificateSign,
view: "security", view: "security",
description: t("home.removeCertSign.desc", "Remove digital signatures from PDF documents"), description: t("home.removeCertSign.desc", "Remove digital signature from PDF documents"),
category: ToolCategory.STANDARD_TOOLS, category: ToolCategory.STANDARD_TOOLS,
subcategory: SubcategoryId.REMOVAL, subcategory: SubcategoryId.REMOVAL,
maxFiles: -1, maxFiles: -1,

View File

@ -48,8 +48,8 @@ export const useToolManagement = (): ToolManagementResult => {
const baseTool = baseRegistry[toolKey as keyof typeof baseRegistry]; const baseTool = baseRegistry[toolKey as keyof typeof baseRegistry];
availableToolRegistry[toolKey] = { availableToolRegistry[toolKey] = {
...baseTool, ...baseTool,
name: t(baseTool.name), name: baseTool.name,
description: t(baseTool.description) description: baseTool.description,
}; };
} }
}); });