From 70d941a4000f4790dec61ed06e20d341ffedd220 Mon Sep 17 00:00:00 2001 From: Reece Date: Wed, 8 Oct 2025 14:55:43 +0100 Subject: [PATCH] translations --- frontend/public/locales/en-GB/translation.json | 10 +++++++++- .../src/components/tools/sign/SignSettings.tsx | 14 +++++++------- frontend/src/tools/Sign.tsx | 2 +- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/frontend/public/locales/en-GB/translation.json b/frontend/public/locales/en-GB/translation.json index 76a498d2d..cc69e3f41 100644 --- a/frontend/public/locales/en-GB/translation.json +++ b/frontend/public/locales/en-GB/translation.json @@ -1816,8 +1816,16 @@ "placeholder": "Enter your full name" }, "instructions": { - "title": "How to add signature" + "title": "How to add signature", + "canvas": "After drawing your signature in the canvas, close the modal then click anywhere on the PDF to place it.", + "image": "After uploading your signature image above, click anywhere on the PDF to place it.", + "text": "After entering your name above, click anywhere on the PDF to place your signature." }, + "mode": { + "move": "Move Signature", + "place": "Place Signature" + }, + "updateAndPlace": "Update and Place", "activate": "Activate Signature Placement", "deactivate": "Stop Placing Signatures", "results": { diff --git a/frontend/src/components/tools/sign/SignSettings.tsx b/frontend/src/components/tools/sign/SignSettings.tsx index ce49dbfd3..e39cbb769 100644 --- a/frontend/src/components/tools/sign/SignSettings.tsx +++ b/frontend/src/components/tools/sign/SignSettings.tsx @@ -193,7 +193,7 @@ const SignSettings = ({ hasSignatureData={!!(canvasSignatureData || imageSignatureData || (parameters.signerName && parameters.signerName.trim() !== ''))} disabled={false} showPlaceButton={false} - placeButtonText="Update and Place" + placeButtonText={t('sign.updateAndPlace', 'Update and Place')} /> {/* Signature Creation based on type */} @@ -223,7 +223,7 @@ const SignSettings = ({ variant="filled" disabled={disabled || !canvasSignatureData} > - Update and Place + {t('sign.updateAndPlace', 'Update and Place')} } /> @@ -268,8 +268,8 @@ const SignSettings = ({ } }} data={[ - { label: 'Move Signature', value: 'move' }, - { label: 'Place Signature', value: 'place' } + { label: t('sign.mode.move', 'Move Signature'), value: 'move' }, + { label: t('sign.mode.place', 'Place Signature'), value: 'place' } ]} fullWidth /> @@ -278,9 +278,9 @@ const SignSettings = ({ {/* Instructions for placing signature */} - {parameters.signatureType === 'canvas' && 'After drawing your signature in the canvas, close the modal then click anywhere on the PDF to place it.'} - {parameters.signatureType === 'image' && 'After uploading your signature image above, click anywhere on the PDF to place it.'} - {parameters.signatureType === 'text' && 'After entering your name above, click anywhere on the PDF to place your signature.'} + {parameters.signatureType === 'canvas' && t('sign.instructions.canvas', 'After drawing your signature in the canvas, close the modal then click anywhere on the PDF to place it.')} + {parameters.signatureType === 'image' && t('sign.instructions.image', 'After uploading your signature image above, click anywhere on the PDF to place it.')} + {parameters.signatureType === 'text' && t('sign.instructions.text', 'After entering your name above, click anywhere on the PDF to place your signature.')} diff --git a/frontend/src/tools/Sign.tsx b/frontend/src/tools/Sign.tsx index 7ab57b906..478b89aa0 100644 --- a/frontend/src/tools/Sign.tsx +++ b/frontend/src/tools/Sign.tsx @@ -182,4 +182,4 @@ Sign.getDefaultParameters = () => ({ signerName: '', }); -export default Sign as ToolComponent; \ No newline at end of file +export default Sign as ToolComponent;111 \ No newline at end of file