We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

The word "Sign" is not translatable

Hi,

When adding a signature box, I don't know how to translate the word "Sign" (in my case to Spanish). How can I do it?

Captura.PNG


Thank you very much!


7 Replies 1 reply marked as answer

CK Chinnamunia Karthik Chinna Thambi Syncfusion Team October 21, 2022 06:38 AM

Hi Pere,


We were able to reproduce the reported issue "Localization of Sign text is missing in the Spanish culture". We will validate it and update further details in two business days on October 27, 2022.



Regards,

CCM Karthik



CK Chinnamunia Karthik Chinna Thambi Syncfusion Team October 27, 2022 05:39 AM

Hi Pere,


We have already exposed the public API to customize the initial/signature field indicator. So, We have shared the workaround sample to resolve the reported issue.


Code Snippet:


 

    viewer.signatureFieldSettings.signatureIndicatorSettings.text ="señal";

 


Sample: https://stackblitz.com/edit/9vwxwv?file=index.js


Documentation: https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/signatureIndicatorSettingsModel/#text


Please let us know if you have any concerns.



Regards,

CCM Karthik


Marked as answer

PA Pere Argelich Romà October 27, 2022 05:42 AM

Perfect! thank you very much!



PA Pere Argelich Romà October 27, 2022 07:30 AM

Hi,

I think the fontSize property doesn't work:

viewer.signatureFieldSettings.signatureIndicatorSettings.fontSize = 20;

Sample: https://stackblitz.com/edit/9vwxwv-pxpgkb?file=index.js

It is always the same font size.

Am I doing something wrong?



CK Chinnamunia Karthik Chinna Thambi Syncfusion Team October 28, 2022 06:20 AM

Hi Pere,


We have set the indicator font size based on the indicator height. The indicator height is based on the signature field height. The default value for the signature field height is 63. Kindly refer the below calculation,


signatureFieldIndicatorHeight = viewer.signatureFieldSettings.signatureIndicatorSettings.height

 

signatureIndicatorFontSize = viewer.signatureFieldSettings.signatureIndicatorSettings.fontSize


actualSignatureIndicatorHeight = signatureFieldIndicatorHeight > signatureFieldHeight / 2 ? signatureFieldIndicatorHeight : 10

 

actualSignatureIndicatorFontSize = signatureIndicatorFontSize > actualSignatureIndicatorHeight/2 ? 10 : signatureIndicatorFontSize


Sample: https://stackblitz.com/edit/9vwxwv-8f4tcl?file=index.js,index.html


Please let us know if you have any concerns on this.



Regards,

CCM Karthik



PA Pere Argelich Romà October 28, 2022 07:10 AM

Ok, thank you!



CK Chinnamunia Karthik Chinna Thambi Syncfusion Team October 30, 2022 11:46 PM

Hi Pere,

 

Thanks for the update. We are closing this ticket now, Kindly re-open this ticket, if you have any concerns on this.


Regards,

CCM Karthik


Loader.
Live Chat Icon For mobile
Up arrow icon